473,411 Members | 2,148 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

Request.QueryString w/o ASP?

Does Request.QueryString need to be carried out using ASP, or can JavaScript
handle this?

I know it is simple, but I've never done it and I don't know what to search
for.

Say I wanted my default web page to display my projects. I want to be able
to pass a link like this:

www.joeswelding.biz/index.htm?page=projects

Do I need to change my index page to ASP to do this? I know it isn't hard to
change, but I hate not knowing another way (like JavaScript) to do things
(like QueryString).

Regards!
Joe
Jan 5 '08 #1
2 2444
jp2express wrote on 05 jan 2008 in
microsoft.public.inetserver.asp.general:
Does Request.QueryString need to be carried out using ASP, or can
JavaScript handle this?
Your Q is impossible to anwer directly,
since you presume things that are not true:

On topic:

Yes, Request.QueryString needs to be carried out using ASP.

But:

ASP is not a language, but a serverside platform,
having the Request object.

Yes, Javascript can be used serverside on the ASP platform,
and so can use the Request object.

Off topic:

No, clientside Javascript does not have access to a Request object.

Yes, clientside Javascript can get the querystring,
not using a request object,
but using window.location.search.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jan 5 '08 #2
jp2express wrote:
Thanks! That's what I was looking for. I guess JavaScript doesn't
have a neat client side version.

Evertjan, if you are reading this, sorry to have upset you,
Given that he answered your question, I'm not sure how you can say he was
upset. Beware of trying to read emotion into text messages, especially those
from people whose first language is not English.
but how
do you ask a question if you don't know the proper way to phrase it?
The phrasing was not the issue.
I didn't know if a JavaScript technique was client side or server
side,
It can be either. Javascript is a scripting language that can be used in
either server-side or client-side code.
but the fact that I did not want to turn my HTML page into an
ASP page should have answered your question.
As well as your own. If it's not a .asp page, then it's not an "asp"
question, now is it? It pretty much HAS to involve client-side code, which
is better handled in a client-side scripting group like
microsoft.public.scripting.jscript or comp.lang.javascript.

Again, do not read this as a rebuke: it is intended to help you get help
more efficiently in the future.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jan 7 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: momo | last post by:
Hello Newsgroup, I want to pass a Request.Form variable to an ASP form, through the url for example lets say i have a form with a textfiled called "txtName" if i click the submit button for...
4
by: Max | last post by:
Hello. This is the first time I've posted to a newsgroup, and I do this because I'm in desperate need of help. I'm working a user management system, and when I activate a user that has registered...
5
by: Ivan | last post by:
hi, I saw some program using "request("fieldname") " instead of "request.QueryString" to get the value from URL, what's the different ?? thanks
0
by: Anders Borum | last post by:
Hello! I would like to request a new method on the XsltArgumentList class, allowing developers to check the presense of a key/value pair. If you try to add a key/value pair that has already been...
1
by: FD | last post by:
For performance reason, the follwoing code (C#) to capture all the Request collection contexts is NOT recommended: string ID = Request.QueryString; But how to Capture the individual Request...
4
by: Steve | last post by:
Hi- I'd like to set values in the QueryString if I detect that a user submits a bad value, say... ?id=333 where there is no id '333', I would like to set it to '0' for example. I tried to use...
2
by: mahsa | last post by:
Hi have have some link like thi http://x.com/Shoppingcart.aspx?pn=ps50210&qty_ps50210=1&pn=excel&qty_excel=1&pn=l4504000&qty_l4504000=1&sku=PS50210&cat=laminate&action=updat now I want to request...
4
by: Guoqi Zheng | last post by:
On my application, I need to have different action based on the pass in query string. When the query string is not presented, I try to use If request.querystring("id") ="" THEN ...... This is...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
7
by: =?Utf-8?B?QVRT?= | last post by:
HOWTO Make CStr for JavaScript on ASP w/ Request.Form and QueryString In ASP, Request.Form and Request.QueryString return objects that do not support "toString", or any JavaScript string...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.