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

  • SEARCH
  • Home
  • 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 6612563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:06:49+00:00 2026-05-25T20:06:49+00:00

I am sending some values from one page to another in asp.net using javascript.

  • 0

I am sending some values from one page to another in asp.net using javascript. I have declared JS in parent page and the values are being sent to child page and fetched in code behind page using Request.Querystring. Look to my previous question here

To give you a detailed look, See below example

chStatusReport.Attributes.Add("onclick", "javascript:return Navigate( '" + varTrimmed+ "' );");

JS to open a child page is under

<script type="text/javascript" language="javascript">
        function Navigate(status) {
        window.open("ChildPage.aspx?status=" + status)
        return false;
        }
    </script>

Code fetching the value pass from parent to child page.

 if (Request.QueryString.Count!=0)

 { svar1= Request.QueryString["status"];
   }

Values that are being passed are like 1 )Tom & Peter 2 ) Laurence & Hardy

The values that i get are 1 ) Tom 2) Laurence

Why the remaining text get trimmed?

  • 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-05-25T20:06:49+00:00Added an answer on May 25, 2026 at 8:06 pm

    You can’t use & directly in querystring.

    You have to either encode or change & to another unicode manually and translate it back.

    Here is a link for explanation.

    http://www.kamath.com/codelibrary/cl006_url.asp

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having some trouble sending values from one page to another using the
Having some trouble passing values from one class to another. I basically have a
I am trying to transfer data from one page to another but some problem
I have some problems sending mails through SMTP using Spring's MailSender interface and the
I got some sample code from the net here: http://www.javadb.com/sending-a-post-request-with-parameters-from-a-java-class That works fine. It
I'm trying to make motion controller using the values from android sensors. Currently sending/receiving
I'm sending some data to an external URL using Curl. The server sends me
I have some problems sending an id though jquery. I have a form select
Is there some way when sending this message to specify that I rather have
We have some third parties that are sending us traffic and have asked us

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.