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

querystring doesn't work 1st time on page, only 2nd time

I have this url that I put into IE:
http://mysite/default.aspx?machinename=%COMPUTERNAME%

Computername is an app variable, and returns me the computer the browser is
sitting on. But thats not the problem. The problem is, when I type that in
to the browser & hit enter, it goes to 'mysite'. The page comes up. But
the "?machinename..." thing is gone. It just shoes up to default.aspx.
And in my codebehind, I also have verified that the tagged on information is
gone.
Now whats interesting is that if I put that same exact URL in again with the
querystring, while default.aspx is up, it works! And the codebehind sees
the querystring.

Anyone know why the first time, the querystring is getting deleted? TY !
Jason Shohet
Nov 18 '05 #1
1 1063
got it working. TY... I had code in session_start that was messing things
up.
I wish i could do a redirect in session_end, when the session ends, instead
of session_start....
Nov 18 '05 #2

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

Similar topics

3
by: Arpan | last post by:
A link has the following URL: <a href="Page1.asp?cname=<%= Request.QueryString("cname") %>&cadd1=<%= Request.QueryString("cadd1") %>&cadd2=<%= Request.QueryString("cadd2") %>&cplace=<%=...
4
by: Max | last post by:
Hello. This is the first time I've posted to a newsgroup, and I do this because I'm in desperate need of help. I'm working a user management system, and when I activate a user that has registered...
9
by: Fawke101 | last post by:
Hi there, I have a ASP/SQL 7 application that displays data from various SQL7 Views onto a ASP page. A column of this data is displayed in ASP as hyperlinks and the relevent data is put into...
0
by: Matt Howeson | last post by:
Some time ago I posted a request for help with a problem I was having sometime ago whereby a 404 error would result if any access to the Querystring had been made before the Context.Rewritepath is...
4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
0
by: Jason Shohet | last post by:
I have this url that I put into IE: http://mysite/default.aspx?machinename=%COMPUTERNAME% Computername is an app variable, and returns me the computer the browser is sitting on. But thats not...
6
by: Keith Patrick | last post by:
I have to do some programmatic redirects (in several pages) based on URLs I am given from an external source. The URLs have querystrings at the end, but one in particular is about 240 chars long,...
7
by: PJ6 | last post by:
I thought this was going to be simple. I want to take an HttpRequest and add an item to the QueryString. First I tried to add it directly, but I got a "Collection is read-only." error. So I...
9
by: VancouverMike | last post by:
Hi there, I run into a very strange problem. I got the following url and am passing information via query string. The problem when the "sin" key in query string is blank, shown as in the...
5
by: rn5a | last post by:
A MS-Access database table has 2 columns - UserID (unique) of number data type & UserName (text) along with some other columns. When users come to a particular page, say, AllUsers.asp, all the...
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
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
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
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...

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.