passing form values between pages without using a button or hyperlink to do it

Posted on 2005-05-03
Last Modified: 2010-04-07
Does anyone know how to pass form values between pages using a response.redirect or server.transfer, WITHOUT using a button command or hyperlink?

I have a form (pageA.aspx) that goes to pageB.aspx (user authentication script) that sets a hidden textbox value to 'Mets' (once the authentication is valid) and then redirects back to pageA.aspx.  Except whenever I try and pull the value from pageB I get a 'NULL' value.  Since the textbox is hidden (and technically the form pageB isn't suppose to be visible!!!) I can't use a button or hyperlink on the page (since to the user the page doesn't exsist, except I need to pull that value.  Any ideas????


Question by:shuittny
    LVL 15

    Assisted Solution

    how r u passing user from pagea.aspx to pageb.aspx and then back ....

    may be u can use session variables...

    Author Comment

    pageA would have a link to page B

    pageB is a user autentication page which prompts the user for their id and password.  if successful a hidden textbox value gets set toa value ('pass easily', let's say) and then redirected over to pageA

    pageA then reads the value from the hidden textfield and depending on the value, it will determine what fields need to be and not need to be shown.

    LVL 15

    Assisted Solution

    so pageb opens in the same window..or it opens in a pop up window like a dialog box....

    if it opens in the same page..and then once the user hits login button and then before u recirect to A can either set Session variable or query string or cookie ...or server.Transfer to go to A...

    or you can even use form authentication i guess...
    LVL 8

    Accepted Solution


    as the other experts have suggested, there are a number of ways to maintain state across ASP.NET pages.
    Each has its own benefits and drawbacks, and you'll have to decide which is the most suitable for your situation.

    Check this link out for more info:


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now