Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP - removeKey()

Posted on 1998-08-13
6
Medium Priority
?
161 Views
Last Modified: 2013-12-25
What is the syntax of the removeKey() method ?

I want to delete several variables contained in the URL and I tried like below, but it doesn't work !!!

removeKey(Request.ServerVariables("QUERY_STRING"), "COM_LIGNE", "COM_QUANT").
0
Comment
Question by:netf_ds
  • 3
  • 3
6 Comments
 
LVL 28

Expert Comment

by:sybe
ID: 1858988
ServerVariables are read-only

Maybe this will work:

MyVar = Request.ServerVariables("QUERY_STRING")

removeKey(MyVar, "COM_LIGNE", "COM_QUANT")

But I could not find the removeKey function, so I am not sure
0
 

Author Comment

by:netf_ds
ID: 1858989
Sorry, but it doesn't change anything !

Microsoft VBScript runtime error '800a01c2'

Wrong number of arguments or invalid property assignment: 'removeKey'

0
 
LVL 28

Expert Comment

by:sybe
ID: 1858990
I think you must have removeKey() defined somewhere in your code. Maybe in some include, or in the global.asa

Look there for how the sub or function is defined.

Your error message suggests that you should not pass 3 parameters to the function. Try passing 2 or 4 parameters.


this is what I get when I use your code:

=======================
Microsoft VBScript compilation error '800a0414'

Cannot use parens when calling a Sub

/asp/test/removekey.asp, line 5

removeKey(Request.ServerVariables("QUERY_STRING"), "COM_LIGNE", "COM_QUANT")
===============================


0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:netf_ds
ID: 1858991
Oooops,

You're right sybe : removeKey was a function I didn't saw in my application and not a predifined function (that's why we both didn't find any reference !). In fact it's not really my application, someone else began it and I was asked to finish it.

OK, if you want to earn the 50 points, I think you have to return me a blank answer.
0
 
LVL 28

Accepted Solution

by:
sybe earned 200 total points
ID: 1858992
ok
0
 

Author Comment

by:netf_ds
ID: 1858993
I finaly wrote :

removeKey(removeKey(Request.ServerVariables("QUERY_STRING"), "COM_QUANT"), "COM_LIGNE")
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question