Click here to Skip to main content
12,289,975 members (71,189 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET
How to disable a Dropdownlist once someone has selected an item in the Dropdownlist?
Posted 5-Dec-12 0:37am
rosren571
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

have u tried it using j-query?
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

On DropDownChange Event do
Dropdownlist1.Enable=false;
and set Autopostbackvalue=true;

protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
   {
       DropDownList1.Enabled = false;
   }
  Permalink  
v2
Comments
Surendra0x2 6-Dec-12 7:14am
   
Try My Above Solution This is Working i tested :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160518.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100