How to create a message box, msgbox, alert box, confirmation box in asp.net
Source: http://www.codeproject.com/aspnet/NingLiangSimpleControl.aspDownload:Demo -
http://www.codeproject.com/aspnet/NingLiangSimpleControl/Control_demo.zipDLL / Control:Add reference to the DLL in your Website Project
http://www.codeproject.com/aspnet/NingLiangSimpleControl/Control_src.zipAfter Reference been added, you can call it like the below example
In your aspx page:Click Here to View CodeIn Your Code Behind : Example on Button Click| Code: |
private void Button1_Click(object sender, System.EventArgs e) { //for the page with only one form if(TextBox1.Text!=null && TextBox1.Text!="") MsgBox1.alert("Please input something in the text box."); else MsgBox1.confirm("Hello "+ TextBox1.Text + "! do you want to continue?", "hid_f"); }
|