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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:22:28+00:00 2026-05-27T05:22:28+00:00

It is possible to pass a parameter through server.execute ? Fx. I have in

  • 0

It is possible to pass a parameter through server.execute?

Fx. I have in my site.asp an IF-scenario where I need functions.asp?a=something&id=123 executed. Is this possible?!

On site.asp:

dim id
id = 123

if b = "hi" then
  server.execute("functions.asp?a=something&id=" & id)
else
  response.write("No way dude")
end if

On functions.asp

a = request.querystring("a")
id = request.querystring("id")

if a = "something" and cint(id) > 100 then
  response.write("Yes way dude")
else
  response.write("No way dude")
end if
  • 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-27T05:22:28+00:00Added an answer on May 27, 2026 at 5:22 am

    You can’t use querystring in Server.Execute, it’s clearly mentioned in the official documentation.

    What you can do is much better: you can directly access the variable id defined in site.asp inside functions.asp, and you can also declare and set another variable, a:

    –site.asp:

    dim id, a
    id = 123
    a = "something"
    server.execute("functions.asp")
    

    –functions.asp

    if a = "something" and cint(id) > 100 then
        response.write("Yes way dude")
    else  
        response.write("No way dude")
    end if
    

    As it creates whole new “scripting environment” the executed file won’t have access to the calling code properties, methods or variables, only to the global Request parameters, Session etc.

    With this in mind, I fear the most simple way around is using Session variable to pass the value between pages:

    Session("id") = 123
    Session("a") = "something"
    

    And then:

    if Session("a") = "something" and Session("id") > 100 then
        response.write("Yes way dude")
    else  
        response.write("No way dude")
    end if
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible in Javascript to pass a variable through the src parameter? ie.
I need to pass parameter to remote beanshell script which is run through java
Possible Duplicate: JavaScript Pass Variables Through Reference How can you do something like this
I would like to know if it's possible to pass a parameter to a
Is it possible to pass a list constructor parameter when resolving a type? I
In Ruby, is it possible to pass by reference a parameter with value-type semantics
In VB.NET, it is entirely possible to pass an integer as a string parameter
Possible Duplicate: How do you pass a function as a parameter in C? Is
In ASP.Net, is it possible to pass parameters to the New constructor of a
Is it possible to pass a parameter to the ViewModel constructor? I would then

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.