473,734 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2313
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****@syner gy-intl.comwrote in message
news:Ow******** ******@TK2MSFTN GP02.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
23887
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"> <input type="submit" name="mainform_action" value="Delete Data"> If the first radio button is selected, I only want all three buttons to be visible to the user. If the second radio button is selected, I only want the "Edit Data" and "View Data"...
2
2893
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. <tr><td><input type="radio" name="item_name" value="Reduced">Reduced</td><td><input type="radio" name="amount" value="25">$25.00ea.</td></tr> <tr><td><input type="radio" name="item_name" value="Regular">Regular</td><td><input type="radio"...
2
1596
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 DataGrid control. Is there a way to work around this behavior? Thanks in advance
0
1168
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 button i have to validate another column data in the grid. Pl. help me with code snippets. Thank you. <asp:TemplateField HeaderText="Code Translate"> <ItemTemplate>
5
2034
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 the selected entry. Below the Entry boxes are two buttons, one that saves the changes to the database and the other is simply a Cancel button. Under Linux, both buttons appear correctly. However, in OS X the Cancel button is invisible unless...
2
2062
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 class to populate the initial load of data. I would like to use a Radio Button list to change the data viewed in the Grid. What is the best practice to perform this task. Is it better to have a default value for the Radio Buttons and have the...
0
1003
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 class to populate the initial load of data. I would like to use a Radio Button list to change the data viewed in the Grid. What is the best practice to perform this task. Is it better to have a default value for the Radio Buttons and have the...
10
3416
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 selection from select list. Initially I tried to disble the selection control. And when user will click the radio then only it was enabled. but I faced problem that value is not passed to the next form of the select list. so I enable the select list now...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8186
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.