Question : ASP.NET JQuery modal

Experts,

As preference, I am using Jquery's Modal UI component in my ASP.net application to create a neat little window for adding users to a database.  The code works perfectly and clicking a linkbutton pops up the window with the required fields.   The codebehind file has a method (onClick) which adds the user to the database and then sets the visibility of the fields to false, showing a label with the status of 'Thank you, user has been added'.   The problem here is that when I close the Jquery modal window and go to add a further user, the popup still shows 'Thank you, user has been added'.   I realise that there is a problem here resetting the web controls as the modal popup is simply a DIV tag.  Attempting to reset the controls from the (isPostBack == false) under page_load doesn't seem to work.  

Any suggestions?

Answer : ASP.NET JQuery modal

- The problem here is after added the first user, your codes has modify the <div>, that JQuery will show it as modal popup, to something like "<div>...Thank you, user has been added...</div> then next time you click the Create button, it'll show "Thank you, user has been added".

- Simply, just make to divs, one div for the window with required fields (1), and another div for the "Thank you, user has been added" message (2), make sure that clicking on Create button will only show (1), and then call codes to show (2) if user has been added,
Random Solutions  
 
programming4us programming4us