AvocadoSoftware.com

Software For Hardcore Developers
Welcome to AvocadoSoftware.com Sign in | Join | Help
in Search

Derick Baileys old blog archives - go to derickbailey.com for new contents

CopySourceAsHTML ported to VS2005

NEW UPDATE: Official CopySourceAsHTML v2.0 for VS2005

This is a test to see if my port of CopySourceAsHTML over to Visual Studio 2005 was successful. I'm trying to get ahold of Collin to send my source code over to him, so he can post it.

    1 Imports System

    2 Imports System.Collections.Generic

    3 Imports System.ComponentModel

    4 Imports System.Text

    5 Imports System.Web

    6 Imports System.Web.UI

    7 Imports System.Web.UI.WebControls

    8 

    9 

   10 "Text"), ToolboxData("<{0}:WebCustomControl1 runat=server>")> _

   11 Public Class WebCustomControl1

   12   Inherits WebControl

   13 

   14   True), Category("Appearance"), DefaultValue(""), Localizable(True)> Property Text() As String

   15     Get

   16       Dim s As String = CStr(ViewState("Text"))

   17       If s Is Nothing Then

   18         Return String.Empty

   19       Else

   20         Return s

   21       End If

   22     End Get

   23 

   24     Set(ByVal Value As String)

   25       ViewState("Text") = Value

   26     End Set

   27   End Property

   28 

   29   Protected Overrides Sub RenderContents(ByVal output As HtmlTextWriter)

   30     output.Write(Text)

   31   End Sub

   32 

   33   Protected Overrides Sub Finalize()

   34     MyBase.Finalize()

   35   End Sub

   36 

   37   Public Sub New()

   38 

   39   End Sub

   40 

   41 

   42   Protected Overrides Sub OnPreRender(ByVal e As System.EventArgs)

   43     MyBase.OnPreRender(e)

   44   End Sub

   45 

   46 End Class

Published Wednesday, November 09, 2005 6:38 AM by dredge
Filed Under: , ,
New Comments to this post are disabled

This Blog

Post Calendar

<November 2005>
SuMoTuWeThFrSa
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

Advertisement

News

this is my old blog archives - go to http://derickbailey.com for updates

Syndication

Advertisement

Powered by Community Server, by Telligent Systems