A
ashish
If i want to add a hidden field on the page, how can i check whether
that hidden field exists ?
for example if i do
If Page.FindControl("myhiddenfield") Is Nothing Then
Page.RegisterHiddenField("myhiddenfield", "hidden")
End If
Dim myHiddenField As HtmlInputHidden = Page.FindControl("myhiddenfield")
** this line would throw error
how can i know that the hidden field is there before trying to add it ?
TIA
-ashish
that hidden field exists ?
for example if i do
If Page.FindControl("myhiddenfield") Is Nothing Then
Page.RegisterHiddenField("myhiddenfield", "hidden")
End If
Dim myHiddenField As HtmlInputHidden = Page.FindControl("myhiddenfield")
** this line would throw error
how can i know that the hidden field is there before trying to add it ?
TIA
-ashish