I am trying to accomplish the following in my website:
There is a "Message User" button, when it is clicked I want to display a Message box to the user and have the following requirement:
I have seen this on other sites.
Is this accomplished using AJAX?
It is accomplished by using javascript - typically it's a hidden div on the page that is tied to the click event of your button - there are TONS of controls out there to do this (called dialog boxes) see:
You could also use the Ajax Control Toolkit
http://www.asp.net/ajax/ajaxcontroltoolkit/samples/modalpopup/modalpopup.aspx
you can use on button click if displaying message box using Ajax as:
string jv = "alert('Error Details: Duplicate Entry of Company Name ');"; ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "alert", jv, false); return;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.