Click here to Skip to main content
15,888,092 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: "start the web server before proceding" Pin
Paddy Boyd4-Jul-06 2:18
Paddy Boyd4-Jul-06 2:18 
GeneralRe: "start the web server before proceding" Pin
Paddy Boyd4-Jul-06 2:19
Paddy Boyd4-Jul-06 2:19 
QuestionRe: "start the web server before proceding" Pin
ravikiranreddydharmannagari4-Jul-06 2:34
ravikiranreddydharmannagari4-Jul-06 2:34 
QuestionRe: "start the web server before proceding" Pin
ravikiranreddydharmannagari4-Jul-06 2:42
ravikiranreddydharmannagari4-Jul-06 2:42 
AnswerRe: "start the web server before proceding" Pin
Paddy Boyd4-Jul-06 5:34
Paddy Boyd4-Jul-06 5:34 
QuestionMessage Box using Java Script Pin
psmukil4-Jul-06 1:00
psmukil4-Jul-06 1:00 
AnswerRe: Message Box using Java Script Pin
Mircea Grelus4-Jul-06 1:30
Mircea Grelus4-Jul-06 1:30 
GeneralRe: Message Box using Java Script Pin
psmukil4-Jul-06 2:07
psmukil4-Jul-06 2:07 
thank u very much for your suggestion

but if i register code after checking the condition, that message box is not getting pop upped, in the browser if we click button, the "popwindow()" string is getting displayed

Code is given below,

private void Button1_Click(object sender, System.EventArgs e)
{
if (i=="file Exists")
{
int x= 0;
int y =0;
x = x+ y;
StringBuilder str = new StringBuilder();
str.Append("");
str.Append("function PopWindow()");
str.Append("{");
str.Append("alert('hello world')");
str.Append("}");
str.Append(""); Page.RegisterClientScriptBlock("clientscript","PopWindow();");// Here is the problem

Another Way

Page.RegisterClientScriptBlock("clientscript",PopWindow()); // its giving build error as follows(without specified in the quotes)

c:\inetpub\wwwroot\WebApplication1\WebForm1.aspx.cs(79): The name 'PopWindow' does not exist in the class or namespace 'WebApplication1.WebForm1'


int a = 2;
int z = 2;
z = z+ a;
}
}

Mukil
GeneralRe: Message Box using Java Script Pin
Paddy Boyd4-Jul-06 2:22
Paddy Boyd4-Jul-06 2:22 
AnswerRe: Message Box using Java Script [modified] Pin
Guffa4-Jul-06 2:27
Guffa4-Jul-06 2:27 
GeneralRe: Message Box using Java Script Pin
Mircea Grelus4-Jul-06 2:34
Mircea Grelus4-Jul-06 2:34 
QuestionGOOGLE Pin
MHASSANF4-Jul-06 0:59
MHASSANF4-Jul-06 0:59 
QuestionBackcolor for separate rows DataRow in Datatable in C# Pin
michaeil4-Jul-06 0:29
michaeil4-Jul-06 0:29 
AnswerRe: Backcolor for separate rows DataRow in Datatable in C# Pin
Tirthadip4-Jul-06 1:22
Tirthadip4-Jul-06 1:22 
QuestionIntranet and Internet site Pin
SatyajitV4-Jul-06 0:29
SatyajitV4-Jul-06 0:29 
QuestionEncode & Decode in ASP.NET Pin
leanhsang4-Jul-06 0:12
leanhsang4-Jul-06 0:12 
AnswerRe: Encode & Decode in ASP.NET Pin
Guffa4-Jul-06 0:52
Guffa4-Jul-06 0:52 
AnswerRe: Encode & Decode in ASP.NET Pin
Sushant Duggal4-Jul-06 2:21
Sushant Duggal4-Jul-06 2:21 
QuestionHow to convert xml document to word document in asp.net Pin
BalasahebK4-Jul-06 0:00
BalasahebK4-Jul-06 0:00 
AnswerRe: How to convert xml document to word document in asp.net Pin
minhpc_bk4-Jul-06 16:19
minhpc_bk4-Jul-06 16:19 
QuestionTab Control Pin
Brendan Vogt3-Jul-06 23:51
Brendan Vogt3-Jul-06 23:51 
AnswerRe: Tab Control Pin
Mircea Grelus4-Jul-06 1:05
Mircea Grelus4-Jul-06 1:05 
GeneralRe: Tab Control Pin
Brendan Vogt4-Jul-06 3:37
Brendan Vogt4-Jul-06 3:37 
GeneralRe: Tab Control Pin
Mircea Grelus4-Jul-06 3:42
Mircea Grelus4-Jul-06 3:42 
AnswerRe: Tab Control Pin
minhpc_bk4-Jul-06 16:22
minhpc_bk4-Jul-06 16:22 

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.