Design Time Properties

Discussion in 'ASP .Net' started by CsaaGuy, Jul 13, 2005.

  1. CsaaGuy

    CsaaGuy Guest

    I am curious, does anyone know how the visual studio saves the
    properties you set at design time? I would like to do this at runtime
    so i'm curious.

    A note: I had a post eariler about setting a sub classed textbox user
    defined property at runtime. I was losing the value on postback. I
    subituted the variable with a call to the viewstate with the ID of the
    textbox and the name of the property together. That worked, but i am
    concerned about the the size of the viewstate. Any suggestions? Thanks.
    CsaaGuy, Jul 13, 2005
    #1
    1. Advertising

  2. CsaaGuy

    Bruce Barker Guest

    the design time properties are stored in the source code (aspx page). look
    at an <asp:> control, and you will see all the set properties as attribute
    values.

    you are correct, viewstate blot is a performance problem with asp.net apps.
    slap a grid on your page, and viewstate is 10-100k. store as little as
    possible in viewstate.

    -- bruce (sqlwork.com)


    "CsaaGuy" <> wrote in message
    news:...
    >I am curious, does anyone know how the visual studio saves the
    > properties you set at design time? I would like to do this at runtime
    > so i'm curious.
    >
    > A note: I had a post eariler about setting a sub classed textbox user
    > defined property at runtime. I was losing the value on postback. I
    > subituted the variable with a call to the viewstate with the ID of the
    > textbox and the name of the property together. That worked, but i am
    > concerned about the the size of the viewstate. Any suggestions? Thanks.
    >
    Bruce Barker, Jul 14, 2005
    #2
    1. Advertising

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. AG
    Replies:
    0
    Views:
    337
  2. flamesrock
    Replies:
    8
    Views:
    430
    Hendrik van Rooyen
    Nov 24, 2006
  3. =?Utf-8?B?QW1pciBUb2hpZGk=?=

    Displaying user control properties at Design Time

    =?Utf-8?B?QW1pciBUb2hpZGk=?=, Jun 25, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    373
    =?Utf-8?B?QW1pciBUb2hpZGk=?=
    Jun 25, 2007
  4. vml
    Replies:
    0
    Views:
    279
  5. Peter

    properties not showing in properties window at design time

    Peter, Dec 10, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    195
    Lostinet.Web Support
    Dec 10, 2003
Loading...

Share This Page