I am making a web site using ASP.net, and i would like to make a nice login popup with JQuery ModalDialog (Or ajax…i don’t know much about ajax). I have a database containing every allowed users, and I would like to close the popup if the user successfully logged in (If not, i want the popup to stay, and display an error message). The problem is that My validation is done serverside, and JQuery runs on the client side.
Share
the easiest way is to make a jQuery ajax call from inside your dialog , then a webmethod in code behind that listens to this ajax , the webmethod will return successful login , or unsuccessful and you handle removing the dialog client side
i’ll get some example code for you
CODE BEHIND:
THat is in VB.Net , but you can get the idea