Add to ViewState from assembly

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Virus Scanning is causing our Sessions to drop and the application to
restart. So my only solution is to utilize ViewState for about 3 small
strings on each page in C#. However, I am not using VS and need to do this in
an assembly.

I have created a class and inherited the page class but how do I add to the
current page's viewstate from this assembly? The assembly compiles by just
using ViewState["somevalue"] = thevalue; but the page does not have anything
set for these viewstate variables.

Thanks
 
Hi,

What do you mean by doing this in an assembly?

You could prevent virus scanning from checking those folders, it should be
done for preventing app restarts. You can prevent losing sessions by
switching sessions to use state server mode (when app restarts won't matter
to sessions, however if restart happens often it causes unneeded
reloading/unloading of assemblies)

Check these out:
http://support.microsoft.com/kb/316148/EN-US/
http://support.microsoft.com/default.aspx?scid=kb;en-us;312592
 

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

Back
Top