--- Wayne Lee <[EMAIL PROTECTED]> wrote: > I have an asp.net app written using c#. What I'd like to do is when > someone clicks a hyperlink, say: > > <a href="download.aspx?docid=4" target=_new>Click</a> > > I'd like that to open a new page, run a db query which returns the > filename of that doc, and triggers the download of the pdf. After
No problem. > looking on the web and looking at the old "content-disposition" meta tag > and the binarywrite method that were prevalent in ASP3 that we used to > use, there doesn't seem to be any new way? What kind of new way do you want? It doesn't matter if it is ASP or ASP.Net the protocol is HTTP, and Microsoft doesn't control that. Yet. ;-) You still do it the old HTTP thing of setting the HTTP response type in the header and streaming binary data. ASP.Net Response does support a stream output now, which can make things simpler than BinaryWrite. Peter __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.