473,385 Members | 1,317 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.

adding query string to request

Is it possible to add query string on requested page
e.a.
i have request for index.aspx, but i need index.aspx?language=en
is this possible

tomislaw
Nov 19 '05 #1
3 1344
The scenario is not clear. Please elaborate a bit.

Eliyahu

"TomislaW" <to*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Is it possible to add query string on requested page
e.a.
i have request for index.aspx, but i need index.aspx?language=en
is this possible

tomislaw

Nov 19 '05 #2
i have user controls that using outputcache varybyparam="language", but when
someone that comming to our page, come with www.mydomain.com -> redirected
to www.mydomain.com/index.aspx but i need
www.mydomain.com/index.aspx?language=de ...

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:ew**************@TK2MSFTNGP10.phx.gbl...
The scenario is not clear. Please elaborate a bit.

Eliyahu

"TomislaW" <to*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Is it possible to add query string on requested page
e.a.
i have request for index.aspx, but i need index.aspx?language=en
is this possible

tomislaw


Nov 19 '05 #3
Yes, you can use

Response.Redirect("index.aspx?language=en")

But instead of adding query string, you might think following logic:

string strLanguage;
If (Request.QueryString.Get("language") == null)
{
strLanguage = "en";
}
else
{
strLanguage = Request.QueryString.Get("language");
}
HTH

Elton Wang
el********@hotmail.com

"TomislaW" wrote:
Is it possible to add query string on requested page
e.a.
i have request for index.aspx, but i need index.aspx?language=en
is this possible

tomislaw

Nov 19 '05 #4

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

Similar topics

4
by: George | last post by:
I am trying to check whether a query string is being passed to my .aspx page, like so: If Not Request.QueryString Is Nothing Then If CInt(Request.QueryString.GetValues("values")(0)) <> 1 Then...
9
by: Mark | last post by:
I've run a few simple tests looking at how query string encoding/decoding gets handled in asp.net, and it seems like the situation is even messier than it was in asp... Can't say I think much of the...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
5
by: Neo Geshel | last post by:
Greetings. I am in a very big pickle. I am trying to add page content - as well as a submit button - programatically to a web form that is supposed to submit to DB and then refresh. That...
9
by: Neo Geshel | last post by:
I have strip-mined, strip-searched, and completely exhausted the Internet (up to the 30th page on Google, with 100 results per page!!), all without finding an answer to my question AS TO WHY IT...
1
by: TF | last post by:
This group came through for me last time so here we go again. My page shows paint colors, brand name, product code, etc in a gridview with the background matching the paint color. Several links on...
17
by: NeoAlchemy | last post by:
I am starting to find more web pages that are using a query parameters after the JavaScript file. Example can be found at www.opensourcefood.com. Within the source you'll see: <script...
3
by: pbd22 | last post by:
Hi. I need some help with structuring my query strings. I have a form with a search bar and some links. Each link is a search type (such as "community"). The HREF for the link's anchor looks...
24
by: MU | last post by:
Hello I have some code that sets a dropdownlist control with a parameter from the querystring. However, when the querystring is empty, I get an error. Here is my code: Protected Sub...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.