Click here to Skip to main content
14,880,719 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
i am calling

document.getElementByID('<%= Button1.ClientID %>').click();

this calls javascript:__doPostBack('ctl00$ContentPlaceHolder1$Button1','');

but the last call doesn't call the server.

I debugged this using developer tools but there was no use

any help, please;
Posted
Updated 27-Oct-20 15:07pm

1 solution

Have a look at this discussion at length:Similar discussion[^]
It should help you out. Try.
   
Comments
Ali Al Omairi(Abu AlHassan) 13-Mar-11 6:04am
   
over my head, Sandeep basha, but i don't think that Form.submit() comes with asynchronous post-back.

100 :rose:
Espen Harlinn 13-Mar-11 6:07am
   
My 5 - Pushing the 4000 answers boundary with only 94 answers to go – magnificent effort!
@Ali Al Omairi: The link provides a number of points on something that seems quite similar to your problem - it also contains further pointers to other discussions and examples.

Are you even sure Button1 is a real button and not a div masquerading as one? from your fragments it's pretty hard to tell ...
Ali Al Omairi(Abu AlHassan) 13-Mar-11 6:58am
   
<asp:Button ID="Button1" runat="server" /> :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900