Click here to Skip to main content
15,915,019 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Page refresh in Asp.net 3.5 Pin
padmanabhan N8-Nov-09 19:52
padmanabhan N8-Nov-09 19:52 
GeneralRe: Page refresh in Asp.net 3.5 Pin
Gamzun8-Nov-09 20:15
Gamzun8-Nov-09 20:15 
QuestionProblem in Search engine plz help me. Pin
Nanda_MR8-Nov-09 18:40
Nanda_MR8-Nov-09 18:40 
AnswerRe: Problem in Search engine plz help me. Pin
Abhishek Sur8-Nov-09 21:14
professionalAbhishek Sur8-Nov-09 21:14 
Questioncall a c# funcation in html code Pin
saurabh8april8-Nov-09 18:38
saurabh8april8-Nov-09 18:38 
AnswerRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 18:48
Gamzun8-Nov-09 18:48 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 18:54
saurabh8april8-Nov-09 18:54 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 19:03
Gamzun8-Nov-09 19:03 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 19:09
saurabh8april8-Nov-09 19:09 
General[Message Deleted] Pin
angle578-Nov-09 19:11
angle578-Nov-09 19:11 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 19:14
saurabh8april8-Nov-09 19:14 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 19:47
Gamzun8-Nov-09 19:47 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 19:54
saurabh8april8-Nov-09 19:54 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 20:29
Gamzun8-Nov-09 20:29 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 20:52
saurabh8april8-Nov-09 20:52 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 21:04
Gamzun8-Nov-09 21:04 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 21:07
saurabh8april8-Nov-09 21:07 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 21:14
Gamzun8-Nov-09 21:14 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 21:21
saurabh8april8-Nov-09 21:21 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 21:36
Gamzun8-Nov-09 21:36 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 22:38
saurabh8april8-Nov-09 22:38 
GeneralRe: call a c# funcation in html code Pin
Gamzun8-Nov-09 22:58
Gamzun8-Nov-09 22:58 
GeneralRe: call a c# funcation in html code Pin
saurabh8april8-Nov-09 23:01
saurabh8april8-Nov-09 23:01 
AnswerRe: call a c# funcation in html code Pin
April Fans9-Nov-09 21:26
April Fans9-Nov-09 21:26 
QuestionSaveFileDialog Box Pin
sharmilajv8-Nov-09 18:01
sharmilajv8-Nov-09 18:01 
using System.Windows.forms;
....
protected void btnSave_Click(object sender, EventArgs e)
{
SaveFileDialog s = new SaveFileDialog();
s.ShowDialog();
}


I want to open a saveDialog box to save a Web page...But When i run this coding it is showing me a 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.

...
How to rectify this error?

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.