How are you creating the file? I'm guessing you are using the Response.Out to create the file and show it to the user, and are getting some the apsx page html when this happens.
A less complicated way to do this is to just write what you want to a separate file and provide a link to the file for the user. That way you have total control over what is in the file. On 7/14/05, bh0526 <[EMAIL PROTECTED]> wrote: > Hi all, > > I am creating a csv text file on the server with my asp.net page. I > then allow the user to open or save this file to their pc. This works > but I am getting some html and javascript from the page following the > rows I created. So I get my rows but I also get the following after > my rows. I want to surpress this when the user saves the file. How > do I do this? Here is the junk I want to get rid of. > > <script type=text/javascript src=Scripts/Common.js></script> > <div id=divWait style='DISPLAY:block;FONT-WEIGHT:bold;FONT- > SIZE:large;VERTICAL- > ALIGN:middle;WIDTH:100%;CURSOR:wait;COLOR:#11459e;FONT- > STYLE:italic;FONT-FAMILY:Verdana;HEIGHT:100%;TEXT- > ALIGN:center'>Loading</div> > <div id=divMain style='DISPLAY:none;'></div> > <script language=javascript>sessTimeout=3540000;ApplyCommonProperties > ();</script> > > > > > > > > > Yahoo! Groups Links > > > > > > > -- Dean Fiala Very Practical Software, Inc http://www.vpsw.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
