Click here to Skip to main content
15,850,750 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how to Customize the message box Pin
Kissy167-May-07 23:00
Kissy167-May-07 23:00 
GeneralRe: how to Customize the message box [modified] Pin
Sandeep Kumar7-May-07 23:07
Sandeep Kumar7-May-07 23:07 
GeneralRe: how to Customize the message box Pin
Kissy168-May-07 0:08
Kissy168-May-07 0:08 
GeneralRe: how to Customize the message box Pin
Sandeep Kumar8-May-07 0:18
Sandeep Kumar8-May-07 0:18 
GeneralRe: how to Customize the message box Pin
Kissy168-May-07 0:49
Kissy168-May-07 0:49 
GeneralRe: how to Customize the message box Pin
Sandeep Kumar8-May-07 1:08
Sandeep Kumar8-May-07 1:08 
GeneralRe: how to Customize the message box Pin
Kissy168-May-07 2:43
Kissy168-May-07 2:43 
GeneralRe: how to Customize the message box Pin
Sandeep Kumar8-May-07 4:05
Sandeep Kumar8-May-07 4:05 
Hi Kissy,

Button1.Attributes.Add("onClick", "javascript:if(confirm('Check text')){alert('ok')}else{alert('Cancel')}");

In the above code i placed confim dialog box in if condition it means whenever you click on Ok it returns true so it executes the code after the if condition statemts.

if the user clicks on cancel button it execute the statements followed by else statement.

so in that way whatever you want you can place your code in that if condition followed statements.

In the above Code if the user clicks on OK it display an alert dialog box saying OK simillarly if he clicks on Cancel u will get a alert dialog box saying Cancel.


Regards,
Sandeep Kumar.V

AnswerRe: how to Customize the message box Pin
regin8-May-07 1:47
regin8-May-07 1:47 
GeneralRe: how to Customize the message box Pin
Guffa8-May-07 5:13
Guffa8-May-07 5:13 
GeneralRe: how to Customize the message box Pin
regin8-May-07 21:01
regin8-May-07 21:01 
AnswerRe: how to Customize the message box Pin
Guffa8-May-07 21:40
Guffa8-May-07 21:40 
GeneralRe: how to Customize the message box [modified] Pin
regin8-May-07 22:52
regin8-May-07 22:52 
GeneralRe: how to Customize the message box Pin
Guffa8-May-07 23:36
Guffa8-May-07 23:36 
Questionweb.config Pin
Mkanchha7-May-07 21:58
Mkanchha7-May-07 21:58 
AnswerRe: web.config Pin
enjoycrack7-May-07 22:01
enjoycrack7-May-07 22:01 
GeneralRe: web.config Pin
Mkanchha7-May-07 22:14
Mkanchha7-May-07 22:14 
GeneralRe: web.config Pin
enjoycrack7-May-07 22:20
enjoycrack7-May-07 22:20 
GeneralRe: web.config Pin
Mkanchha8-May-07 20:24
Mkanchha8-May-07 20:24 
GeneralRe: web.config Pin
enjoycrack8-May-07 20:27
enjoycrack8-May-07 20:27 
GeneralRe: web.config Pin
Mkanchha9-May-07 1:12
Mkanchha9-May-07 1:12 
GeneralRe: web.config Pin
enjoycrack9-May-07 1:19
enjoycrack9-May-07 1:19 
QuestionAny Help Pin
BilalShouman7-May-07 21:57
BilalShouman7-May-07 21:57 
AnswerRe: Any Help Pin
enjoycrack7-May-07 22:04
enjoycrack7-May-07 22:04 
Questionhow to secure webpages when we click on back button on browser? Pin
Raheem MA7-May-07 21:52
Raheem MA7-May-07 21:52 

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.