Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Border property of a DropDownList
Message
From
12/08/2004 13:53:21
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, United States
 
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00932796
Message ID:
00932852
Views:
27
>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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform