Results 1 to 3 of 3

Thread: BEst method to pass information

  1. #1
    Junior Member
    Join Date
    Feb 2007
    Answers
    3

    BEst method to pass information

    Hello,

    a. If there are two web pages a.aspx and b.aspx if i have to pass form data from a.aspx to b.aspx what is the best way.


    b. Can I use view state to persform this


  2. #2
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: BEst method to pass information

    if the page contains huge data u need to approch sessions like( if it contains Datagrid'sDataset) else U can simply pass through Qurey String If u use ViewState It will consume most of the time while loading Perfomance Degradation comes in to picture.


  3. #3

    Re: BEst method to pass information

    No,ViewState cannot be used.ViewStates are used to preserve the state of a page during postback.ie. a.aspx posting back to itself.

    In your case,you can use session variables if the data is sensitive.Session variables can even be stored in a state server/sql server.

    You might pass it as querystring if the data is not too large.The data is appended in a part of the URL but is open for tempering.Hence,precautions are necessary.

    Cookies are also used to mentain state,but cookies are not enabled in every system,hence cookies are useful only if the data you want to store is not critical from your application perspective eg. User Preference etc.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact