This is a migrated thread and some comments may be shown as answers.

[Solved] Paging and special characters on URL.

1 Answer 150 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Fernandes
Top achievements
Rank 1
Fernandes asked on 18 Mar 2008, 12:17 PM
Hi everyone!

In my site, you can make some queries against a database. After the search you're redirected to a searchResults.aspx and a querystring parameter is passed along with the search criteria.

I really need to have the "special" caracters not encoded, and it's working great.

The problem is that if I'm redirected to a result page with the following querystring param...

http://localhost:1504/wwwroot/searchResults.aspx?q=OiqfgWbKF+Cj00+gMYgbZ89dQs8C3h2FAKVvKAvzbNQmzlu5Oikn/19VPTUpq8MFl0okjNo1pKOPsM4ynr/DQg==


... the paging on the results Grid doesn't work anymore because it changes the special characters (for example: the equal sign "=" is encoded to "%3d")
to:

http://localhost:1504/wwwroot/searchResults.aspx?q=OiqfgWbKF+Cj00+gMYgbZ89dQs8C3h2FAKVvKAvzbNQmzlu5Oikn%2f19VPTUpq8MFl0okjNo1pKOPsM4ynr%2fDQg%3d%3d

Does anyone know how can I avoid this behaviour? I mean, can the paging mechanism keep my original URL without encoding it?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 21 Mar 2008, 11:59 AM
Hello Fernandes,

Did you try using Server.UrlDecode method to decode the querystring params?

Greetings,
Rosen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Fernandes
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or