Click here to Skip to main content
Rate this: bad
good
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
rosren529
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 at 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)



Advertise | Privacy | Mobile
Web02 | 2.8.141015.1 | Last Updated 6 Dec 2012
Copyright © CodeProject, 1999-2014
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