Click here to Skip to main content
15,897,291 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ERROR:The test form is only available for requests from the local machine Pin
Vasudevan Deepak Kumar11-Jul-07 3:44
Vasudevan Deepak Kumar11-Jul-07 3:44 
GeneralRe: ERROR:The test form is only available for requests from the local machine Pin
Sebastian T Xavier11-Jul-07 3:55
Sebastian T Xavier11-Jul-07 3:55 
QuestionExport a table to a csv Pin
Senseicads11-Jul-07 3:10
Senseicads11-Jul-07 3:10 
AnswerRe: Export a table to a csv Pin
Vasudevan Deepak Kumar11-Jul-07 3:24
Vasudevan Deepak Kumar11-Jul-07 3:24 
GeneralRe: Export a table to a csv Pin
Senseicads11-Jul-07 4:02
Senseicads11-Jul-07 4:02 
GeneralRe: Export a table to a csv Pin
ednrgc11-Jul-07 5:29
ednrgc11-Jul-07 5:29 
GeneralRe: Export a table to a csv Pin
Senseicads11-Jul-07 5:36
Senseicads11-Jul-07 5:36 
AnswerRe: Export a table to a csv Pin
martin_hughes11-Jul-07 8:59
martin_hughes11-Jul-07 8:59 
Here's the way I've seen it done before (no idea if it's best practice - but what the hey! Smile | :) )

When the user clicks the button, have the database export to a temporary .csv somewhere on the server (that the user will be able to access). Then do a response.redirect as the return of the page postback giving the url of the newly created temporary file. Hey presto, the user should be presented with a file download dialog.

There's bound to be a few gotchas, the one that springs readily to my mind is that you must make sure to purge that temp directory on a frequent basis, or you'll enter a world of pain!
GeneralRe: Export a table to a csv Pin
Senseicads12-Jul-07 1:11
Senseicads12-Jul-07 1:11 
Questionhow can v write html tags in asp.net +c# code?? Pin
regin11-Jul-07 2:57
regin11-Jul-07 2:57 
AnswerRe: how can v write html tags in asp.net +c# code?? Pin
gauthee11-Jul-07 3:07
gauthee11-Jul-07 3:07 
AnswerRe: how can v write html tags in asp.net +c# code?? [modified] Pin
N a v a n e e t h11-Jul-07 3:07
N a v a n e e t h11-Jul-07 3:07 
GeneralRe: how can v write html tags in asp.net +c# code?? Pin
regin11-Jul-07 3:16
regin11-Jul-07 3:16 
GeneralRe: how can v write html tags in asp.net +c# code?? Pin
N a v a n e e t h11-Jul-07 3:21
N a v a n e e t h11-Jul-07 3:21 
GeneralRe: how can v write html tags in asp.net +c# code?? Pin
Vasudevan Deepak Kumar11-Jul-07 3:25
Vasudevan Deepak Kumar11-Jul-07 3:25 
QuestionPop Up Window Pin
gauthee11-Jul-07 2:53
gauthee11-Jul-07 2:53 
AnswerRe: Pop Up Window Pin
Vasudevan Deepak Kumar11-Jul-07 3:46
Vasudevan Deepak Kumar11-Jul-07 3:46 
GeneralRe: Pop Up Window Pin
gauthee11-Jul-07 4:00
gauthee11-Jul-07 4:00 
QuestionCSV Field Issue Pin
Brendan Vogt11-Jul-07 2:31
Brendan Vogt11-Jul-07 2:31 
AnswerRe: CSV Field Issue Pin
Christian Graus11-Jul-07 2:34
protectorChristian Graus11-Jul-07 2:34 
GeneralRe: CSV Field Issue Pin
Brendan Vogt11-Jul-07 2:38
Brendan Vogt11-Jul-07 2:38 
GeneralRe: CSV Field Issue Pin
Christian Graus11-Jul-07 2:40
protectorChristian Graus11-Jul-07 2:40 
GeneralRe: CSV Field Issue Pin
Brendan Vogt11-Jul-07 2:45
Brendan Vogt11-Jul-07 2:45 
QuestionAdd LoginStatus control to validation Pin
AvidOn-Tech11-Jul-07 2:25
AvidOn-Tech11-Jul-07 2:25 
QuestionCSS Pin
razanabanu11-Jul-07 2:21
razanabanu11-Jul-07 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.