Hi all, i need to inactive one dropdownlist while we select item "Photo prints " in another dropdown list. and i need to display a text in txtcomment "My order is of minimum Rs. 2,500.". i am sending my code pls help me... If Not Page.IsPostBack Then Me.ddlproduct.Items.Add("Select") Me.ddlproduct.Items.Add("Photo Prints") 'If Me.ddlproduct.SelectedValue = "Photo Prints" Then ' 'Me.ddlquantity.Enabled = False ' txtcomment.Text = "My order is of minimum Rs. 2,500." 'End If Me.ddlproduct.Items.Add("Custom Calendars") Me.ddlproduct.Items.Add("Collage Posters") Me.ddlproduct.Items.Add("Greeting Cards") Me.ddlproduct.Items.Add("Photo Mugs") Me.ddlproduct.Items.Add("Zoomini Books") Me.ddlproduct.Items.Add("Zoomin T-Shirts") Me.ddlquantity.Items.Add("Select") Me.ddlquantity.Items.Add("30-50") Me.ddlquantity.Items.Add("51-100") Me.ddlquantity.Items.Add("101 & Above") End If and Protected Sub ddlproduct_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlproduct.SelectedIndexChanged If Me.ddlproduct.SelectedValue = "Photo Prints" Then Me.ddlquantity.Enabled = False txtcomment.Text = "My order is of minimum Rs. 2,500." End If End Sub
Thanks Subbu.