473,405 Members | 2,294 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,405 software developers and data experts.

Retrieving arrays of values from the querystring?

In PHP if the querystring contains an array of parameters (e.g.,
param[0]=value1&param[1]=value2&param[2]=value3) then it is easy to retrieve
this and reference it as an array

$params = $_GET["param"];

echo $params[0]; //outputs value1
echo $params[1]; //outputs value2

My question is, is there an easy way to get this in C# ? Or do I have to
enumerate the querystring and check every parameter to see if it contains
name[int] and if so, build up my own array?
Nov 19 '05 #1
1 2576
Raymond,

Try this example:

http://msdn.microsoft.com/library/de...tringTopic.asp

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Raymond Bennett" <Ra************@discussions.microsoft.com> wrote in
message news:6D**********************************@microsof t.com...
In PHP if the querystring contains an array of parameters (e.g.,
param[0]=value1&param[1]=value2&param[2]=value3) then it is easy to
retrieve
this and reference it as an array

$params = $_GET["param"];

echo $params[0]; //outputs value1
echo $params[1]; //outputs value2

My question is, is there an easy way to get this in C# ? Or do I have to
enumerate the querystring and check every parameter to see if it contains
name[int] and if so, build up my own array?

Nov 19 '05 #2

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

Similar topics

3
by: spradl | last post by:
Anyone have a VB function or know how to retrieve original querystring values after they have been decryted and lie within a string? For example: Say I have the querystring...
5
by: James Baker | last post by:
I have a form that has a dropdown list that will cause a post to the same page when it's changed. The problem I'm running into is that all of the controls reset to their default values (obviously...
2
by: Sagaert Johan | last post by:
Hi I have set the columreorder to true Is there a way to get/set the current columnorder, so i can restore the order from a saved setting ? Johan
7
by: Anne | last post by:
hie there, i want to be able to pass multiple parameters to another page. currently, i am able to do so, but somehow i feel it is not the correct way to do it. below is part of what i have so far....
3
by: Matthew Thompson | last post by:
I am developing an application which allows users to choose multiple text sections from a list, displayed as a CheckBoxList, for printing. The sections are being passed to a page using the...
2
by: Rob Meade | last post by:
Hi all, I am getting the above error when I try to flick from HTML to Design view in Visual Studio - I get the jist of the error message, and I know the line of code which it refers to which is...
6
by: Roshawn Dawson | last post by:
Hi, While browsing the web, I've noticed that a lot of websites have values in the url without any file extensions mentioned. Consider this (fake) url: http://www.yourdomain.com/article/1 ...
0
by: Andy | last post by:
Hi All. I'm working for a company that has set out a guideline for retrieving data from a database. Nobody can explain to me the reason for the following. When retrieving a set of records...
7
by: Sirplaya | last post by:
I am retrieving images that I stored in SQL Server on my web pages in C#. I have no problem with the images displaying, however, I am trying to wrap the image with an <A HREF ..." and each time I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.