query regarding onmouseover event
-
<!-- function imgChange (img_name, img_src) { document[img_name].src = img_src; } -->
the upper one is the JavaScript code and the lower one in HTML code that I am using in ASPX file for applying the onmouseover functionality on the login button. Now I would like to use this button (login) as to navicate to some other page (main.aspx ) after clicking it. Can somone please tell me the function that I should write in the codebehind page (*.aspx.cs) for doing as above................
-
<!-- function imgChange (img_name, img_src) { document[img_name].src = img_src; } -->
the upper one is the JavaScript code and the lower one in HTML code that I am using in ASPX file for applying the onmouseover functionality on the login button. Now I would like to use this button (login) as to navicate to some other page (main.aspx ) after clicking it. Can somone please tell me the function that I should write in the codebehind page (*.aspx.cs) for doing as above................
You can't. You're using HTML, not server controls, so there's no postback and no event being generated for the code behind. You can do it all on the client, or you can change it to use server controls.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog