Design Time Properties

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.
 
B

Bruce Barker

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)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top