dynamically set properties

  • Thread starter Thread starter TJS
  • Start date Start date
T

TJS

if I have an assembly such as prettyUI to generate rounded corners in my
..ascx file like this

<%@ Register TagPrefix="cc1" Namespace="PrettyUI" Assembly="PrettyUI" %>

how can I dynamically set the properties for the values required such as
"showtitle"

<cc1:roundedcorners
id="RoundedCorners2"
runat="server"
ShowTitle="True"
Title= "whatever"
TitleStyle-BackColor="Maroon"
TitleStyle-Font-Bold="False"
TitleStyle-ForeColor="white"
TitleStyle-HorizontalAlign="Center"
CornerHeight="18px"
 
In your codebehind, declare RoundedCorners2.

Protected RoundedCorners2 as PrettyUI.PrettyUI

Sub Page_Load
RoundedCorners2.ShowTitle = true
End Sub

Karl
 
thanks


Karl said:
In your codebehind, declare RoundedCorners2.

Protected RoundedCorners2 as PrettyUI.PrettyUI

Sub Page_Load
RoundedCorners2.ShowTitle = true
End Sub

Karl
 
Back
Top