473,466 Members | 1,457 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Handling arrays in request.querystring (c#)

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 QueryString and as
such I am getting a URL similar to the following created...

http://localhost/doprint.aspx?pid=14...&pa=bth&pa=gen

Pid is a unique identifier for the entity which the text sections are
related to and pa is a list of text sections to be printed.

In Classic ASP getting these out in order was fairly simple but there
seems to be a bewildering array of methods to attack the
Request.QueryString object.

Ideally I'd like to end up with a comma seperated list or array of the
values assigned the the "pa" array.

Can anyone offer assistance? I'm writing in C#.

M@t :o)
Nov 18 '05 #1
3 13807
Request.QueryString.GetValues("pa") will return array of string

HTH

"Matthew Thompson" <ma**************@lrfairplay.com> wrote in message
news:j8********************************@4ax.com...
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 QueryString and as
such I am getting a URL similar to the following created...

http://localhost/doprint.aspx?pid=14...&pa=bth&pa=gen

Pid is a unique identifier for the entity which the text sections are
related to and pa is a list of text sections to be printed.

In Classic ASP getting these out in order was fairly simple but there
seems to be a bewildering array of methods to attack the
Request.QueryString object.

Ideally I'd like to end up with a comma seperated list or array of the
values assigned the the "pa" array.

Can anyone offer assistance? I'm writing in C#.

M@t :o)

Nov 18 '05 #2
On Mon, 24 Nov 2003 15:10:15 +0200, "Anatoly" <an*****@hotmail.com>
wrote:
Request.QueryString.GetValues("pa") will return array of string

HTH


Thanks - this worked great - shame you can't just foreach through
Request.QueryString.GetValues("pa")! Are you listening Microsoft :o)

M@t :o)
Nov 18 '05 #3
Hi Matthew,

Thank you for posting to the MSDN newsgroups.

I have forwarded your request to the product team. In addition, you can
also send the feedback/feature request of our products to Microsoft
directly.

http://register.microsoft.com/mswish/suggestion.asp

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 18 '05 #4

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

Similar topics

2
by: Andy Kowaluk | last post by:
I have an intranet site that connects to an access database using ASP (Javascript). > Currently, when an user attempts to enter a duplicate value into the > database it is rejected and the user is...
3
by: news.onet.pl | last post by:
Hello I'm biting into the following problem: HTTP is stateless protocol and thus net languages' designer had to find out session. As far as I know session handling in any of the language (PHP,...
10
by: John . | last post by:
I have an error handling routine that emails me the Err.Source, Err.Nbr, and Err.Description in the event of an error. How can I include the line number of the error as well and the filename? ...
0
by: Colin Ramsay | last post by:
Hi all, I don't normally post swathes of code like this but I am truly banging my head off my desk here... I've dynamically created a datagrid within a usercontrol. There are two columns...
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: Mark | last post by:
Hi... Just noticed something odd... In old ASP if you had query parameters that were invalid for their encoding (broken utf-8, say), ASP would give you back chars representing the 8-bit byte...
12
by: scsharma | last post by:
Hi, I am working on creating a webapplication and my design calls for creating main webform which will have menu bar on left hand side and a IFrame which will contain all the forms that are shown...
4
by: Eugene Anthony | last post by:
One problem with the code bellow is after this code conn.qDupUser p1,rs I added: set rs = nothing to test the error handling capability.
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...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.