<img> onclick event</img>
-
How can I call a c# method from a html image tag onclick event? I don't want to use a imagebutton, is there a way I can do it with javascript i.e. can i call a javascript function and then call the c# code from there? Can u send some sample code
-
How can I call a c# method from a html image tag onclick event? I don't want to use a imagebutton, is there a way I can do it with javascript i.e. can i call a javascript function and then call the c# code from there? Can u send some sample code
sarah_chandran wrote:
html image tag onclick event
Html img tag onclick event is an client side event and it can not call server side method unless you use dopostback with eventarguments or AJAX.
-
sarah_chandran wrote:
html image tag onclick event
Html img tag onclick event is an client side event and it can not call server side method unless you use dopostback with eventarguments or AJAX.
Couold u please show me some sample code of how to do it with ajax?
-
Couold u please show me some sample code of how to do it with ajax?
I replied here. http://www.codeproject.com/script/Forums/View.aspx?fid=12076&msg=2908867[^]
Books are as useful to a stupid person as a mirror is useful to a blind person. - Chanakya