Dynamically changing server control defaults

Discussion in 'ASP .Net' started by =?Utf-8?B?U2NvdHQgQy4=?=, Mar 3, 2004.

  1. We are building a web application that allow's the users to change the defaults of a their pages.
    Here is a list of what I've done so far
    1.) Return the control names, control properties and default values back from a database
    2.) I load each record into an objec
    3.) I then load all of these objects into a collection and send it back to the page.
    This all works great but then my problem starts
    Here is where I am stuck
    Dim cn As Strin
    Dim cp As Strin
    Dim cdv As Strin
    For Each obj In collControls 'This is my collection that was sent bac
    Dim cntl As D_Controls = New D_Controls 'This is my objec
    cntl = ob
    cn = cntl.ControlName 'example: "Button1
    cp = cntl.PropertyType 'example: "Text
    cdv = cntl.DefaultValue 'example: "Hello

    ' This is ultimately what I want to do. This is where the question lies.
    ' I know that the following doesn't work
    cn.cp = cdv ' example: Button1.Text = "Hello
    Loo

    Anyone have any ideas. All I want to do is reset the page's default

    Thanks
    Scot
     
    =?Utf-8?B?U2NvdHQgQy4=?=, Mar 3, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Fox

    Changing VS.NET defaults

    Mark Fox, Jul 31, 2003, in forum: ASP .Net
    Replies:
    5
    Views:
    587
    Yan-Hong Huang[MSFT]
    Aug 4, 2003
  2. Matthew Louden
    Replies:
    1
    Views:
    7,573
    Scott M.
    Oct 11, 2003
  3. Samridhi Kumar Shukla
    Replies:
    1
    Views:
    640
    Alvin Bruney
    Nov 30, 2003
  4. Andy Green
    Replies:
    3
    Views:
    641
    Alvin Bruney
    Jan 10, 2004
  5. =?Utf-8?B?UmV6YSBOYWJp?=

    Load User Control Dynamically, Cast object dynamically

    =?Utf-8?B?UmV6YSBOYWJp?=, Mar 4, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    7,097
    Matt Berther
    Mar 5, 2005
  6. Scott C.

    Dynamically changing server control defaults

    Scott C., Mar 4, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    195
    Scott C.
    Mar 4, 2004
  7. Scott C.

    Dynamically changing server control defaults

    Scott C., Mar 4, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    146
    Felbrigg
    Mar 5, 2004
  8. Bernie Beattie

    Login Control not using skin defaults?

    Bernie Beattie, Aug 11, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    316
    Bernie Beattie
    Aug 11, 2006
Loading...