This is a migrated thread and some comments may be shown as answers.

error in tabstrip wizard

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
siddhartha
Top achievements
Rank 1
siddhartha asked on 17 May 2011, 09:50 AM
it showed me the error :) in the educationInfoTab = tabStrip.FindTabByText("Academics Info");
i am using the telerik tab stip as wizard :)

similar to this example
http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/wizard/defaultcs.aspx

the erro detils
System.NullReferenceException was unhandled by user code
  Message=Object reference not set to an instance of an object.
  Source=App_Web_e2z0fa1r
  StackTrace:
       at admin_support_files_addstudent_general.GoToNextTab() in c:\Users\diamond\Desktop\work\site\admin\support_files\General_new_std.ascx.cs:line 25
       at admin_support_files_addstudent_general.nextButton_Click(Object sender, EventArgs e) in c:\Users\diamond\Desktop\work\site\admin\support_files\General_new_std.ascx.cs:line 18
       at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
       at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException:



please help :)


  private void GoToNextTab()
       {
           RadTabStrip tabStrip = (RadTabStrip)Page.FindControl("RadTabStrip1");
           RadTab educationInfoTab = new RadTab();
            educationInfoTab = tabStrip.FindTabByText("Academics Info");
           educationInfoTab.Enabled = true;
           educationInfoTab.Selected = true;
           GoToNextPageView();
       }


1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 20 May 2011, 09:14 AM
Hi Siddhartha,

From the screenshot provided it seems that you not able to get a reference to the RadTabStrip or you are not finding a tab with a name "Academics Info".

Please verify, if you are referencing the RadTabStrip properly, since from the screenshot provided in the down left corner it appears that the "tabStrip" variable has "null" value.

Kind regards,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
siddhartha
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or