I have registered a control from web.config file, using it on a page.
I have another user controls which are registered in it. I need to find the user control and refer to this registered user control to access literal values.
I am getting object reference error while doing that.
below is my code..below is my code..
In the code "quickScore" is the user control which I drop from my toolbox.
"QuickWizard" is a wizard control in "quickscore" control. I have "screen_103_ctl" as a registered control in "quickscore". I need to access Literal control from the "screen_103_ctl". PLease suggest something....it is urgent.
Dim uc As UserControl = Page.FindControl("quickScore")
Dim wiz As Wizard = uc.FindControl("QuickScoringWizard")
Dim uc1 As UserControl = wiz.FindControl("screen_103_ctl")
Dim lit1 As Literal = uc1.FindControl("Literal1_103")
Dim lit2 As Literal = uc1.FindControl("Literal2_103")
Dim lit3 As Literal = uc1.FindControl("Literal3_103")
Literal1_104.Text = lit1.Text
Literal2_104.Text = lit2.Text
Literal3_104.Text = lit3.Text