|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASP .Net Message box help Needed Very urgentThis is my code. butPrev.Attributes.Add("OnClick", "return confirm('Do you want to SAVE this item?');") How to capture whether the user is click "OK" or "CANCEL" button. I want the javascript returning value. If the user click "OK" then what is the returning value. If the user click "CANCEL" then what is the returning value. How to find out these values. Any one can help me please? Regards, Thankaraj > If the user click "OK" then what is the returning value. Eliyahutrue > If the user click "CANCEL" then what is the returning value. false Show quoteHide quote "Thankaraj U via DotNetMonster.com" <fo***@DotNetMonster.com> wrote in message news:45f528c01fa54d6f9a42c75854c52fa1@DotNetMonster.com... > Hello Group, > > This is my code. > > butPrev.Attributes.Add("OnClick", "return confirm('Do you want to SAVE this > item?');") > > How to capture whether the user is click "OK" or "CANCEL" button. I want > the javascript returning value. > > If the user click "OK" then what is the returning value. > If the user click "CANCEL" then what is the returning value. > > How to find out these values. > > Any one can help me please? > > Regards, > Thankaraj > > -- > Message posted via http://www.dotnetmonster.com Hi Thankaraj,
As Eliyahu's post you can have true value for "OK" and false for "CANCEL" in client-side. Actually in your serve-side process, you don't need worry about "CANEL", it doesn't post back to server. Only user clicks "OK" confirmation, it posts request to server. HTH Elton Wang elton_w***@hotmail.com >-----Original Message----- want to SAVE this>Hello Group, > >This is my code. > >butPrev.Attributes.Add("OnClick", "return confirm('Do you >item?');") button. I want> >How to capture whether the user is click "OK" or "CANCEL" Show quoteHide quote >the javascript returning value. > >If the user click "OK" then what is the returning value. >If the user click "CANCEL" then what is the returning value. > >How to find out these values. > >Any one can help me please? > >Regards, >Thankaraj > >-- >Message posted via http://www.dotnetmonster.com >. >
UserControl inside of datagrid - loses its viewstate when datagrid is re-bound on postback
Compact code Add text from listbox into datagrid column Print WebForm DataGrid To Eliyahu Dynamically Add Validation to Datagrid Add row to datagrid? Can't get text value of hidden (visible = false) column.. Help EditItemTemplae and Postback |
|||||||||||||||||||||||