B
BigRed
Hi. I have 2 radio buttons on my vb.net web form, and
needed to show/hide them at some point in time, so I
wrapped a DIV tag around each. On the HTML side I have
it set to hidden whenever the page loads. My problem now
is getting the buttons to be "visible" on the server
side. In my code I have declared my div control:
Protected WithEvents divAdd As
System.Web.UI.HtmlControls.HtmlGenericControl
Then in my BuildGrid procedure (after the page loads but
before my grid is shown) I have this:
divAdd.Attributes.Add("Display", "Inline")
I have also set my div tag to runat="server".
I know this is not an HTML forum, (and all my html side
code works fine), but I can't get it to work on the
server side.
Does anyone have any advice?
Thanks in advance for ANY help!
BR
needed to show/hide them at some point in time, so I
wrapped a DIV tag around each. On the HTML side I have
it set to hidden whenever the page loads. My problem now
is getting the buttons to be "visible" on the server
side. In my code I have declared my div control:
Protected WithEvents divAdd As
System.Web.UI.HtmlControls.HtmlGenericControl
Then in my BuildGrid procedure (after the page loads but
before my grid is shown) I have this:
divAdd.Attributes.Add("Display", "Inline")
I have also set my div tag to runat="server".
I know this is not an HTML forum, (and all my html side
code works fine), but I can't get it to work on the
server side.
Does anyone have any advice?
Thanks in advance for ANY help!
BR