473,394 Members | 1,718 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.

Doubt radio

Hi, I have a RadioButtonList and I need to do some verifications on a
"OnChange" event on client... because on classic asp/html I just add a
"onChange" event on <input type="radio" onChange="">, etc...

How can it be done on RadioButtonList server component on asp.net 2.0 C# VS
2005 ?

Thanks!

Sep 4 '07 #1
5 1689
"Paulo" <pr*****@uol.com.brwrote in message
news:OV*************@TK2MSFTNGP04.phx.gbl...
but what the word "doubt" mean in english??
dúvida
in Brasil I learned the word "doubt" means we dont know anything...
Doubt means to have difficulty believing that something is true...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 4 '07 #2
"Paulo" <pr*****@uol.com.brwrote in message
news:e$**************@TK2MSFTNGP05.phx.gbl...
Mark, I did what you said, but the .net placed the onChange event on the
table generated by asp.net wich has the same name of the RadioButton...
Ah - you need to give each of your controls unique names...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 4 '07 #3
"Paulo" <pr*****@uol.com.brwrote in message
news:eb**************@TK2MSFTNGP04.phx.gbl...
Mark, the <tablebelow is generated automatically by .net, the radios
inputs are inside the <td>, as you can see the .net added _1, _2, _3 for
each id input, but the name is the same...
Please show the .NET code...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 4 '07 #4
protected void grdContratos_RowDataBound(object sender, GridViewRowEventArgs
e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (e.Row.Cells[0].Controls != null)
{
RadioButtonList radioSimNao =
(RadioButtonList)e.Row.Cells[0].Controls[0].FindControl("radioSimNao");
radioSimNao.ToolTip = radioSimNao.ClientID;
radioSimNao.Attributes.Add("onchange", "javascript:alert('teste')");
}
}
}

What is the diference between RowCreated and RowDataBound ?

"Mark Rae [MVP]" <ma**@markNOSPAMrae.netescreveu na mensagem
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Paulo" <pr*****@uol.com.brwrote in message
news:eb**************@TK2MSFTNGP04.phx.gbl...
>Mark, the <tablebelow is generated automatically by .net, the radios
inputs are inside the <td>, as you can see the .net added _1, _2, _3 for
each id input, but the name is the same...

Please show the .NET code...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 4 '07 #5
Hey Mark, I replaced onchange to onclick and worked... I think there is no
onchange on radiobutton .net !!!

Thanks man!

"Paulo" <pr*****@uol.com.brescreveu na mensagem
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi, I have a RadioButtonList and I need to do some verifications on a
"OnChange" event on client... because on classic asp/html I just add a
"onChange" event on <input type="radio" onChange="">, etc...

How can it be done on RadioButtonList server component on asp.net 2.0 C#
VS 2005 ?

Thanks!

Sep 4 '07 #6

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

Similar topics

0
by: nizam | last post by:
Hi all, i have a simple doubt. i have 2 tables Table1: Table2: qid qDESC 1 Q1 A1 2 Q2 A2 3 Q3 A3
6
by: Advo | last post by:
Hi there. Having a few issues and cannot see a way to actually do the following. ive duplicated a simple questionnaire as shown here: http://www.hackeradio.com/questionnaire.html meaning...
1
by: kenny8787 | last post by:
Hi, can anyone help here? I have the following code generated from a database, I want to have javascript calculate the costs of the selected items using radio buttons, subtotal the costs and...
9
by: IchBin | last post by:
I can not see what the problem is with this script. I am just trying to set a radio button by calling setCheckedValue('abbr_letter', 'V'). Sorry I am new to javascript. <html> <head> <script...
1
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio...
10
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio...
7
by: Jerim79 | last post by:
My situation is that I have a form that asks the user for a number. Next, I execute a while loop that displays a group of questions the amount of times the customer entered. For instance, the loop...
3
by: jahphill | last post by:
Hey. I thought id make a seperate discusion because the other became a bit lengthy and confusing. Aim: Create a php file which works with the script below, which makes the radiobuttons work =D...
11
by: Twayne | last post by:
Hi, Newbie to PHP here, no C or other relevant background, so pretty niave w/r to the nuances etc. but I think this is pretty basic. XP Pro, SP2+, PHP 4.4.7, XAMPP Local Apache Server...
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: 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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
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
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.