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

aspx variables

Can anyone tell me how do I retrieve a variable sent the following way in the
page requested

webaddress/page.aspx?varName=someValue
I know how to retrieve it in .asp; i just wonder if this is the same case
with asp .net
I want to retrieve it so that I can use it on page.aspx
--
AR
Nov 18 '05 #1
3 1493
They are the same for this (asp and asp.net).

Have A Better One!

John M Deal, MCP
Necessity Software

Armando Ruiz wrote:
Can anyone tell me how do I retrieve a variable sent the following way in the
page requested

webaddress/page.aspx?varName=someValue
I know how to retrieve it in .asp; i just wonder if this is the same case
with asp .net
I want to retrieve it so that I can use it on page.aspx

Nov 18 '05 #2
Hi Armando,

Not much different. Try this:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Response.Write(Request.QueryString("varName"))
End Sub

Ken
MVP [ASP.NET]
"Armando Ruiz" <Ar*********@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
Can anyone tell me how do I retrieve a variable sent the following way in
the
page requested

webaddress/page.aspx?varName=someValue
I know how to retrieve it in .asp; i just wonder if this is the same case
with asp .net
I want to retrieve it so that I can use it on page.aspx
--
AR


Nov 18 '05 #3
Thank you very much.
I apreciate it
"Ken Cox [Microsoft MVP]" wrote:
Hi Armando,

Not much different. Try this:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Response.Write(Request.QueryString("varName"))
End Sub

Ken
MVP [ASP.NET]
"Armando Ruiz" <Ar*********@discussions.microsoft.com> wrote in message
news:DA**********************************@microsof t.com...
Can anyone tell me how do I retrieve a variable sent the following way in
the
page requested

webaddress/page.aspx?varName=someValue
I know how to retrieve it in .asp; i just wonder if this is the same case
with asp .net
I want to retrieve it so that I can use it on page.aspx
--
AR


Nov 18 '05 #4

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

Similar topics

3
by: Daniel | last post by:
right now i have some sql server tables that i search for a value w/ a key each time a .aspx is hit. is there any way i can just have the first hit to the .aspx select all the entries from the...
2
by: Alessandro Rossi | last post by:
Hi, I have a usercontrol with a button. In the button's click event I have to open an instance of an aspx page, passing some values to some public variables of the page. How can I call the instance...
6
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
6
by: Martin Eyles | last post by:
Hi, I have a .aspx page which has a .ascx file included through the lines <%@ Register TagPrefix="aspcustom" TagName="menu" Src="Menu.ascx" %> and <aspcustom:menu id="Menu1"...
5
by: GeRmIc | last post by:
Hi, I have an ASPX application from which I need to pass session variables (ex:username and password) to an ASP Page. How do I do this? Could you pls give a n example code for both aspx and asp....
2
by: barry | last post by:
Hi I keep username and password in Global.aspx static public string un = ""; static public string pw = ""; after a user logs in i update un and pw with the input values. but if i start...
1
by: djamilabouzid | last post by:
Hi, I want to build an aspx page with three combo box. Each combo represents data from the database. I have three xml variables that I build dynamically, let's say: var1, var2 and var3. I pass...
1
by: =?Utf-8?B?RnJpdHo=?= | last post by:
hi, i am currently investigating a bug in a complex code project. unfortunately i cannot ask the developer having written it as he has left the company. the thing is: a .cs-code-behind-file of...
3
by: mike | last post by:
Hello, I've got a .aspx page that passes login information to an .asp page using a querystring. The problem is its not secure, the user can see the login information right there and type in...
1
by: William LaMartin | last post by:
I have an aspx page, A.aspx, that uses some xml. The source of the xml is another aspx page, B.aspx. B.aspx is populated with xml by code that depends on several Session variables. This all...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
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
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...

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.