Search code examples
javascriptasp.netweb-controls

ASP.NET Post back a Web-control using JavaScript


I have a embedded Web-Control in a Master Page when user clicks a HTML link i wants to post back this web control using JavaScript is it possible ?


Solution

  • There's a javascript function available: __doPostBack. You can register it from your web control by using the GetPostBackEventReference API.

    Here's a sample and the MSDN how-to.