hi guys
i have requirement where i have a menu with different names and when click on the menu
i should display the user controls based menu selection and page should not post back
plssss help me guys with example
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vignesh KumarPosted Jun 18, 2013, 2:25 AM
Try this!
void Page_Load()
{
MyUserControl control = (MyUserControl)LoadControl)("MyUserControl.ascx");
this.Controls.Add( control );
MyUserControl control = (MyUserControl)FindControl("myUserControl");
control.MyMethod();
}
Ravishankar SinghPosted Jun 18, 2013, 2:09 AM
Naveen BishtPosted Jun 18, 2013, 1:46 AM
Step1- Register user control like
<%@ Register TagName="TerminationRequest" TagPrefix="uc" Src="TerminationRequestList.ascx" %>
<%@ Register TagName="MemberTransfer" TagPrefix="uc" Src="MemberTransferInMylogeFromOtherloge.ascx" %>
<%@ Register TagName="TransferRequested" TagPrefix="uc" Src="TranferRequested.ascx" %>
<%@ Register TagName="ViewDispensationRequest" TagPrefix="uc" Src="ViewDispensationRequest.ascx" %>
Step 2-take place holder to view these
Step 3- view these help wiht the link button click