I kind'a run into the same problem. I am so newby to any web codes, but giving it a good try. I see you solved the problem. how exactly would you type the URL including the string?
I'm so tired of going into the page and typing something already typed. my specific case: finding zip codes in Mexico. The page is: http://www.sepomex.gob.mx/ServiciosLinea/Paginas/ccpostales.aspx
And there's the field for the "Código Postal" as usual, five numbers. you just place it and it posts back all the city areas that that post code covers. So, I want to fill that number automatically from the URL.
Does your solution appliy to this case? how would you type the URL, trying to find, e.g. zip code "32000"?
gonzin
Member
2 Points
1 Post
Appending QueryString on Postback?
Apr 11, 2012 02:35 AM|LINK
Split off from http://forums.asp.net/t/1291000.aspx/4/10?Appending+QueryString+on+Postback+
Hi, wASP,
I kind'a run into the same problem. I am so newby to any web codes, but giving it a good try. I see you solved the problem. how exactly would you type the URL including the string?
I'm so tired of going into the page and typing something already typed. my specific case: finding zip codes in Mexico. The page is: http://www.sepomex.gob.mx/ServiciosLinea/Paginas/ccpostales.aspx
And there's the field for the "Código Postal" as usual, five numbers. you just place it and it posts back all the city areas that that post code covers. So, I want to fill that number automatically from the URL.
Does your solution appliy to this case? how would you type the URL, trying to find, e.g. zip code "32000"?
Thanks in advance.
Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: Appending QueryString on Postback?
Apr 13, 2012 10:58 AM|LINK
Hi,
wASP's thread is too old(07-16-2008 06:20 PM). Perhaps wASP could not see your post!
If you want to hide the query string, e.g. zip code "32000". I think you can consider using ASP.NET routing or URL rewriting.
If I have misunderstood your concerns, don't hesitate to let me know.
Thanks,
Feedback to us
Develop and promote your apps in Windows Store
vijayst
All-Star
16558 Points
3216 Posts
Microsoft
Re: Appending QueryString on Postback?
Apr 13, 2012 11:05 AM|LINK
The following code will get the zipcode from the querystring: http://www.sepomex.gob.mx/ServiciosLinea/Paginas/ccpostales.aspx?zip=32000
http://liteblog.codeplex.com