My topic is Asp.net using c#..
Hi... I am doing project in asp.net with c# code.. My question is,i created one form with two radio button and two dropdownlist box, here one radio button is named with msc and another is mca.I want to make visible msc radio button when i enter my course is msc in registration form and the dropdownlist related to msc must also visible and mca radio button and dropdownlist of mca must be invisible . Friends kindly post me the coding for this.I am struggling with this.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Satyapriya NayakRank #47 · 31.5K reputationPosted Mar 6, 2013, 1:34 AM EST
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
namespace WebApplication16
{
public partial class WebForm4 : System.Web.UI.Page
{
protected void TextBox1_TextChanged(object sender, EventArgs e)
{
if (TextBox1.Text == "msc")
{
RadioButton2.Visible = false;
DropDownList2.Visible = false;
}
else
{
RadioButton1.Visible = false;
DropDownList1.Visible = false;
}
}
protected void Page_Load(object sender, EventArgs e)
{
RadioButton1.Visible = true;
DropDownList1.Visible = true;
RadioButton2.Visible = true;
DropDownList2.Visible = true;
}
}
}
Jonna jo32 reputationPosted Mar 8, 2013, 7:38 PM EST