Click here to Skip to main content
15,921,884 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Number of working days between 2 dates (PLZ Help) Pin
Michael P Butler9-May-06 21:13
Michael P Butler9-May-06 21:13 
GeneralRe: Number of working days between 2 dates (PLZ Help) Pin
Programm3r10-May-06 20:52
Programm3r10-May-06 20:52 
QuestionIP address of a machine consuming a web service Pin
Saji Karekatt9-May-06 15:59
Saji Karekatt9-May-06 15:59 
QuestionProblem with Loading XML Unicode(iso-8859-1) file into DOM Pin
bhavani_ge9-May-06 13:17
bhavani_ge9-May-06 13:17 
Questionjavascript switch statement - weird behavior (I think) Pin
Jesse Evans9-May-06 8:32
Jesse Evans9-May-06 8:32 
AnswerRe: javascript switch statement - weird behavior (I think) Pin
Guffa9-May-06 12:04
Guffa9-May-06 12:04 
GeneralRe: javascript switch statement - weird behavior (I think) Pin
Jesse Evans10-May-06 7:27
Jesse Evans10-May-06 7:27 
AnswerRe: javascript switch statement - weird behavior (I think) Pin
Guffa10-May-06 9:42
Guffa10-May-06 9:42 
Jesse Evans wrote:
If that's the case, why do I get the proper string when I insert a Response.Write(Request.Querystring("Format"));


Because the Write method will get the value of the collection, which is a comma separated string with the values of the collection. If the collection only contains one item, there is nothing to separate with commas so the value will be that single item.

Jesse Evans wrote:
Also, Response.Write(Request.Querystring("Format").Value) does not print the string. In fact, I cannot find .Value as a property of Request.QueryString in any MS documentation.


Right. My bad. There is no Value property. My memory failed me.

The Querystring method returns an IStringList object, which has the Count and Item properties.

You can use the Item property to get the first item in the collection:

var szMethod = Request.Querystring("Method").Item(1);

As the Item property is the default property of the object, you can also write it like this:

var szMethod = Request.Querystring("Method")(1);

You can also use anything that will get the value of the collection, like:

var szMethod = new String(Request.Querystring("Method"));


---
b { font-weight: normal; }

GeneralRe: javascript switch statement - weird behavior (I think) Pin
Jesse Evans10-May-06 11:21
Jesse Evans10-May-06 11:21 
Questionhow to create multiple selection listbox with checkbox(listcheckbox) in asp Pin
virendra_sw9-May-06 3:40
virendra_sw9-May-06 3:40 
QuestionWeb Chart Control Pin
hi_arv8-May-06 23:38
hi_arv8-May-06 23:38 
QuestionIE 7 Beta 3 Pin
Brendan Vogt8-May-06 22:12
Brendan Vogt8-May-06 22:12 
AnswerRe: IE 7 Beta 3 Pin
Guffa9-May-06 0:35
Guffa9-May-06 0:35 
QuestionHow to use msiHiddenProperties property for MSI. I am using VS.NET IDE [Need Help] Pin
Kumar Shanmugam8-May-06 20:04
professionalKumar Shanmugam8-May-06 20:04 
QuestionFooter Problems! (5 Side by Side DIV elements, at bottom of the page) Pin
chasetoys8-May-06 12:31
chasetoys8-May-06 12:31 
QuestionWeb Package Pin
yedy8-May-06 1:13
yedy8-May-06 1:13 
QuestionIIS metabase Error Pin
hasan19828-May-06 1:00
hasan19828-May-06 1:00 
QuestionHow to draw a rectangle using Javascript? Pin
KaKa'7-May-06 23:13
KaKa'7-May-06 23:13 
AnswerRe: How to draw a rectangle using Javascript? Pin
CWIZO9-May-06 0:45
CWIZO9-May-06 0:45 
QuestionExecuting parent window's function Pin
metbinu2003@yahoo.com7-May-06 22:02
metbinu2003@yahoo.com7-May-06 22:02 
AnswerRe: Executing parent window's function Pin
CWIZO7-May-06 22:08
CWIZO7-May-06 22:08 
Questionconnecting to MS Access database with JavaScript Pin
mhmo7-May-06 6:46
mhmo7-May-06 6:46 
AnswerRe: connecting to MS Access database with JavaScript Pin
Roger Wright7-May-06 7:32
professionalRoger Wright7-May-06 7:32 
AnswerRe: connecting to MS Access database with JavaScript Pin
Guffa7-May-06 9:24
Guffa7-May-06 9:24 
QuestionHow to draw a rectangle on a webpage? Pin
KaKa'7-May-06 5:41
KaKa'7-May-06 5:41 

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.