Hi All,
I am developing one application where user will select some values and click on generate button.as soon as user clicks on generate button the 3DPdf image will get display on other frame.but my problem is there is no frameset available in .net 2.0 currently in my application user is selecting the criteria for drawing and click on generate button and that 3DPdf image is get displayed on other page. but i don't want it to get open on other page i want that it should get open on same page in a different frame.so it will become more user friendly.please tell me that how can i do so.
Loading
AnantPosted Nov 11, 2009, 3:59 AM
here I can not use multiview and views control because as per the selected criteria i want to open 3d pdf file,to open a file i have written following code.
string saveTo = Server.MapPath(string.Empty) + "\\App_Themes\\" + "crhole.PDF";
FileStream fs = new FileStream(saveTo, FileMode.Open, FileAccess.Read);
//FileStream fs = new FileStream(file, FileMode.Open, FileAccess.Read);
byte[] filedata = new byte[fs.Length]; fs.Read(filedata, 0, System.Convert.ToInt32(fs.Length));
fs.Close();
Response.ContentType = "application/pdf";
Response.BinaryWrite(filedata);
here because i have written Response.BinaryWrite() all the contents of page get overwritten. and only that pdf file will get open and i can not open selection criteria and generated image at same time. and i want to display both the thing at the same time
Master BillaPosted Nov 10, 2009, 9:14 PM
I think you can use the Multiview and View control to this.
here is example to do this
http://aspalliance.com/675
thank you