473,394 Members | 1,746 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,394 software developers and data experts.

Custom RadioButtonList Databinding

I have a set of radiobuttons that I want to put as an element in a Datalist.
But I need the radiobuttons to have a very particular look, so I can't use
the RadioButtonList class.
So, I made a user control, with all my pretty radio buttons in it, and gave
them the same GroupName so they act as a group. I put it in the datalist,
and it shows up just fine, and acts correctly when I select different
values, etc.

My questions are:
(1) how do I databind that control so that it behaves like a normal
control, getting its data from and returning it to a datasource as
appropriate?

(2) When I implement CheckChanged events for each of the radiobuttons,
there is a server round-trip in the postback, but it doesn't seem to
actually run the CheckChanged code. Help?

- Nevyn
Nov 19 '05 #1
0 1079

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

Similar topics

0
by: David Davis | last post by:
When I have an asp:radiobuttonlist control in a repeater and I want to dynamically preset a ListItem's selected property to true or false, I get an error message that says "BC30676: 'DataBinding'...
5
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 --...
0
by: CDARS | last post by:
Dear all, I understand that I can bind a DataSet to a RadioButtonList control with properties DataTextField and DataValueField. ASP.NET will have the ListItem objects generated. Nice. Well...
3
by: Peter | last post by:
Hello, One thing I am looking to do is to create a couple of different custom Web Controls that can give me added options when specifying them in an ASP.NET page. For example: ...
5
by: svein.erik.storkas | last post by:
How can i get the index of the button that is selected in a radiobuttonlist? I have a radiobuttonlist that contains 5 buttons, and i do a switch on what index that is selected, like this: ...
0
by: webmaster | last post by:
Hi all, I'm tearing my hair out with this one. I have successfully implemented by own RadioButtonList in order to provide additional functionality and a DIV rather than TABLE-based layout in...
0
by: papaja | last post by:
I have gollowing code: <asp:Repeater ID="Repeater1" runat="server"> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%#Eval("Pitanje") %>'></asp:Label> <asp:RadioButtonList...
3
by: Brian | last post by:
Using external XML, I'm trying to build a quiz, but I can't seem to specify the DataSource for the RadioButtonList within a Repeater ItemTemplate. I've tried a number of approaches, but I haven't...
0
by: marianowic | last post by:
Hello. I`m killing my computer for 2 days and I can`y figure it out. First I will present the situation: I`m building and WWW system in VS 2005. I`m using a MaterPage ( maybe this is the problem...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
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...

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.