Click here to Skip to main content
15,877,675 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 29-Jun-23 10:57am
Comments
Ashish Patel Sep2023 17-Sep-23 23:47pm    
हमारा 85%न० 5010
Ashish Patel Sep2023 17-Sep-23 23:54pm    
ITI मैं 5010मैं से प्रेजेंट 85%होना चाहिए पहलवान बीर बाबा हमें 85%iti मैं देवाडो नम्बर 5010मैं से प्रेजेंट 85%होना होगा पहलवान बीर बाबा ji होना चाहिए पहलवान बीर बाबा जी

1 solution

Have a look at this discussion at length:Similar discussion[^]
It should help you out. Try.
 
Share this answer
 
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