Click here to Skip to main content
15,902,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear Friend,

I have create a web-page to display data.
I have used Tab Container in it.
Also I need to call C# function from JavaScript.
But Its not working. Kindly guide me on the same.

Code Below:
JavaScript:
JavaScript
function Validate()
{
//Some Code
__doPostBack('TabContainer1_TabPanel1_Button1', "OnClick");
}

C# Code:
C#
protected void Button1_Click(object sender, EventArgs e)
    {
//Some Code
}
Posted

Sounds like you want to talk to server from client side. If so, there are ways to do it, like:
1. XMLHttpRequest[^]
2. Callback[^]
3. WebService call[^]
4. PageMethod[^]

Pick & Try that you find fit.
 
Share this answer
 
Comments
fjdiewornncalwe 20-Feb-13 9:28am    
+5.
Sandeep Mewara 20-Feb-13 9:32am    
Thanks Marcus.
Arunprasath Natarajan 20-Feb-13 15:15pm    
+5
Sandeep Mewara 20-Feb-13 22:46pm    
Thanks.

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