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

Adding Attributes to RadioButtonList Items?

I am trying to use a RadioButtonList bound to a custom datasource to
acomplish some user functionality. I want to add various
onmouseover/onmouseout/onblur/onfocus events to each individual ListItem
housed by the RadioButtonList; however, the rbl.Items[n].Attributes.Add(
eventName, callFunction ) model does not work for this--I can only add
attributes to the rbl object itself: Is there a built-in way to do this that
I am missing (without creating a custom RadioButtonList server control)?

Thank in advance for any advice,
Mike S
Nov 17 '05 #1
2 8500
I guess I'll build my own custom implementation; I will post a link to it
here when it's finished.

Does anyone have any features they would like to see implemented?

[k-e-y-w-o-r-d-s]
-- Custom RadioButtonList Server Control --
-- Custom Server Control --
-- Radio Button List --
-- RadioButtonList --
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPAM.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Mike,

You've hit a well-known bug. Do a quick search on http://groups.google.com
to find tons of post about it. I've posted about it more than a year ago
along with some code to work-around it.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

"Mike S" <mi***@n-o.sp-a.m.pac.odedodea.edu> wrote in message
news:OQ**************@TK2MSFTNGP11.phx.gbl...
I am trying to use a RadioButtonList bound to a custom datasource to
acomplish some user functionality. I want to add various
onmouseover/onmouseout/onblur/onfocus events to each individual ListItem
housed by the RadioButtonList; however, the rbl.Items[n].Attributes.Add(
eventName, callFunction ) model does not work for this--I can only add
attributes to the rbl object itself: Is there a built-in way to do this

that
I am missing (without creating a custom RadioButtonList server control)?

Thank in advance for any advice,
Mike S


Nov 17 '05 #2
I guess I'll build my own custom implementation; I will post a link to it
here when it's finished.

Does anyone have any features they would like to see implemented?

[k-e-y-w-o-r-d-s]
-- Custom RadioButtonList Server Control --
-- Custom Server Control --
-- Radio Button List --
-- RadioButtonList --
"Victor Garcia Aprea [MVP]" <vg*@NOobiesSPAM.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Mike,

You've hit a well-known bug. Do a quick search on http://groups.google.com
to find tons of post about it. I've posted about it more than a year ago
along with some code to work-around it.

--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.

"Mike S" <mi***@n-o.sp-a.m.pac.odedodea.edu> wrote in message
news:OQ**************@TK2MSFTNGP11.phx.gbl...
I am trying to use a RadioButtonList bound to a custom datasource to
acomplish some user functionality. I want to add various
onmouseover/onmouseout/onblur/onfocus events to each individual ListItem
housed by the RadioButtonList; however, the rbl.Items[n].Attributes.Add(
eventName, callFunction ) model does not work for this--I can only add
attributes to the rbl object itself: Is there a built-in way to do this

that
I am missing (without creating a custom RadioButtonList server control)?

Thank in advance for any advice,
Mike S


Nov 17 '05 #3

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

Similar topics

6
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...
0
by: Mike S | last post by:
I am trying to use a RadioButtonList bound to a custom datasource to acomplish some user functionality. I want to add various onmouseover/onmouseout/onblur/onfocus events to each individual...
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 --...
3
by: Janaka | last post by:
I've seen and used some samples where you can set the onclick attrubute to a Button control to get it to do some javascript a la : btnUse.Attributes = "DoSomeJS()"; However when i try and get...
4
by: tshad | last post by:
Is there a to change just one radio button in a list just after DataBinding but before send the page to the user? For example: RFPServiceTypes.DataSource =...
4
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...
0
by: djarmoluk | last post by:
I have a RadioButtonList (named rbAnswers) control within a repeater control. When binding to the repeater, I am trying to add an "OnChange" attribute to the individual list item controls (input...
0
by: raz | last post by:
I am writing this because I have not seen an solutions to this problem. The code below worked for me... radio button list name = rblist rblist.DataSource= some reader; rblist.DataBind(); ...
2
by: premprakashbhati | last post by:
happy new year all of u... sir, iam using dataservice function of type int named getunbookedslots(DateTime dt) and the same is used for adding the returned datetime value to RadioButtonList of...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.