Design Time Properties

  • Thread starter Thread starter CsaaGuy
  • Start date Start date
C

CsaaGuy

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.
 
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)
 
Back
Top