Hi. I'm trying to come up with a customized RadioButtonList and I don't know where to start.
My requirements are: I'll be given a dataset that contains one table with product data (eg price, product_name, product_descrip tion, product_id) and I have to build a control that displays the products dataset on a page, allowing the user to make only one product selection at a time.
That's not too bad, and I know I can do it with a RadioButtonList , but, the control has to be customized. If I want to display only products that match a specific criteria, I should be able to do that. For this I was thinking to write a CustomizedRadio ButtonList class that would override the DataBind function, define a dataview with the specified criteria and databind to this dataview.
That is also ok, but here comes the hard part: Some products could be purchased together if they have the same bundle_id in the dataset; for this, the first product with bundle_id=5 (for example) would be displayed as a radio button and all the other products with bundle_id=5 would be displayed as checkboxes underneath it.
e.g:
O product 1 (bundle_id=3)
[] product 2 (bundle_id=3)
O product 3 (bundle_id=55)
[]product 4 (bundle_id=55)
[]product 5 (bundle_id=55)
etc
The page also contains a submit button; when the user clicks it, I should be able to capture the selected product, and the selected bundle products.
Is there an easy way to do this with the server controls provided by ASP.NET?
I just don't have enough experience to tell if it can be done or not.
Where would I begin?
Are there any examples like this on the net?
Thanks in advance.
BITM 0 1106 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tapi |
last post by:
Hello there,
I am new to ASP .NET and am tryimg to create a RadioButtonList dynamically.
My code below gives an "Index was out of range" error.
Where am I going wrong?
|
by: Hazzard |
last post by:
I store radiobuttonlist values in the db using the string value of the radio
button item value. (nvarchar)
I am creating an edit functionality on the asp.net form so that when I reuse
my dataentry form for edit, I search the database for the row containing the
data I want, and then populate all the form fields.
here is what I have so far. What I don't know what to do is for cases where
a dirty database has no associated value for the...
|
by: DotNetGruven |
last post by:
Anyone have any pointers on how to set the Value and Selected attributes in
a ListItem in a RadioButtonList that is in a DataGrid?
Here's what I have
------DataGrid------
-- BoundColumn 0 --
-- BoundColumn 1 --
-- BoundColumn 2 --
-- TemplateColumn 4 --
-- RadioButtonList --
|
by: DotNetGruven |
last post by:
I have a webform that has a DataGrid on it with a RadioButtonList in each
row. It is a simple On & Off.
When the User Clicks on either of the RadioButtons, I need to postback to
the server and update the database.
Here is the control containment hierarchy:
ASP Page
Static User Control // just provides a pretty border around
|
by: Emil |
last post by:
Can somebody tell me what would be the syntax for having an if statement and
setting the selected index of a radiobuttonlist?
This is my first project using ASP.net and I use C#.
I have a repeater with like a table layout and in the last column I want to
have three radio buttons (for each row in repeater). The value of the radio
button should be calculated from a value from the dataset.
How can I do that? When I try to use a variable...
| |
by: juststarter |
last post by:
Hello,
I have an aspx file where i've put a placeholder element. On load
(page_load) i create dynamically an html table which contains a checkbox and
a radiobuttonlist in each tablerow . The radiobuttonlist contains two items
(yes,no). Both the
checkboxes and the radiobuttonlist are NOT autopostbacked ( .autopostback =
false). When i press the submit button a sub (submit_pressed) is run. My
problem is that i can not get the selected items...
|
by: Øyvind Isaksen |
last post by:
I'm making a page to update articles.
When a radiobuttonlist is displayed, I want the stored value to be displayed
as default (checked).
Example: I use a procedure to display the RadioButtonList. An input to this
procedure is the ID that is stored in the database. I want the
radiobuttonlist to show the radiobutton with datavaluefield = savedID as
checked when it is displayed.
|
by: =?Utf-8?B?UGF1bA==?= |
last post by:
Hallo,
I have a radiobuttonlist control that is added on a custom Web User Control.
This control has a property that exposes the SelectedIndex property of the
embedded radiobuttonlist.
When running this in IE, behaviour is as I would expect it. If I select an
item and do a postback, the page remembers my selection when reloading, and
the SelectedIndex property of my control returns the correct value.
|
by: SAL |
last post by:
hello,
I'm using a radiobuttonlist in an updatepanel in an item template in a
Gridview control. I'm populating the radiobuttonlist in the RowDataBound
event. I have the control toolkit registered in the page and I've got code
to get the selected value from it in the
Radiobuttonlist_SelectedIndexChanged event.
The code in there is:
Protected Sub rblFMSValue_SelectedIndexChanged(ByVal sender As Object, ByVal
e As System.EventArgs)
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
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...
| |