General usercontrols question.

Last post 11-12-2009 4:50 AM by Mellanie. 2 replies.

Sort Posts:

  • General usercontrols question.

    10-23-2009, 6:50 AM
    • Member
      4 point Member
    • greecemonkey
    • Member since 04-14-2009, 9:40 PM
    • UK
    • Posts 40

    I have a column on the left of my site that varies depending on the page. It can include all sorts of information and boxes. I think at the moment it contains 4 or 5 elements of a possible 16 depending what the page is.

    This is all in ASP at the moment, and I am moving to .net.

    What I do at the moment is have a 16 bit number and use the 1 and 0 to determine how the left column is configured.

    I was thinking of making a usercontrol with a stringbuilder and depending on the if a particult element of content was required just build the column element in HTML into a string

    the other idea I had was a usercontrol in a usercontrol, but not sure if this is even possible or might be two messy

    Any ideas or input would be a great help

     

    Graham

     

     

     

    Graham Mattingley
    GreeceMonkey Ltd
  • Re: General usercontrols question.

    10-23-2009, 2:56 PM
    • All-Star
      16,433 point All-Star
    • stiletto
    • Member since 07-10-2003, 4:42 AM
    • Louisville, KY
    • Posts 3,208

    Why not build the column out of sections with a boolean based on the bits in your number and then refactor any sections into their own user controls on an as needed basis?

  • Re: General usercontrols question.

    11-12-2009, 4:50 AM
    • Member
      190 point Member
    • Mellanie
    • Member since 10-18-2009, 10:28 PM
    • Posts 89

    Is that already live? Could you give us your site's name?

    Seekdotnet.com provided ASP.NET Hosting for Shared Windows 2008 Hosting and also supported Reseller ASP Hosting Plan.

    Get 25% Off for any hosting plans within type this 25%OFF at Promotional Code's box

Page 1 of 1 (3 items)