Author: clduvall | Posted on: 8/1/2009 8:55:02 PM | Views : 449

Brief overview -
I was using a webmethod to retrieve the HTML output of a control I built server side.  Works like a champ.  I want to invoke the data retrieval  server side, so I am processing the HTML output post-success on an event, then attempting to pass the HTML back through via ScriptManager on the partial postback.
For example:
Dim result as String = getHTMLFromControl(control, dataset) 
ScriptManager.RegisterStartupScript(Page, Page.GetType, "EventName", "var result = '" & result & "';", true);


This may not be the best approach, so I am definitely open to suggestions.  I know through a webmethod the result is passed back properly in a variable, I would mostly like to emulate this.


Thanks!


...

Go to the complete details ...