i have a userControl and am using it in a aspx page, now i have expose the Following Method that reside in the usercontrol like this
and am calling it on my aspx page like thisCode:public void load_Again() { string clientscript = ""; // make available to all subcontrols a variable with the client ID of the textbox in which to store the selected activity IDs clientscript = "var txtbxActvClientID = '" + txtbxActvs.ClientID.ToString() + "'; "; // assign the current list of selected activities to the list for JavaScript here //clientscript += "var ActivityList = String(\"" + txtbxActvs.Text + "\"); "; ClientScriptManager cs = Page.ClientScript; cs.RegisterClientScriptBlock(this.GetType(), "txtbxlookupid", clientscript, true); HighlightSelectedActvs(); }
i have Copied the code you see in the method load_Again() from the page load event of the Control. I want refresh or load the page again after i click a button in my aspx page.Code:ActivityCtrl1.load_Again();
Thank you




Reply With Quote