D
darrel
I have a contact form that a person submits to the server.
In ASP, you'd make a page, post the form to another page, which would grab
the values and do somethign with them.
in ASP.NET, it appears that you grab the values directly from the form
objects on the postback.
Here's our problem:
We wanted to make a list of radiobutton options. Unfortunately, .net's
datalist and radioButtonGroup controls produce invalid HTML if you want to
format it in columns and you don't have enough record to populate every
column of every row of the table. So, to remedy this, I am building the HTML
for this list of radio buttons on the codebehind page and passing it to the
aspx page as text for a label.
The problem is that the person that is grabbing the data from the form to
submit it to the database and email can't 'grab' the value of these
radioButtons since they don't 'exist' on the ASPX page until the page is
processed on the server.
Is there a way around this? We're thinking that perhaps we can add a
radioButton to the aspx page in a hidden panel, which will allow the
codebehind to 'see' the radioButotn prior to page rendering. Then, when the
page does render, the radioButtons that do appear can override the value of
the hidden default one. Of course, this seems like a giant hack to me. ;o)
-Darrel
In ASP, you'd make a page, post the form to another page, which would grab
the values and do somethign with them.
in ASP.NET, it appears that you grab the values directly from the form
objects on the postback.
Here's our problem:
We wanted to make a list of radiobutton options. Unfortunately, .net's
datalist and radioButtonGroup controls produce invalid HTML if you want to
format it in columns and you don't have enough record to populate every
column of every row of the table. So, to remedy this, I am building the HTML
for this list of radio buttons on the codebehind page and passing it to the
aspx page as text for a label.
The problem is that the person that is grabbing the data from the form to
submit it to the database and email can't 'grab' the value of these
radioButtons since they don't 'exist' on the ASPX page until the page is
processed on the server.
Is there a way around this? We're thinking that perhaps we can add a
radioButton to the aspx page in a hidden panel, which will allow the
codebehind to 'see' the radioButotn prior to page rendering. Then, when the
page does render, the radioButtons that do appear can override the value of
the hidden default one. Of course, this seems like a giant hack to me. ;o)
-Darrel