Re: C# code behind not working?

  •  12-03-2004, 10:22 AM

    Re: C# code behind not working?

    Terry, 

    Since dfort and I have the same problem I placed my examples here for you.  I am doing my coding in VB he is using C#.  Either way should work the same.

    Here you go.
     
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

            Editor1.AutoConfigure = Editor1.AutoConfigure.Full
            Editor1.EnableContextMenu = False
            Editor1.ShowBottomBar = False
            Editor1.Height = Editor1.Height.Pixel(200)

            Editor2.AutoConfigure = Editor2.AutoConfigure.Simple
            Editor2.EnableContextMenu = False
            Editor2.ShowBottomBar = False
            Editor2.Height = Editor2.Height.Pixel(200)

            Editor3.AutoConfigure = Editor3.AutoConfigure.None
            Editor3.EnableContextMenu = False
            Editor3.ShowBottomBar = False
            Editor3.Height = Editor3.Height.Pixel(200)

            Editor4.AutoConfigure = Editor4.AutoConfigure.Gecko
            Editor4.EnableContextMenu = False
            Editor4.ShowBottomBar = False
            Editor4.Height = Editor4.Height.Pixel(200)

            Editor5.TemplateItemList = Editor5.TemplateItemList.Concat("Bold,Italic,Underline,JustifyLeft,JustifyCenter,JustifyRight,InsertUnorderedList,Separator,Indent, Outdent")
            Editor5.EnableContextMenu = False
            Editor5.ShowBottomBar = False
            Editor5.Height = Editor5.Height.Pixel(200)
            End If
        End Sub

    The above is what I did for testing.  In my app I set the values from a database in a repeater, which allows me to create dynamic page templates for a CMS system, using custom templates and if no value exists for the template then the full toolbar is allowed to be used.  Because alot of this is done dynamically on the page build it is all done in the code behind page.


    Drone

    No one knows everything, so I come here to learn and teach.
View Complete Thread