Click here to Skip to main content
15,850,214 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How to use (include) a ASP.NET Web user Control self-sufficient into a ASP page?? Pin
Paddy Boyd15-Feb-07 6:18
Paddy Boyd15-Feb-07 6:18 
GeneralRe: How to use (include) a ASP.NET Web user Control self-sufficient into a ASP page?? Pin
fserbin16-Feb-07 0:24
fserbin16-Feb-07 0:24 
Questionusing Arabic Characters with URL parameter Pin
ALAQUNAIBI14-Feb-07 3:36
ALAQUNAIBI14-Feb-07 3:36 
AnswerRe: using Arabic Characters with URL parameter Pin
Bradml14-Feb-07 19:59
Bradml14-Feb-07 19:59 
QuestionWSE Webservice Pin
Kanjinghat14-Feb-07 2:18
Kanjinghat14-Feb-07 2:18 
QuestionWebservice using WSE Pin
a.mulay13-Feb-07 21:20
a.mulay13-Feb-07 21:20 
QuestionWeb Method is chatty Pin
convivial.developer13-Feb-07 17:01
convivial.developer13-Feb-07 17:01 
QuestionJavascript confirm dialog and asp.net 2.0 using C# Pin
#realJSOP13-Feb-07 9:03
mve#realJSOP13-Feb-07 9:03 
On our webpage, we have this button:

<asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" Text="Refresh" UseSubmitBehavior="False"/>


Here's the code-behind (C#):

protected void btnRefresh_Click(object sender, EventArgs e)
{
	Response.Write("<script language=\"javascript\">var confirmResponse = window.confirm('Refreshing.  Continue?');</script>");

	// blah blah blah
}


I want to display a confirm dialog (javascript) and have the website do something different based on whether the user clicked OK or Cancel in the confirm dialog box. How do I determine which button the user clicked in the code-behind?









"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 9:53
protectorChristian Graus13-Feb-07 9:53 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
#realJSOP13-Feb-07 10:01
mve#realJSOP13-Feb-07 10:01 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
WoutL13-Feb-07 10:23
WoutL13-Feb-07 10:23 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 11:42
protectorChristian Graus13-Feb-07 11:42 
JokeRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Guffa13-Feb-07 12:19
Guffa13-Feb-07 12:19 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 13:40
protectorChristian Graus13-Feb-07 13:40 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Bradml13-Feb-07 21:21
Bradml13-Feb-07 21:21 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
badgrs14-Feb-07 0:26
badgrs14-Feb-07 0:26 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Michael Sync16-Feb-07 0:33
Michael Sync16-Feb-07 0:33 
QuestionA beginner's question Pin
Bulky Fellow13-Feb-07 4:15
Bulky Fellow13-Feb-07 4:15 
AnswerRe: A beginner's question Pin
Bulky Fellow13-Feb-07 19:09
Bulky Fellow13-Feb-07 19:09 
AnswerRe: A beginner's question Pin
Bradml13-Feb-07 21:12
Bradml13-Feb-07 21:12 
GeneralRe: A beginner's question Pin
Bulky Fellow13-Feb-07 21:20
Bulky Fellow13-Feb-07 21:20 
GeneralRe: A beginner's question Pin
Bradml13-Feb-07 21:27
Bradml13-Feb-07 21:27 
QuestionDrop-down menu written in Javascript not working in IE6 Pin
MayyMagdy13-Feb-07 0:22
MayyMagdy13-Feb-07 0:22 
QuestionProblematic PHP Navigation Code: [modified] Pin
AndrewVos13-Feb-07 0:18
AndrewVos13-Feb-07 0:18 
AnswerRe: Problematic PHP Navigation Code: Pin
MatrixCoder13-Feb-07 7:58
MatrixCoder13-Feb-07 7:58 

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.