V
vtreddy
Hi All:
In my application I am sending the input values through query string from a datagrid template column,I used URLEncode to encode the URL String,
please find the input below, I am facing a problem when the input string contains ® character ,
Here from ASP.NET I am redirecting to the ASP based system,when I give same input from ASP based system, it is showing Microsoft%AE%20Access%20 ,with this I am getting the correct results, where as when I send it from the ASP.NET with URL Encode it is showing Microsoft%c2%ae+Access, this is not giving any results. Can any one please help me out what to do to get the URL string simillar to I got it in ASP. Is there any different way to handle the encoding when ® character present in the string.
Input:
Microsoft® Access
My Code:
<asp:TemplateColumn HeaderText="Sample Column">
<ItemTemplate>
<asp:Hyperlink runat="server" Text='<%#(string)DataBinder.Eval(Container.DataItem,"ProductName")%>' NavigateUrl='<%# "http://trwork/SMSReporting_TRS/Report.asp?ReportID=67&variable="+Server.UrlEncode((string)DataBinder.Eval(Container.DataItem,"ProductName"))%>' ID="Hyperlink1"/>
</ItemTemplate>
</asp:TemplateColumn>
From ASP URL String :
http://trwork/SMSReporting_TRS/Report.asp?ReportID=67&variable=Microsoft%AE%20Access%20
From ASP.NET URL String:
http://trwork/SMSReporting_TRS/Report.asp?ReportID=67&variable=Microsoft®+Access
Thanks in Advance
In my application I am sending the input values through query string from a datagrid template column,I used URLEncode to encode the URL String,
please find the input below, I am facing a problem when the input string contains ® character ,
Here from ASP.NET I am redirecting to the ASP based system,when I give same input from ASP based system, it is showing Microsoft%AE%20Access%20 ,with this I am getting the correct results, where as when I send it from the ASP.NET with URL Encode it is showing Microsoft%c2%ae+Access, this is not giving any results. Can any one please help me out what to do to get the URL string simillar to I got it in ASP. Is there any different way to handle the encoding when ® character present in the string.
Input:
Microsoft® Access
My Code:
<asp:TemplateColumn HeaderText="Sample Column">
<ItemTemplate>
<asp:Hyperlink runat="server" Text='<%#(string)DataBinder.Eval(Container.DataItem,"ProductName")%>' NavigateUrl='<%# "http://trwork/SMSReporting_TRS/Report.asp?ReportID=67&variable="+Server.UrlEncode((string)DataBinder.Eval(Container.DataItem,"ProductName"))%>' ID="Hyperlink1"/>
</ItemTemplate>
</asp:TemplateColumn>
From ASP URL String :
http://trwork/SMSReporting_TRS/Report.asp?ReportID=67&variable=Microsoft%AE%20Access%20
From ASP.NET URL String:
http://trwork/SMSReporting_TRS/Report.asp?ReportID=67&variable=Microsoft®+Access
Thanks in Advance