Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Border property of a DropDownList
Message
De
12/08/2004 13:53:21
Evans Carl
System Answers Consulting, Inc
Big Lake, Minnesota, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00932796
Message ID:
00932852
Vues:
26
>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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform