Champions are not Super Humans, they just fight one extra second, when everyone else QUIT. Remember, sometimes one extra second of effort gives you the SUCCESS.......
Champions are not Super Humans, they just fight one extra second, when everyone else QUIT. Remember, sometimes one extra second of effort gives you the SUCCESS.......
Try this. Add reference of jquery file in the page and do the following
$(document).ready(function()
{
$('#id of first button').click(function()
{
///do something here.....
$('#id of second button').trigger('click');
});
});
shubham.mvp
Member
468 Points
156 Posts
Button click through another button's client click not working in IE
Jul 04, 2012 09:14 AM|LINK
I am trying to call server click event hanlder through javascript click of another button, its working in chrome but not in IE
Here is that script:
document.getElementById("ctl00_ContentPlaceHolder1_savebtn").click();
Regards:
Shubham
urenjoy
Star
13533 Points
2036 Posts
Re: Button click through another button's client click not working in IE
Jul 04, 2012 09:22 AM|LINK
try __dopostback:
<input type="button" onclick="__doPostBack('<%= savebtn.UniqueID %>','');" value="save!" />roopeshreddy
All-Star
20277 Points
3349 Posts
Re: Button click through another button's client click not working in IE
Jul 04, 2012 09:34 AM|LINK
Hi,
I suggest you jQuery code -
$('#buttonID').click();http://forums.asp.net/t/981513.aspx/1
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
shubham.mvp
Member
468 Points
156 Posts
Re: Button click through another button's client click not working in IE
Jul 04, 2012 11:42 AM|LINK
still not working...
Regards:
Shubham
Unnics
Member
394 Points
93 Posts
Re: Button click through another button's client click not working in IE
Jul 04, 2012 02:28 PM|LINK
Hi,
Try this. Add reference of jquery file in the page and do the following
$(document).ready(function() { $('#id of first button').click(function() { ///do something here..... $('#id of second button').trigger('click'); }); });Hope this helps
TechFriend
Participant
955 Points
182 Posts
Re: Button click through another button's client click not working in IE
Jul 05, 2012 08:41 AM|LINK
$('<%= savebtn.ClientID %>').click( function(){ __doPostBack('<%= savebtn.ClientID %>',''); }){__doPostBack('<%= savebtn.ClientID %>','');