getting confirm message box in

Posted by Professionalhima under ASP.NET on 4/23/2012 | Points: 10 | Views : 1455 | Status : [Member] | Replies : 1
Requirement is:(registration page)
On loading a page a textbox should display a random userid.I have done with this which is readonly.but,
when the user clicks the submit button,it should display a confirm msg showing that if he want to proceed? If yes: then the a alert msg box should display showing the UserId and his username which he has entered andshould store all the entered details into database.
If No: none of the details should be stored in database
please help me


Posted by: GSM_GSV on: 4/23/2012 [Member] Starter | Points: 25

For confirm message
<asp:Button ID="Submit" runat="server" BorderColor="White" meta:resourcekey="BtnDelete"

CommandName="Del" OnClientClick="return confirm('Do you want to proceed?');"
Width="80px" />

Use onclick event in codebehind and display the input credentials in messagebox and finally insert that records in the database

Live the life you've dreamed


Professionalhima, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response