PostBack Issue

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

Guest

i want to maintain the value of a particular variable during postBack, i choose to use Label by invisible it or using hidden field , however, the value of the variable which i want to maintain its value (sensitive value) actually do not allow to be viewed by using viewsource in browser, can i achieve this by using hidden field, label or other controls? Some suggested using static variable, but besides that, any other suggestion on this? Thank you so much ...
 
A Session Variable would be your safest bet if it needs to stay on the
server side.
You could also encrypt it using a 2-way encryption method and then let it be
stored in the viewstate.

Sessions method is alot quicker with less overhead

Hope this helps. Posting is provided as is
 
Back
Top