I m having Problem in opening PDF Document written on a page in Highslide. Although this page works in case of Image but when I write PDF, it completes the process but does not show the page where PDF is Written. there is no error in PDF method, it is working fine. Below is the link through which i open highslide. Click here to View File; //Here is the COde for Writing the PDF on page FileStream MyFileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read); long FileSize = 0; FileSize = MyFileStream.Length; byte[] Buffer = new byte[(int)FileSize + 1]; MyFileStream.Read(Buffer, 0, (int)FileSize); MyFileStream.Close(); Response.ContentType = "application/pdf"; Response.OutputStream.Write(Buffer, 0, int.Parse(FileSize.ToString())); Response.Flush(); Response.Close(); Kindly Help me in this Issue. Ali Raza
Syed Ali Raza
Posts
-
Problem in Opening Page in HighSlide -
Optimizing Html CodeThanks to reply. Is there any way to directly optimize the html in aspx pages. because first i have to save that aspx page into html then I can try to revomove unnecessary code.
-
Optimizing Html CodeHi All How can i optimize the HTML through Code.I want to reduce the page size and unnecessary tags. Does any know the way or have suggestion?
-
how i can show meesagebox LIke msn on Notification Icon -
how i can show meesagebox LIke msn on Notification Icon -
how i can show meesagebox LIke msn on Notification Icon -
Timer ControlYou can use Ajax Timer Control or use Javascript.
-
Implement Depth First SearchI m generating a tree through following items 6,2,8,1,4,3,7,9 but having problem implementing the Depth First and Breadth First Search in this tree How can i implement the Depth First and Breadth First Search.
-
getting a string from the previous pageadd that string in ViewState on previose page ViewState["string"]=string; and get it on new page string str= ViewState["string"].tostring(); but you can use it only for one page.
-
How to get a datarow from a datable in C#?You can do it like this dataTable.rows[4]["ColumName"].tostring()
-
Reading text from Middle of the txt fileYes I m storing the Line no with each Line. but I want that when I again read this file it should start from where It left.e.g line 10. explain more.
-
Reading text from Middle of the txt fileYou mean I should do this. sr.BaseStream.position=10; //where 10 is line No or something else. This is my procedure. using (StreamReader sr = new StreamReader("C:\\Windows\\System32\\Logfiles\\ex080312.log")) { String line; string [] fieldcontent = null; while ((line = sr.ReadLine()) != null) { Response.Write("<br>"+ line); } }
-
Reading text from Middle of the txt fileHi all; I m reading a txt file from line to line using StreamReader from Begin to End. Now I want that it should read the file where It left it before. from any line which i want. Regards, Ali
-
how to use c & vb coding in .net web applicationCan't u user .net in your application?
-
Can i use silverlight with Visula Studio 2005Can i use silverlight with Visula Studio 2005. and what requirements i will need to run it with VS 2005. Thanks
-
exit buttonuse this line on your exit button click event. Response.Write("<script language='javascript'> { self.close() }</script>");
-
Value from ASP.NET AJAX ModalPopUpExtenderyes You are right but I posted in both forums because I though may be some one knows about my problem in other forum that is why. Any way Sorry for my mistake. Regards Ali
-
Value from ASP.NET AJAX ModalPopUpExtenderThis forum is for sharing Knowledge not Imposing your opinion. i think ASP.NET IS PART OF WEB DEVELOPMENT. ISN'T IT?
-
Value from ASP.NET AJAX ModalPopUpExtenderHi I m using ASP.NET AJAX modalpopup extender and I want that when popup is displayed and something is written on the textbox of ModalPOPUP, i could get that value in a variable. How can i get it? Regards. Ali
-
Value from ASP.NET AJAX ModalPopUpExtenderHi I m using ASP.NET AJAX modalpopup extender and I want that when popup is displayed and something is written on the textbox of ModalPOPUP, i could get that value in a variable. How can i get it? Regards. Ali