To display an alert to the user you have to inject javascript from your code behind. below is a sample code
string message = "Hello world";
Button1.Attributes.Add("onclick","alert('"+message+"');return false;");
Try to add the above code at page_load
No comments:
Post a Comment