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 1009469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T08:56:04+00:00 2026-05-16T08:56:04+00:00

Using C# & Java Script I have the link like this http://localhost/Server/Vehicle/Vehicle.aspx?appid=5 , when

  • 0

Using C# & Java Script

I have the link like this

"http://localhost/Server/Vehicle/Vehicle.aspx?appid=5", when i use this link the page is opening… But i want to get this appid value, then pass this appid value to another link

In the above link appid value is 5

For Example

Link1 http://localhost/Server/Vehicle/Vehicle.aspx?appid=5

In link2 the value 5 should display like this “http://localhost/Server/Vehicle/car.aspx?appid=5“

Tried Code

<a href="car.aspx?param=document.getElementById('appid').value">Entry</a>

But in another page the link is displaying like this

http://localhost/Server/Vehicle/car.aspx?param=document.getElementById('appid').value

How to get that appid value. I want to pass this value to another link

Need code Help

  • 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-16T08:56:05+00:00Added an answer on May 16, 2026 at 8:56 am

    Access the Request.QueryString as follows to retrieve the value of the appid query variable:

    string appid = Request.QueryString["appid"];
    

    Update:

    The JavaScript snippet won’t be executed in the href attribute of a link (it’s recognized as a normal string, and won’t be parsed as JavaScript code).

    With the following link a user will be successfully directed to your desired URL:

    <a href="#" onclick="javascript:window.location.href = 'car.aspx?param=' + document.getElementById('appid').value; return false;">Entry</a>
    

    Side note: the value property works only for HTML tags that have defined an eponymous attribute. One such tag would be the input tag. The div tag instead doesn’t have a value attribute defined, and therefore document.getElementById('appid').value would fail; use innerHTML instead in that case.

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

Sidebar

Related Questions

I have been tasked to develop an interactive website using java & mysql: using
I have a href tag that goes like this : href=download.php?file={$sp->attachment_1}&flag=ds&r_id={$userid}&scpl_id={$sp->sp_id}; that works and
I have links like http://example.com?query1=query1&query2=query2 as href of anchor tag. I want to do
I am using mootools & moocheck javascript libraries for custom checkboxes and radiobuttons. <script
My understanding is that when using && as an mathematical operation in Java, if
I am using the latest Eclipse for Java EE & the latest JBoss Tools
I am using blackberry java plugin for eclipse for development & as i downloaded
I am working on an iPhone Web App using HTML & CSS. I have
Assuming I have an Amazon product URL like so http://www.amazon.com/Kindle-Wireless-Reading-Display-Generation/dp/B0015T963C/ref=amb_link_86123711_2?pf_rd_m=ATVPDKIKX0DER&pf_rd_s=center-1&pf_rd_r=0AY9N5GXRYHCADJP5P0V&pf_rd_t=101&pf_rd_p=500528151&pf_rd_i=507846 How could I scrape
I would like to web-scrape the html source code of java-script pages that I

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.