Click here to Skip to main content
15,881,173 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 8:53
protectorChristian Graus13-Feb-07 8:53 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
#realJSOP13-Feb-07 9:01
mve#realJSOP13-Feb-07 9:01 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
WoutL13-Feb-07 9:23
WoutL13-Feb-07 9:23 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 10:42
protectorChristian Graus13-Feb-07 10:42 
JokeRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Guffa13-Feb-07 11:19
Guffa13-Feb-07 11:19 
GeneralRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Christian Graus13-Feb-07 12:40
protectorChristian Graus13-Feb-07 12:40 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Bradml13-Feb-07 20:21
Bradml13-Feb-07 20:21 
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
badgrs13-Feb-07 23:26
badgrs13-Feb-07 23:26 
John Simmons / outlaw programmer wrote:
<asp:Button ID="btnRefresh" runat="server" removed="btnRefresh_Click" Text="Refresh" UseSubmitBehavior="False"/>


Add a client side onclick handler (server side attribute is OnClientClick, the forum changed it to 'removed'):

<asp:Button ID="btnRefresh" runat="server" removed="btnRefresh_Click" Text="Refresh" UseSubmitBehavior="False" OnClientClick="return confirm('Refreshing. Continue?');" />

If the user hits no the confirm function will return false and the button click will be cancelled client-side. Of course if your doing something important in // blah blah blah that might not work (no postback).

You might also want to look at the RegisterClientScriptBlock function rather than using Response.Write
AnswerRe: Javascript confirm dialog and asp.net 2.0 using C# Pin
Michael Sync15-Feb-07 23:33
Michael Sync15-Feb-07 23:33 
QuestionA beginner's question Pin
Bulky Fellow13-Feb-07 3:15
Bulky Fellow13-Feb-07 3:15 
AnswerRe: A beginner's question Pin
Bulky Fellow13-Feb-07 18:09
Bulky Fellow13-Feb-07 18:09 
AnswerRe: A beginner's question Pin
Bradml13-Feb-07 20:12
Bradml13-Feb-07 20:12 
GeneralRe: A beginner's question Pin
Bulky Fellow13-Feb-07 20:20
Bulky Fellow13-Feb-07 20:20 
GeneralRe: A beginner's question Pin
Bradml13-Feb-07 20:27
Bradml13-Feb-07 20:27 
QuestionDrop-down menu written in Javascript not working in IE6 Pin
MayyMagdy12-Feb-07 23:22
MayyMagdy12-Feb-07 23:22 
QuestionProblematic PHP Navigation Code: [modified] Pin
AndrewVos12-Feb-07 23:18
AndrewVos12-Feb-07 23:18 
AnswerRe: Problematic PHP Navigation Code: Pin
MatrixCoder13-Feb-07 6:58
MatrixCoder13-Feb-07 6:58 
GeneralRe: Problematic PHP Navigation Code: Pin
AndrewVos13-Feb-07 23:34
AndrewVos13-Feb-07 23:34 
AnswerRe: Problematic PHP Navigation Code: Pin
#realJSOP13-Feb-07 7:51
mve#realJSOP13-Feb-07 7:51 
GeneralRe: Problematic PHP Navigation Code: Pin
Bradml13-Feb-07 20:10
Bradml13-Feb-07 20:10 
QuestionFile Input in my Language Pin
Tyler4512-Feb-07 22:17
Tyler4512-Feb-07 22:17 
AnswerRe: File Input in my Language Pin
DavidNohejl13-Feb-07 12:01
DavidNohejl13-Feb-07 12:01 
AnswerRe: File Input in my Language Pin
Bradml13-Feb-07 20:10
Bradml13-Feb-07 20:10 
Questionplz help me in registering new user on Mail server Pin
EEmaan12-Feb-07 18:19
EEmaan12-Feb-07 18:19 
GeneralRe: plz help me in registering new user on Mail server Pin
Guffa12-Feb-07 19:33
Guffa12-Feb-07 19:33 

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.