has an Hidden HTML Field called "txtU"
I am trying to get at the value of that hidden field control from within the
User Control.
Hidden Field Control as it apears in the HTML of the User Control:
<INPUT id="txtU" type="hidden" runat="server">
Trace Output (partial) from the browser:
__PAGE ASP.ReferenceCe nter_Main_aspx 16608 56
ImageJavascript ASP.EmployerSer vicesJS_ascx 1643 0
ImageJavascript :_ctl0
System.Web.UI.R esourceBasedLit eralControl 1643 0
Form1 System.Web.UI.H tmlControls.Htm lForm 14260 0
TopGreenMenu ASP.TopGreenMen u_ascx 2351 0
TopGreenMenu:La bel1 System.Web.UI.W ebControls.Labe l 2349 0
TopGreenMenu:_c tl0 System.Web.UI.L iteralControl 2 0
SearchMenu ASP.SearchMenu_ ascx 659 0
SearchMenu:_ctl 0 System.Web.UI.L iteralControl 190 0
SearchMenu:Sear chBox System.Web.UI.W ebControls.Text Box 176
96
SearchMenu:_ctl 1 System.Web.UI.L iteralControl 5 0
SearchMenu:Sear chButton
System.Web.UI.W ebControls.Imag eButton 263 196
SearchMenu:_ctl 2 System.Web.UI.L iteralControl 25 0
TopOrangeMenu ASP.TopOrangeMe nu_ascx 2637 0
TopOrangeMenu:L abel1 System.Web.UI.W ebControls.Labe l 2537
0
System.Web.UI.H tmlControls.Htm lInputHidden 98 0>>>>>>>>>>>>>>> >>>TopOrangeMen u:txtU
TopOrangeMenu:_ ctl0
I System.Web.UI.L iteralControl 2 0
I have tried everything I can think of but the value is always
nothing:
Private Sub Page_PreRender( ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.PreRende r
dim str as string
str = Request.Form("t xtU")
str = Request.Form("T opOrangeMenu:tx tU")
str = Request.Form("T opOrangeMenu_tx tU")
str = MyBase.Request. Form("txtU")
str = MyBase.Request. Form("TopOrange Menu:txtU")
str = MyBase.Request. Form("TopOrange Menu_txtU")
str = Page.Request.Fo rm("txtU")
str = Page.Request.Fo rm("TopOrangeMe nu:txtU")
str = Page.Request.Fo rm("TopOrangeMe nu_txtU")
End If
End Sub
Thanks for any help!
Ron