Click here to Skip to main content
15,896,310 members
Home / Discussions / Web Development
   

Web Development

 
QuestionInstall ActiveX pluggin on PocketPC Emulator...? Pin
Mundo Cani13-May-07 6:52
Mundo Cani13-May-07 6:52 
QuestionAdding advanced web forms to JavaScript Pin
Nermeenez12-May-07 22:19
Nermeenez12-May-07 22:19 
AnswerRe: Adding advanced web forms to JavaScript Pin
Christian Graus12-May-07 23:58
protectorChristian Graus12-May-07 23:58 
Questiondetecting IP address & banning the vistor Pin
DEVILSAN12-May-07 12:00
DEVILSAN12-May-07 12:00 
AnswerRe: detecting IP address & banning the vistor Pin
MatrixCoder12-May-07 12:08
MatrixCoder12-May-07 12:08 
AnswerRe: detecting IP address & banning the vistor Pin
Davide Icardi12-May-07 12:28
Davide Icardi12-May-07 12:28 
JokeRe: detecting IP address & banning the vistor Pin
JimmyRopes13-May-07 9:03
professionalJimmyRopes13-May-07 9:03 
QuestionWeird Post-Back Thing Pin
#realJSOP12-May-07 1:38
professional#realJSOP12-May-07 1:38 
Writing VBScript in a "classic" ASP page...

I have several similar instances of the following code in a file called mypage.asp

<a href="mypage.asp?myAction=action1&myValue=1">Action1</a>


At the top of the same file, I have the following code:

Dim sAction: sAction = request.QueryString("myAction")
Dim sValue:  sValue  = request.QueryString("myValue")

' CHECK QUERYSTRING HERE

select case sAction
    case "action1"
        DoSomethingWith1(sValue)
    case "action2"
        DoSomethingWith2(sValue)
    case "action3"
        DoSomethingWith3(sValue)
    case "action4"
        DoSomethingWith4(sValue)
end select


Everything looks normal, right? (BTW, I typed this from memory so pardon any minor typos.)

Bizarre - Part 1

The first two "actions" are processed as you would expect. When I check the querystring at the indicated position (I throw up an alert box with the values in it), I see the values I expect. When it processes either of the 2nd two post-backs, the query string is empty.

Bizarre - Part 2

If I leave the select statement alone, but change the NAME of either querystring parameter, I get the expected querystring parameters

---------------------------------

Does anyone have any idea as to what I might have done wrong?





"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: Weird Post-Back Thing Pin
Hesham Amin13-May-07 9:21
Hesham Amin13-May-07 9:21 
GeneralRe: Weird Post-Back Thing Pin
#realJSOP13-May-07 23:21
professional#realJSOP13-May-07 23:21 
GeneralRe: Weird Post-Back Thing Pin
#realJSOP14-May-07 4:16
professional#realJSOP14-May-07 4:16 
QuestionHow to launch project in IE (keeps coming up in firefox) Pin
Mundo Cani11-May-07 22:51
Mundo Cani11-May-07 22:51 
AnswerRe: How to launch project in IE (keeps coming up in firefox) Pin
Mundo Cani11-May-07 22:58
Mundo Cani11-May-07 22:58 
GeneralRe: How to launch project in IE (keeps coming up in firefox) Pin
#realJSOP12-May-07 1:24
professional#realJSOP12-May-07 1:24 
GeneralRe: How to launch project in IE (keeps coming up in firefox) Pin
Arun.Immanuel12-May-07 2:32
Arun.Immanuel12-May-07 2:32 
GeneralRe: How to launch project in IE (keeps coming up in firefox) Pin
Mundo Cani12-May-07 7:09
Mundo Cani12-May-07 7:09 
QuestionPHP getType Pin
Socheat.Net11-May-07 19:53
Socheat.Net11-May-07 19:53 
AnswerRe: PHP getType Pin
#realJSOP12-May-07 1:18
professional#realJSOP12-May-07 1:18 
GeneralRe: PHP getType Pin
Socheat.Net13-May-07 15:29
Socheat.Net13-May-07 15:29 
AnswerRe: PHP getType Pin
JimmyRopes15-May-07 3:52
professionalJimmyRopes15-May-07 3:52 
QuestionHow to highlight the row..... Pin
Dotnetkanna11-May-07 9:06
Dotnetkanna11-May-07 9:06 
QuestionCalendar enhancement ? Pin
Cody_2111-May-07 7:37
Cody_2111-May-07 7:37 
QuestionBUTTON OVER IMAGE IN ASP.NET? Pin
hifiger200411-May-07 6:38
hifiger200411-May-07 6:38 
AnswerRe: BUTTON OVER IMAGE IN ASP.NET? Pin
Fred_Smith11-May-07 7:33
Fred_Smith11-May-07 7:33 
GeneralRe: BUTTON OVER IMAGE IN ASP.NET? Pin
hifiger200411-May-07 8:01
hifiger200411-May-07 8:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.