L
Learner
Hello,
I have defined another textbox control in the CreateUserWizard
control and this is how I am trying to get the value of it in the code
behind page is below
im myStep As CreateUserWizardStep = New CreateUserWizardStep
Dim DealerShipIDvalue As TextBox =
myStep.ContentTemplateContainer.FindControl("_txtDealerShipID")
Dim dealer As String
dealer = Server.HtmlEncode(DealerShipIDvalue.Text)
I am not sure the way I am trying to get the value of _txtDealerShipID
is right but this is the error I am getting
***********************************************************
System.NullReferenceException was unhandled by user code
Message="Object reference not set to an instance of an object."
Source="App_Web_8ftjgxfz"
StackTrace:
at Registar.CreateUserWizard1_CreatedUser(Object sender,
EventArgs e) in C:\Documents and Settings\devi\My Documents\Visual
Studio 2005\WebSites\AppDevTraining\DataSource\Register.aspx.vb:line 12
at
System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser(EventArgs e)
at
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser()
at
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs
e)
at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source,
EventArgs e)
at
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source,
EventArgs e)
at
System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object
source, EventArgs args)
at System.Web.UI.Control.RaiseBubbleEvent(Object source,
EventArgs args)
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs
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)
***********************************************************
Could some one please help me here.
Thanks
-L
I have defined another textbox control in the CreateUserWizard
control and this is how I am trying to get the value of it in the code
behind page is below
im myStep As CreateUserWizardStep = New CreateUserWizardStep
Dim DealerShipIDvalue As TextBox =
myStep.ContentTemplateContainer.FindControl("_txtDealerShipID")
Dim dealer As String
dealer = Server.HtmlEncode(DealerShipIDvalue.Text)
I am not sure the way I am trying to get the value of _txtDealerShipID
is right but this is the error I am getting
***********************************************************
System.NullReferenceException was unhandled by user code
Message="Object reference not set to an instance of an object."
Source="App_Web_8ftjgxfz"
StackTrace:
at Registar.CreateUserWizard1_CreatedUser(Object sender,
EventArgs e) in C:\Documents and Settings\devi\My Documents\Visual
Studio 2005\WebSites\AppDevTraining\DataSource\Register.aspx.vb:line 12
at
System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser(EventArgs e)
at
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser()
at
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs
e)
at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source,
EventArgs e)
at
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source,
EventArgs e)
at
System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object
source, EventArgs args)
at System.Web.UI.Control.RaiseBubbleEvent(Object source,
EventArgs args)
at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs
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)
***********************************************************
Could some one please help me here.
Thanks
-L