I have an AJAX ModalPopUpExtender control which brings up a panel which has a field to enter User Name and Password. The panel also contins an OK and Cancel Buttons.Here is the code for the panel and the ModalPopUpExtender.
protected void Page_Load(object sender, EventArgs e)
ModalPopupExtender1.Show(); //show the dialog box in which trhe user needs to enter their user name and password
I want to take the information entered by the user and use it to query a Database table.
I know how to do all that in a regular environment but the problem I am having with AJAX controls is that the program execution never gets to the OK button's click Event and I partially understand that this can be becausee the page never reloads and since the CLick event occurs after the Load event, the click event never happens. So I don't know where to place my code to access the DataBase and query the table.
Does anyone know how to handle the above scenario?
The server-side does not have events. Events are triggered on the client-side. Are you using C# as your server-side language? If so, then the query must be put there. If you are using ASP, then the query can be put there.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.