|
-
Jul 3rd, 2005, 09:40 PM
#1
Thread Starter
Junior Member
lable Question
I would like to add this code so the the label would not appeer if the rows.count was greater than = 0
HOW would i write this TO NOT be visible?? ---> lblWidth.Visible = False
===================Code that i want to add it to==============
cmdMetroSelectFauxWoodColor.Parameters("@IDProduct").Value = Request("IDProduct")
Dim dsMetroSelectFauxColor As New DataSet
Dim daMetroSelectFauxColor As New SqlDataAdapter
daMetroSelectFauxColor.SelectCommand = cmdMetroSelectFauxWoodColor
daMetroSelectFauxColor.Fill(dsMetroSelectFauxColor, "MetroSelectFauxColor")
If dsMetroSelectFauxColor.Tables("MetroSelectFauxColor").Rows.Count = 0 Then
ddlMetroSelectFauxColor.Visible = False
lblWidth.Visible = False
Else
------------------------HERE++++ HERE----------------lblWidth.Visible = False
ddlMetroSelectFauxColor.DataSource = dsMetroSelectFauxColor
ddlMetroSelectFauxColor.DataMember = "MetroSelectFauxColor"
ddlMetroSelectFauxColor.DataTextField = "AttributeName"
ddlMetroSelectFauxColor.DataValueField = "AttributeName"
lblWidth.Visible = False
End If
Thanks!
Erik...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|