I have created visual webpart in SharePoint 2010 which will generate class file for class derived from Webpart and second for UserControl. Now I have TabStrip Control on .ascx markup. Now I want to add tab in Tabstrip control only once so how can check for Ispostback in userControl ?
protected void Page_Load(object sender, EventArgs e) {
if (!this.IsPostBack) {
AddTab("Drafts");
AddPageView(radWorkspaceTab.FindTabByText("Drafts"));
AddTab("Submitted");
}
}
I have used above code this work but once I add webpart I don't see tabs in design mode and then I refresh page again I can see tabs.
Please advise
if
statement? – Abe Miessler Jul 18 '12 at 16:36