Wednesday, May 8, 2013

GeckoFX trigger javascript _doPostBack() method

Here's how you fire a _doPostBack() in ASP.NET using GeckoFX.
Code:
           //fire js method  
           using (AutoJSContext context = new AutoJSContext(this.JSContext))  
           {  
             string result;  
             context.EvaluateScript(string.Format("javascript:__doPostBack('{0}','')",   
             paramControlName), out result);  
           } 

Cheers!

0 comments:

Post a Comment