Click here to Skip to main content
15,894,460 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ADODB not working in 64 bit machine Pin
N.Surendra Prasad24-Aug-08 17:47
N.Surendra Prasad24-Aug-08 17:47 
GeneralRe: ADODB not working in 64 bit machine Pin
Vimalsoft(Pty) Ltd24-Aug-08 20:15
professionalVimalsoft(Pty) Ltd24-Aug-08 20:15 
QuestionHow to use _doPostBack Pin
CrazyCoder2622-Aug-08 0:41
CrazyCoder2622-Aug-08 0:41 
AnswerRe: How to use _doPostBack Pin
Abhijit Jana22-Aug-08 0:54
professionalAbhijit Jana22-Aug-08 0:54 
GeneralRe: How to use _doPostBack Pin
CrazyCoder2622-Aug-08 1:01
CrazyCoder2622-Aug-08 1:01 
GeneralRe: How to use _doPostBack Pin
Abhijit Jana22-Aug-08 1:06
professionalAbhijit Jana22-Aug-08 1:06 
GeneralRe: How to use _doPostBack Pin
CrazyCoder2622-Aug-08 2:17
CrazyCoder2622-Aug-08 2:17 
QuestionDownloading File Pin
needhi_p22-Aug-08 0:09
needhi_p22-Aug-08 0:09 
Hi...

I am making a website in asp.net using c#. I want to give functionality of downloading a file. For dat i tried using SaveFileDialog in codebehind as under.

SaveFileDialog DialogSave = new SaveFileDialog();
if (DialogSave.ShowDialog() == DialogResult.OK)
{
}
else
{
}

Bt wen comparing if condition, it gives me following error.

"Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process."

Can someone tell me the way to use this SaveFileDialog or some other way to achieve this functionality.
AnswerRe: Downloading File Pin
N a v a n e e t h22-Aug-08 0:15
N a v a n e e t h22-Aug-08 0:15 
AnswerRe: Downloading File Pin
Paddy Boyd22-Aug-08 0:15
Paddy Boyd22-Aug-08 0:15 
AnswerRe: Downloading File Pin
needhi_p22-Aug-08 1:10
needhi_p22-Aug-08 1:10 
QuestionCall a server side event from javascript Pin
CrazyCoder2621-Aug-08 23:30
CrazyCoder2621-Aug-08 23:30 
AnswerRe: Call a server side event from javascript Pin
Brij21-Aug-08 23:36
mentorBrij21-Aug-08 23:36 
AnswerRe: Call a server side event from javascript Pin
Abhijit Jana21-Aug-08 23:46
professionalAbhijit Jana21-Aug-08 23:46 
AnswerRe: Call a server side event from javascript Pin
vb11622-Aug-08 4:26
vb11622-Aug-08 4:26 
Questionispostback and loadcontrol() method issue Pin
Malay198621-Aug-08 22:57
Malay198621-Aug-08 22:57 
QuestionConfused with Grid [modified] Pin
Krazy Programmer21-Aug-08 22:06
Krazy Programmer21-Aug-08 22:06 
QuestionTwo DropDownLists inside a GridView within the EditItemTemplate. Pin
Bardy8521-Aug-08 21:47
Bardy8521-Aug-08 21:47 
Questionhow to create Multi row gridview header Pin
Mhiny21-Aug-08 21:44
Mhiny21-Aug-08 21:44 
AnswerRe: how to create Multi row gridview header Pin
Samer Aburabie22-Aug-08 5:14
Samer Aburabie22-Aug-08 5:14 
Questionneed regular expression for alphanumeric string having space Pin
Shaista Shafiq21-Aug-08 21:11
Shaista Shafiq21-Aug-08 21:11 
AnswerRe: need regular expression for alphanumeric string having space Pin
Rocky#21-Aug-08 21:18
Rocky#21-Aug-08 21:18 
AnswerRe: need regular expression for alphanumeric string having space Pin
Guffa21-Aug-08 22:14
Guffa21-Aug-08 22:14 
GeneralRe: need regular expression for alphanumeric string having space Pin
Rocky#21-Aug-08 23:51
Rocky#21-Aug-08 23:51 
QuestionASP.NET read binary Pin
Socheat.Net21-Aug-08 20:54
Socheat.Net21-Aug-08 20:54 

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.