Question : asp.net.. How do you maintain a persistant User state with class code ??

Ok.. I was bad, you can beat me up, but I was using static to keep my fields with a persistant state.

I am now comfortable with the idea of using Cache or Viewstate with one question. They don't work in the class form. It gives an error that when I researched it, others stated would be what you would get if using Cache on a window form. I guess since class code is for either, this is the answer.

But, what do you use in asp.net to keep variables persistant in the class code module? Like I have classes that have a bunch of crystal syntax.. I might set it up.. Go back to the web form, work with the report hitting next page buttons or something else causing postbacks, then return to the class expecting some of my fields there to have stayed persistant. That not be the best example, but it's the best I can think of right now. Something where I can't see passing the fields to the webform to set Cache or Viewstate to save, then having to pass them all back into the class when called again, just to have them stay persistant.

Answer : asp.net.. How do you maintain a persistant User state with class code ??

Dates don't have formats, only the string representations of the dates do

If you mean you want a DATE value with the time component truncated to 00:00:00 then try


TRUNC(sysdate)

you can't remove the time portion of a date,  some strings formats don't display 00:00:00 though
Random Solutions  
 
programming4us programming4us