STATE MANAGEMENT IN ASP.NET PART-II

Posted on Updated on

Image result for ASP.NETSTATE  MANAGEMENT

HiddenFields

ASP.NET permits you to store data in a HiddenField control, which renders as a standard HTML shrouded field. A concealed field does not render unmistakably in the program, but rather you can set its properties similarly as you can with a standard control. At the point when a page is submitted to the server, the substance of a shrouded field is sent in the HTTP shape gathering alongside the estimations of different controls. A shrouded field goes about as a storehouse for any page-particular data that you need to store specifically in the page.

A  HiddenField  control  stores  a  solitary  variable  in  its  Value  property  and  must  be  unequivocally  added  to  the  page.  For  more  data,  see  HiddenField  Web  Server  Control  Overview.  All  together  for  concealed  field  qualities  to  be  accessible  amid  page  handling,  you  should  present  the  page  utilizing  a  HTTP  POST  summon.  On  the  off  chance  that  you  utilize  shrouded  fields  and  a  page  is  handled  in  light  of  a  connection  or  a  HTTP  GET  summon,  the  concealed  fields  won’t  be  accessible.  For  use  suggestions,  see  ASP.NET  State  Management  Recommendations.

Cookies

A  treat  is  a  little  measure  of  information  that  is  put  away  either  in  a  content  document  on  the  customer  record  framework  or  in-memory  in  the  customer  program  session.  It  contains  site-particular  data  that  the  server  sends  to  the  customer  alongside  page  yield.  Treats  can  be  transitory  (with  particular  lapse  times  and  dates)  or  industrious.  You  can  utilize  treats  to  store  data  about  a  specific  customer,  session,  or  application.  The  treats  are  saved  money  on  the  customer  gadget,  and  when  the  program  asks  for  a  page,  the  customer  sends  the  data  in  the  treat  alongside  the  demand  data.  The  server  can  read  the  treat  and  concentrate  its  esteem.  A  normal  utilize  is  to  store  a  token  (maybe  scrambled)  demonstrating  that  the  client  has  as  of  now  been  confirmed  in  your  application.

QueryStrings

An inquiry string is data that is added to the end of a page URL. A run of the mill question string may resemble the accompanying case:

http://www.contoso.com/listwidgets.aspx?category=basic&price=100

In  the  URL  way  over,  the  inquiry  string  begins  with  a  question  mark  (?)  and  incorporates  two  trait/esteem  sets,  one  called  “class”  and  the  other  called  “cost.”

Question  strings  give  a  straightforward  yet  restricted  approach  to  keep  up  state  data.  For  instance,  they  are  a  simple  approach  to  pass  data  starting  with  one  page  then  onto  the  next,  for  example,  passing  an  item  number  starting  with  one  page  then  onto  the  next  page  where  it  will  be  handled.  In  any  case,  a  few  programs  and  customer  gadgets  force  a  2083-character  constrain  on  the  length  of  the  URL.

All together for inquiry string qualities to be accessible amid page handling, you should present the page utilising a HTTP GET order. That is, you can’t exploit a question string if a page is prepared in light of a HTTP POST order.

*****************************************************************************************************

For more details and queries please feel free to email, visit or call us. Wishing you the very best for all your future endeavors.
Helpline: 9814666333, 8699444666
Email: info@technocampus.co.in

Please fill the form and we shall contact you soon.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s