Click here to Skip to main content
15,886,199 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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?
AnswerRe: SaveFileDialog Box Pin
Gamzun8-Nov-09 18:09
Gamzun8-Nov-09 18:09 
GeneralRe: SaveFileDialog Box Pin
sharmilajv8-Nov-09 18:16
sharmilajv8-Nov-09 18:16 
GeneralRe: SaveFileDialog Box Pin
Gamzun8-Nov-09 18:26
Gamzun8-Nov-09 18:26 
GeneralRe: SaveFileDialog Box Pin
sharmilajv8-Nov-09 18:41
sharmilajv8-Nov-09 18:41 
GeneralRe: SaveFileDialog Box Pin
Christian Graus8-Nov-09 23:33
protectorChristian Graus8-Nov-09 23:33 
AnswerRe: SaveFileDialog Box Pin
dan!sh 8-Nov-09 18:29
professional dan!sh 8-Nov-09 18:29 
GeneralRe: SaveFileDialog Box Pin
sharmilajv8-Nov-09 18:35
sharmilajv8-Nov-09 18:35 
GeneralRe: SaveFileDialog Box Pin
dan!sh 8-Nov-09 18:59
professional dan!sh 8-Nov-09 18:59 
AnswerRe: SaveFileDialog Box Pin
Christian Graus8-Nov-09 23:33
protectorChristian Graus8-Nov-09 23:33 
QuestionDifference between postbackurl and response.redirect Pin
anish27patel8-Nov-09 17:26
anish27patel8-Nov-09 17:26 
AnswerRe: Difference between postbackurl and response.redirect Pin
Christian Graus8-Nov-09 17:52
protectorChristian Graus8-Nov-09 17:52 
AnswerRe: Difference between postbackurl and response.redirect Pin
April Fans9-Nov-09 21:22
April Fans9-Nov-09 21:22 
QuestionFireFox Problem!! Pin
Sr...Frank8-Nov-09 10:17
Sr...Frank8-Nov-09 10:17 
AnswerRe: FireFox Problem!! Pin
Abhishek Sur8-Nov-09 11:20
professionalAbhishek Sur8-Nov-09 11:20 
AnswerRe: FireFox Problem!! Pin
Kannan Ar8-Nov-09 15:46
professionalKannan Ar8-Nov-09 15:46 
QuestionHaving Multiple Gridviews Pin
AndyASPVB8-Nov-09 5:20
AndyASPVB8-Nov-09 5:20 
AnswerRe: Having Multiple Gridviews Pin
Gamzun8-Nov-09 5:46
Gamzun8-Nov-09 5:46 

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.