473,396 Members | 1,838 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,396 software developers and data experts.

using QueryString Property using VB.net

Hello,
I want to write the VB code to extract value from QueryString
property using ASP.Net, the following code should be written in The Form's
Action property.
Dim loop1, loop2 As Integer
Dim arr1(), arr2() As String
Dim coll As NameValueCollection

' Load Form variables into NameValueCollection variable.
coll=Request.QueryString
' Get names of all keys into a string array.
arr1 = coll.AllKeys
For loop1 = 0 To arr1.GetUpperBound(0)
Response.Write("Key: " & Server.HtmlEncode(arr1(loop1)) & "<br>")
' Get all values under this key.
arr2 = coll.GetValues(loop1)
For loop2 = 0 To arr2.GetUpperBound(0)
Response.Write("Value " & CStr(loop2) & ": " &
Server.HtmlEncode(arr2(loop2)) & "<br><br>")
Next loop2
Next loop1
How do I go about.Please hepl me, I am new to .Net.

Thank you

Nov 21 '05 #1
0 1694

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

Similar topics

5
by: Keith | last post by:
What is the easiest way to check if a particular QueryString exists? I want to know if the QueryString was ever passed rather than whether it contains a value or not.
1
by: Colin Mc Mahon | last post by:
Hi, I am trying to re-write an old url management class I use, and am having problems using the Execute method to create vars. I think i'm missing something simple, as I have used this method...
5
by: Mike | last post by:
Is it possible to loop round all querystring parameters in a web page (i.e. access them without hardcoding them)? I want to do this because I have a page that has different querystring variables...
2
by: Fredrik Rodin | last post by:
Hi! I need to be able to change, add or remove items in the QueryString. Let say I have the following scenario: Page_1.aspx display a dropdown list. This list is post-back enabled. It can...
8
by: tshad | last post by:
How do you check to see if there is no query string? I could have: 1) file.aspx 2) file.aspx?r=5&st=joe I need to know when there is no query string at all (1). Thanks,
1
by: beebee | last post by:
Hi all. I am having a bit of difficulty: Here is what is happening: I have an application that spits out a thankyou.aspx page and i would like to pass it the querystring values it had collected...
1
by: agarwasa2008 | last post by:
Hi, I am new to VB .NET programming. I need to display a value on a web form called FeatureList.aspx. Here are the details: The web form FeatureSearch.aspx contains a user control called...
8
by: =?Utf-8?B?Q2hyaXMgSGFsY3Jvdw==?= | last post by:
Hi there I've successfully added some .NET validation controls to a page (using <asp:RequiredFieldValidator ...), however when I try to set the 'display' property to 'dynamic', my page then...
7
by: =?Utf-8?B?QU9UWCBTYW4gQW50b25pbw==?= | last post by:
Hi, I have been using the code (some of it has been removed for simplicity) below to allow authenticated (using ASP.NET membership database) users to get a file from their archive area. It...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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.