Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8772869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:08:33+00:00 2026-06-13T18:08:33+00:00

I got a 2 ASP.NET solution. The first one is called HomePage and the

  • 0

I got a 2 ASP.NET solution. The first one is called HomePage and the other Main. I’m using IIS 7.5. At the root of IIS, I got 2 folders with the same name (HomePage and Main). Each solution is in their own folder.

I’m trying to transfer a session from HomePage to Main.

Main project (file ASPNETToASPNET.aspx)

private void Page_Load(object sender, System.EventArgs e)
{
    string queryString = String.Empty;
    string destPage = Request.Form["destpage"].ToString();
    ...
}

HomePage.aspx

private void Redirect_Click(object sender, CommandEventArgs e)
{
    Response.Redirect("http://www.website.com/Main/Pages/ASPNETToASPNET.aspx?destpage=" + e.CommandArgument + "&SessionNoClient=" + Session["SessionNoClient"], false);
    Response.Redirect("./Main/Pages/ASPNETToASPNET.aspx?destpage=" + e.CommandArgument + "&SessionNoClient=" + Session["SessionNoClient"], false);
}

When using the first redirect, I reach the appropriate file, but I got an error at line

string destPage = Request.Form["destpage"].ToString();
Object reference not set to an instance of an object.

When using the other redirect, I’m not able to find a way to reach the appropriate file.

As mentioned, both solutions are on same server and use the same domain.

Any solutions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T18:08:34+00:00Added an answer on June 13, 2026 at 6:08 pm
    string destPage = Request.QueryString["destpage"];
    
    1. This is not a transfer of session, you’re just passing query parameters.
    2. Request.Form collection contains POST values. For query string parameters (GET) use Request.QueryString or Request.Params, the last one searches your value in QueryString, Form, Cookies, and ServerVariables.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one project in asp.net using httpModules. But i got one exception while
I've got to look at the ORM solution for a new ASP.NET Web App
I've got an asp.net gridview inside an updatepanel. One of the fields I have
This has got to be one of the most frustrating issues with asp.net. I
i've got a VS2008 asp.net mvc solution with the projects: Common Project_1 Project_2 The
I've got three C# ASP.NET MVC2 projects within a single solution. Names have been
I've got an ASP.NET website project in my Solution, in Visual Studio 2010. I'm
I'm working on my first ASP.NET MVC 3 application and I've got two Controllers
I'm currently creating an application using ASP.NET MVC. I got some user input inside
Ok, I got an asp.net web service using WSE2. It runs on a xp

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.