473,508 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HtmlRadioButton Datagrid Postback

Hi,

I've been working for about a week to solve this problem, but have'nt
found a solution, i'm not a .NET professional so maybe someone here may have
a solution.

Here's my problem.

I have a datagrid with a list of product, with checkbox on each line to
select witch product we want. But on one product row i need to add a Radio
Button list so the user can select if he want To Buy, Lease or if he always
have it at home. But on some other product i have a AutoPostback = True, so
my Radiobutton lose it's status after the postback. Is there a way to solve
this ?

I use this to add the Radio buttons :

divmodem = <div id='modeminfo' runat='server'>MAC: <input type=text
name='modemMac'</div>"

dr = dt.NewRow
dr(0) = "Modem option<br><input type=radio checked name=omodem
value=buy>99.95$<br><input type=radio name=omodem value=location>Location
15$/month<br><input type=radio name=omodem value=haveit
onclick=""modemDetails('haveit');"">Already" + divmodem
dt.Rows.Add(dr)

If the user click on the "haveit" RadioButton the a display a text box
to enter is Modem Mac Address.

I cut some code, so if you need more details i can post another message.

Thank you.
Nov 19 '05 #1
1 1281
Problem solved, using some Javascript.

Tnx
"Andre" <we*******@cablevision.qc.ca> a écrit dans le message de
news:OE**************@tk2msftngp13.phx.gbl...
Hi,

I've been working for about a week to solve this problem, but have'nt
found a solution, i'm not a .NET professional so maybe someone here may have a solution.

Here's my problem.

I have a datagrid with a list of product, with checkbox on each line to select witch product we want. But on one product row i need to add a Radio
Button list so the user can select if he want To Buy, Lease or if he always have it at home. But on some other product i have a AutoPostback = True, so my Radiobutton lose it's status after the postback. Is there a way to solve this ?

I use this to add the Radio buttons :

divmodem = <div id='modeminfo' runat='server'>MAC: <input type=text
name='modemMac'</div>"

dr = dt.NewRow
dr(0) = "Modem option<br><input type=radio checked name=omodem
value=buy>99.95$<br><input type=radio name=omodem value=location>Location
15$/month<br><input type=radio name=omodem value=haveit
onclick=""modemDetails('haveit');"">Already" + divmodem
dt.Rows.Add(dr)

If the user click on the "haveit" RadioButton the a display a text box
to enter is Modem Mac Address.

I cut some code, so if you need more details i can post another message.
Thank you.

Nov 19 '05 #2

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

Similar topics

2
945
by: DelphiBlue | last post by:
I have a Nested Datagrid that is using a data relations to tie the parent child datagrids together. All is working well with the display but I am having some issues trying to sort the child...
7
3537
by: A.M | last post by:
Hi, I want to refresh my DataGrid data on every postback. I have following code in Page_Load event, but after first page load, the DataGrid never gets refresh. Here is the code i have in...
1
3419
by: Michelle Stone | last post by:
Hi all. I have an empty datagrid on my web form. And I add BoundDataColumn(s) to it through code. But after each postback, the columns and rows disappear. As a workabout, I tried to rebind the...
2
2383
by: Bruce W.1 | last post by:
There's something I can't figure out. I added some javascript behavior to my datagrid, just like in this article, except in C# instead of VB: ...
2
5907
by: Fluxray | last post by:
--Background: I have a webform including a datagrid. The datagrid is using template. Its ItemTemplate is used to display a look-up-table with labels. its EditItemTemplate is used to edit a row in...
2
2207
by: Mark Rae | last post by:
I've inherited an ASP.NET app and have been asked to fix the following problem with a page which is used to display and/or delete records from a database. When the page loads, it displays a list of...
2
1675
by: Jim Bancroft | last post by:
This may be a no-brainer, but I'm sure I follow what's happening here... I have a DataGrid with one DropDownList per row. If I select a few DropDown items and postback my page, I can't loop...
1
1625
by: wh1974 | last post by:
I'm not sure if i'm heading in the right direction so would appreciate any comments on what I'm trying to do. Basically I have a DataGrid on a page which has columns whose width's I set in the...
6
2426
by: SkeanDu | last post by:
Ok, here is my problem. I have an aspx page that displays a databound datagrid and in one of the datagrid column headers I have an image that when clicked opens up a modal web dialog (another...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7063
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...
0
7504
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...
0
5640
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,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3211
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...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
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...

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.