Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Extend Literal Control (http://www.velocityreviews.com/forums/t384059-extend-literal-control.html)

shapper 12-17-2006 05:43 PM

Extend Literal Control
 
Hello,

I want to create a control which is based in Literal control.
I created various properties. Size, Name, City, etc.

Basically, I want the Text of the literal control to be equal to Size +
Name + City, etc.

This is what I have:

Public Class ExtendedLiteralControl
Inherits LiteralControl

Private _Size As String
<DefaultValue("")> _
Public Property Size() As String
Get
Return _Size
End Get
Set(ByVal value As String)
_Size = value
End Set
End Property ' Size
....

My problem is how to define the Literal Text property using the new
properties I created.

And are the following code lines ok?
Public Class ExtendedLiteralControl
Inherits LiteralControl

Thanks,
Miguel



All times are GMT. The time now is 03:46 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.