Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 30th, 2006, 10:14 AM
Authorized User
 
Join Date: Apr 2006
Location: , , .
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
Default show dynamic textbox when radiobuttonlist selected

Hello,
I am trying to show a textbox only if the radiobutton list is selected to value 1.Can you please help me to get thru.I am coding in C#.Thanks .

  #2 (permalink)  
Old May 30th, 2006, 09:42 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

In the selectedindexchanged event of the radiobuttonlist:
if (RadioButtonList1.SelectedValue == 1) {
 TextBox1.Visible = true;
} else {
 TextBox1.Visible = false;
}

Set AutoPostBack = TRUE for the RadioButtonList



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i create dynamic radiobuttonlist vadivel.k Wrox Book Feedback 1 April 11th, 2007 09:37 AM
radiobuttonlist + textbox Bartdude ASP.NET 1.0 and 1.1 Basics 2 December 5th, 2006 10:38 AM
To show selected related field of DDL1 in DDL 2 skirpane .NET Framework 1.x 1 June 1st, 2006 03:04 PM
dynamic textbox shown when radiobuttonlist select debjanib ASP.NET 1.0 and 1.1 Basics 1 May 30th, 2006 09:44 PM
display value of selected radio in the textbox hosefo81 Javascript How-To 1 February 1st, 2004 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.