470,596 Members | 1,353 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

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 1574
"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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by nizam | last post: by
6 posts views Thread by Advo | last post: by
9 posts views Thread by IchBin | last post: by
1 post views Thread by IchBin | last post: by
7 posts views Thread by Jerim79 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.