473,657 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading URL arguments passed via Hyperlink

Hi,
I am implementing an internet app via Visual Studio.Net 2003 using VB.Net.
There are numerous references within the Help facilities for using or
passing data between Internet pages via Hyperlink arguments or parameters.

example
http://www.something.com/exam.aspx?i...&source=hon999

However, I have not been able to find any documentation or help on how the
called page actually can retrieve or read those arguments or parameters. I
assume that it can be done in the pageload but what do you use to access the
calling URL or which command is used to read the arguments.

It would be great is someone could offer simple code examples. Maybe this
function is obvious to others, but it isn't to me. I just want to know what
arguments have been passed to the newly called page that I am loading.

Thanks,
hugh
Nov 21 '05 #1
3 2083
"Hugh O" <Hu****@newsgro up.nospam> schrieb:
I am implementing an internet app via Visual Studio.Net 2003 using
VB.Net. There are numerous references within the Help facilities for using
or passing data between Internet pages via Hyperlink arguments or
parameters.

example
http://www.something.com/exam.aspx?i...&source=hon999

However, I have not been able to find any documentation or help on how the
called page actually can retrieve or read those arguments or parameters.
I assume that it can be done in the pageload but what do you use to access
the calling URL or which command is used to read the arguments.


Check out 'Request.QueryS tring'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #2
Hi,

You use the Request.QuerySt ring collection in the called page to access the
passed variables via URLs. In this case, for example:

Request.QuerySt ring("i") will return 387964908 as a string. Similarly,
Request.QuerySt ring ("rr") will return string y.

Hope this helps.

"Hugh O" <Hu****@newsgro up.nospam> wrote in message
news:uw******** ******@TK2MSFTN GP10.phx.gbl...
Hi,
I am implementing an internet app via Visual Studio.Net 2003 using VB.Net.
There are numerous references within the Help facilities for using or
passing data between Internet pages via Hyperlink arguments or parameters.

example
http://www.something.com/exam.aspx?i...&source=hon999

However, I have not been able to find any documentation or help on how the
called page actually can retrieve or read those arguments or parameters. I
assume that it can be done in the pageload but what do you use to access the
calling URL or which command is used to read the arguments.

It would be great is someone could offer simple code examples. Maybe this
function is obvious to others, but it isn't to me. I just want to know what
arguments have been passed to the newly called page that I am loading.

Thanks,
hugh

Nov 21 '05 #3
Siva and Herfried,
Thanks a lot. Just what I needed. VB.Net is a neat language when you know
the correct verbs.

Thanks again
hugh

"Siva M" <sh******@onlin e.excite.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Hi,

You use the Request.QuerySt ring collection in the called page to access
the
passed variables via URLs. In this case, for example:

Request.QuerySt ring("i") will return 387964908 as a string. Similarly,
Request.QuerySt ring ("rr") will return string y.

Hope this helps.

"Hugh O" <Hu****@newsgro up.nospam> wrote in message
news:uw******** ******@TK2MSFTN GP10.phx.gbl...
Hi,
I am implementing an internet app via Visual Studio.Net 2003 using
VB.Net.
There are numerous references within the Help facilities for using or
passing data between Internet pages via Hyperlink arguments or parameters.

example
http://www.something.com/exam.aspx?i...&source=hon999

However, I have not been able to find any documentation or help on how the
called page actually can retrieve or read those arguments or parameters.
I
assume that it can be done in the pageload but what do you use to access
the
calling URL or which command is used to read the arguments.

It would be great is someone could offer simple code examples. Maybe this
function is obvious to others, but it isn't to me. I just want to know
what
arguments have been passed to the newly called page that I am loading.

Thanks,
hugh

Nov 21 '05 #4

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

Similar topics

8
2551
by: Paul | last post by:
This method: static void swap(int a, int b) { int c = a; a = b; b = c; } does not swap the values of a and b over. It doesn't work for String variables either. However the following method does swap the first two
1
6010
by: Randell D. | last post by:
HELP! I am determined to stick with this... I'm getting there... for those who haven't read my earlier posts, I'm createing what should be a simple function that I can call to check that required fields in a form have values. I'm writing the values to the client using document.write only so that I can confirm that the values are there to be played with - this is not the final result so please (unless it's leading to the script failure)...
3
7590
by: Max | last post by:
Yea this is probably a n00b question, but I haven't programmed C++ in at least 2 years and have never programmed for unix, sorry :) Anyway, I have a project in which a program is required to read from an input file, process it and spit some stuff back out. The program will be called from UNIX using "a.out < primary.input". That primary.input file has a number of lines that I need to read. How do I go about reading them into a string...
7
2310
by: qazmlp | last post by:
void func() { // Is it by anyway possible to read the value of the first command line parameter i.e. argv here ? } int main() { func() ; // No command line arguments are passed to func(). }
7
1912
by: Subhransu Sekhar Sahoo | last post by:
Hi, I have a very basic qus. An executable can be written using n number of languages, viz C,,C++,Perl,Java,...And all these languages use different calling convensions for example C uses cdecl and C++ uses fast call and so on. Now, my question how does the console window pass command line arguments to the executable with out knowing whether it is a C or Java executable. Thanking In Advance,
39
7636
by: Mike MacSween | last post by:
Just spent a happy 10 mins trying to understand a function I wrote sometime ago. Then remembered that arguments are passed by reference, by default. Does the fact that this slowed me down indicate: a) That I don't know enough b) Passing arguments by ref is bad
1
1273
by: Andrew Banks | last post by:
I've got the following code in a control and the reader doesn't seem to be working. The connection details are correct. Any ideas? I am reading data from this database to log the user and a lot of the details are the same. public class AdminNavigation : System.Web.UI.UserControl {
11
4056
by: -Lost | last post by:
I have this generic function (JavaScript newbie here, so don't think I am going to impress you): function blah() { var container = ''; for(var i = 0; i < arguments.length; i++) { container += arguments + '\n'; }
15
2313
by: arnuld | last post by:
i am not able to figure out the error: /* C++ Primer - 4/e * * exercise 7.16 * STATEMENT: * write a programme that accepts the arguments to main. print * the values passed to main. * */
0
8823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8730
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.