Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: RadioButton Event


Message #1 by "Hovik Melkomian" <melvik@b...> on Wed, 14 Aug 2002 09:45:24 +0430
I DO did it but I got error!!!
What should I do??

Tnx 4 ur answers,
Hovik
----- Original Message -----
From: "Montgomery, Aiden (External)" <Aiden.Montgomery@f...>
To: "ASPX_Professional" <aspx_professional@p...>
Sent: Wednesday, August 14, 2002 2:48 PM
Subject: [aspx_professional] Re: RadioButton Event


Hello,

yes you add these to the Page_Load() event handler.

HTH

Aiden

-----Original Message-----
From: Hovik Melkomian [mailto:melvik@b...]
Sent: 14 August 2002 10:46
To: ASPX_Professional
Subject: [aspx_professional] Re: RadioButton Event


Thank you SO MUCH!
It was great idea!! u helped much but I still have a problem!
Where should I put these code in code Behind Page?!?!?!??
In Load_Page() ????

Please tell me. It drives me mad!!!

Tnx,
Hovik
----- Original Message -----
From: "Montgomery, Aiden (External)" <Aiden.Montgomery@f...>
To: "ASPX_Professional" <aspx_professional@p...>
Sent: Wednesday, August 14, 2002 12:45 PM
Subject: [aspx_professional] Re: RadioButton Event


Hello,

these are some ways in which I achieve javascript calls from my server side controls.

// Ay time that a user clicks on the RadioButton the javascript function MemOrUser will be called
RadioButtonNewMem.Attributes.Add("OnClick","javascript:MemOrUser()");

// When the RadioButton receives focus the javascript function GotFocus will be called
// supplied with the object which was clicked
RadioButtonNewMem.Attributes["onFocus"] = "javasrcipt:GotFocus(this)";

// When the Radiobutton is clicked a message box will pop up.  If the user clicks no the post back
will not happen.
// If the user clicks yes then the post back occurs as usual.
RadioButtonNewMem.Attributes.Add("OnClick","return confirm('Are you sure want to delete this
Role?');");

HTH

Aiden Montgomery

-----Original Message-----
From: Hovik Melkomian [mailto:melvik@b...]
Sent: 14 August 2002 07:25
To: ASPX_Professional
Subject: [aspx_professional] Re: RadioButton Event


Hi again friends:
Sorry for my last question. I've got that I have to do it client side with JavaScript.
So I have the Function, but please tell me how can I assign it to my client Side
Script. I've tried bellow but it gives error.

<asp:radiobutton id="RadioButtonNewMem" runat="server" Text="Be a Member" GroupName="NewType"
Checked="True" OnCheckedChanged="MemOrUser();"></asp:radiobutton>

Please tell me how to manage it?!?!

Tnx in Advance,
Hovik.

----- Original Message -----
From: "Hovik Melkomian" <melvik@b...>
To: "ASPX_Professional" <aspx_professional@p...>
Sent: Wednesday, August 14, 2002 9:45 AM
Subject: [aspx_professional] RadioButton Event


Hi all:
Please tell me how can I assign a function to a onChenge of  RadioButton in C#.NET.
Clearly, I have a 2 RadioButton that I want to make things when each one is clicked
My function is in fallow:
_______________________________
private void SetMemORUser(object sender, System.EventArgs e)
{
if(RadioButtonNewMem.Checked)
 {
  TextBoxUName.Enabled = false;
  TextBoxULName.Enabled = false;
  TextBoxUEmail.Enabled = false;
  ButtonNewUser.Enabled = false;
 }
else
 {
  TextBoxUName.Enabled = true;
  TextBoxULName.Enabled = true;
  TextBoxUEmail.Enabled = true;
  ButtonNewUser.Enabled = true;
 }
}

and I assign it to RadioButton CheckedChanged action in EVENTS of CheckedChanged.
But it doesnt work.

Any pointers would be greatly appreciated,
Hovik.




---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---



---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---

---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---



---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---

---

ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442

ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450

These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.

---





  Return to Index