>Hi All,
>
>Sorry for my newbie question.
>
>I am trying to set the Border property of a DropDownList Web Control on my .aspx page. Since there are no border settings in the property window I put the following code in behind page :
>
>
>ddlStateSelect.BorderStyle = ddlStateSelect.BorderStyle.NotSet
>ddlStateSelect.BorderWidth = Unit.Pixel(2)
>ddlStateSelect.BorderColor = Color.PowderBlue
>
>
>When I view the page in the browser the Border style/color/width did not change.
>
>TIA,
>Daniel
Daniel,
I believe you want to make sure the page is not postback
Try
If Not Me.IsPostBack Then
ddlStateSelect.BorderStyle = ddlStateSelect.BorderStyle.NotSet
ddlStateSelect.BorderWidth = Unit.Pixel(2)
ddlStateSelect.BorderColor = Color.PowderBlue
ddlStateSelect.bind
End If
Catch ex As System.Exception
Throw some exception
End Try
I hope this helps
Evans
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°`°º¤ø¤º°¤º°
Carl Evans
CEO & President
System Answers Consulting, Inc.
MCSD .NET, ASP.NET, C#.NET, VB.NET,