简体   繁体   中英

message box window using asp.net and c#

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:

  1. The message box should not be a pop up window
  2. The user Should still be able to see the page where button was clicked

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:

jQuery Dialog Demo

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM