c# - Accessing variables within a URL -


i have created website settings can changed language , country in turn change url i.e. /en/ becomes /fr/ french language.

i have working except when url has variables attached. using uri

uri requesturl string queryvalue = requesturl.query; 

this passed amethod combines need return requested url.

string actualurl = getactualurl(geturltorewrite(requesturl), queryvalue); 

however using queryvalue string gets populated first variable example if url begin

sitepage.aspx?variable1=a&variable2=b 

the string variable populated

?variable1=a 

when need

?variable1=a&variable2=b 

how go filling 1 string declaration both variables or 2 declarations variable each...i don't mind either way???????

i ammended question through quesry string having "&" system thought end of querystring. chnged encoding , decoding urls urlencode , urldecode


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -