Hello,
I am trying to show a UserControl (acsx) but having some trouble. I am attempting to show the control from a Page method. The routine that is called to show the control runs fine. The control is suppose to display and return results to the calling page via
a delegate or event bubbling. However, execution is returned immediately to the Page Method instead. Here's a sample of the code:
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>
function JS_showUserDetail(RowId) {
//PageMethods.ViewUserDetail(RowId, onSucceeded, onFailed);
PageMethods.ViewUserDetail(RowId);
}
// code-behind - RowDataBound for grid
hyperLink = CType(e.Row.Cells(COL_Last_Name).Controls(0), HyperLink)
hyperLink.Attributes("onclick") = "javascript:JS_showUserDetail(" & e.Row.RowIndex & ");"
<WebM ...
Go to the complete details ...