hw to call server side function from client side
-
i am trying to call server side function like this
OnClientClick="'<%= checkcategory() %>'" OnClick="btn_submit_Click1" Text="Submit" />
it was not working can u provide me the solution thanks in advancelearning developer
-
i am trying to call server side function like this
OnClientClick="'<%= checkcategory() %>'" OnClick="btn_submit_Click1" Text="Submit" />
it was not working can u provide me the solution thanks in advancelearning developer
-
i am trying to call server side function like this
OnClientClick="'<%= checkcategory() %>'" OnClick="btn_submit_Click1" Text="Submit" />
it was not working can u provide me the solution thanks in advancelearning developer
The server event will be attached to btn_submit_Click1 Im assuming your hoping checkcategory() would be called from OnClientClick. OnClientClick is reserved for JavaScript which has no direct relationship with the server. You would need to call checkcategory (assuming its a server side function) in btn_submit_click1. Or if you explicitly needed to call checkcategory from the client side function you would use Ajax (Google it!) FYI, calling a javascript function from OnClientClick would be OnClientClick="checkCategory()" function checkCategory() { alert("CheckCategory Called.."); }
James Simpson Web Developer imebgo@hotmail.com P S - This is what part of the alphabet would look like if Q and R were eliminated
Mitch Hedberg