473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Radio button selection and a data grid

Hello,

Is it possible w/ASP.Net to set the property of the radio button control to
'read-only' after the user has made their selection before hitting an
'submit' button? Think of a multiple choice question, in our case it's
'Accept', 'Not Accept' or 'Pending' in a grid column. There are multple rows
in the grid maybe 2, 3 or even 10 rows and we want to make it so that the
user, when they select 'Accept' in say the second row that the other rows
are disabled before . We beleive that can be done with Java but are there
other ways that might be better. Does anyone have an example that could be
posted for either approach?

Thank you!

Chris
Apr 6 '07 #1
3 2293
this can be done in client script. what you have to be aware of is
disabled controls are not posted back by the browser, so to the server
they look empty.

-- bruce (sqlwork.com)

Chris Marsh wrote:
Hello,

Is it possible w/ASP.Net to set the property of the radio button control to
'read-only' after the user has made their selection before hitting an
'submit' button? Think of a multiple choice question, in our case it's
'Accept', 'Not Accept' or 'Pending' in a grid column. There are multple rows
in the grid maybe 2, 3 or even 10 rows and we want to make it so that the
user, when they select 'Accept' in say the second row that the other rows
are disabled before . We beleive that can be done with Java but are there
other ways that might be better. Does anyone have an example that could be
posted for either approach?

Thank you!

Chris

Apr 6 '07 #2
a second approach would be to use the same name (group in asp) or all
the radio buttons, so that only one radio button can be checked at a time.

-- bruce (sqlwork.com)

Chris Marsh wrote:
Hello,

Is it possible w/ASP.Net to set the property of the radio button control to
'read-only' after the user has made their selection before hitting an
'submit' button? Think of a multiple choice question, in our case it's
'Accept', 'Not Accept' or 'Pending' in a grid column. There are multple rows
in the grid maybe 2, 3 or even 10 rows and we want to make it so that the
user, when they select 'Accept' in say the second row that the other rows
are disabled before . We beleive that can be done with Java but are there
other ways that might be better. Does anyone have an example that could be
posted for either approach?

Thank you!

Chris

Apr 6 '07 #3
Hello.

Yet another option might be to use AJAX to do a partial postback when
someone selects a radio button. You can then disable, modify, update,
change, alter, etc. anything in the server-side callback handler and all the
controls can be asynchronously updated to accomplish the effect of
"disabling" them.

Hell, you could even return a jpg that just looks like a radio button back
and replace the real button with the jpg (if I were an industrious hacker, I
could get around any radio-button disabling you could implement in script -
that's important if this is for a serious test, I suppose).

Anyway, just rambling thoughts. If you need any samples or help with this
let me know.

--
~~~~~~~~~~~
Ben Rush
http://www.ben-rush.net/blog
"Chris Marsh" <cm****@synergy-intl.comwrote in message
news:Ow**************@TK2MSFTNGP02.phx.gbl...
Hello,

Is it possible w/ASP.Net to set the property of the radio button control
to 'read-only' after the user has made their selection before hitting an
'submit' button? Think of a multiple choice question, in our case it's
'Accept', 'Not Accept' or 'Pending' in a grid column. There are multple
rows in the grid maybe 2, 3 or even 10 rows and we want to make it so that
the user, when they select 'Accept' in say the second row that the other
rows are disabled before . We beleive that can be done with Java but are
there other ways that might be better. Does anyone have an example that
could be posted for either approach?

Thank you!

Chris

Apr 7 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Owen Funkhouser | last post by:
I have a form with three radio options. And I have three buttons: <input type="submit" name="mainform_action" value="Edit Data"> <input type="submit" name="mainform_action" value="View Data">...
2
by: Stoic | last post by:
I'm offering a selection of three items. One is $25, the second is $50, the third is $100. Along with selection one of the items I need to pass the quantity of the selection. Here is the code now....
2
by: MR. UNDERHILL | last post by:
I want to use a radio button as a template column in a data grid, what is happening is that the exclusive selection is not working since the internal radio button name is being generated by the...
0
by: Krish | last post by:
Hello Gurus, I have GridView control on web page which has couple of radio button controls as one group. On editing a particular row in grid, i have to validate based on user selection on radio...
5
by: crystalattice | last post by:
I'm creating a shelve interface using Tkinter. I have a button that allows the user to modify an existing entry; when the button is clicked, a new TopLevel window appears with Entry boxes holding...
2
by: JimS | last post by:
I am using DotNet 2.0 and Visual Studio 2005. The project is a web project. I am currently using an ObjectDataSource to populate a datagrid. The ObjectDataSource is configured to a function in a...
0
by: JimS | last post by:
I am using DotNet 2.0 and Visual Studio 2005. The project is a web project. I am currently using an ObjectDataSource to populate a datagrid. The ObjectDataSource is configured to a function in a...
10
by: mukeshrasm | last post by:
Hi I have a html in which there is two selection box and two radio button. Radio buttion is of array type. What I want if user will click the radio button then only he/she be able to make...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.