Click here to Skip to main content
15,914,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a gridview.And when i pass data from query string in hyperlink navigate url..I want to hide or disable Url for security purpose.


<asp:TemplateField HeaderText="Title">
                                <ItemTemplate>
                             <asp:HyperLink ID="hypTitle" runat="server" Text='<%# Bind("MENU_NAME") %>' NavigateUrl='<%# string.Format("./frmMenuMapping.aspx?MenuId={0}&ContentId={1}", 
                                HttpUtility.UrlEncode(Eval("MENU_ID").ToString()), HttpUtility.UrlEncode(Eval("cmsContentManager.CONTENT_ID").ToString())) %>'></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
Posted
Comments
Kornfeld Eliyahu Peter 26-Mar-14 6:49am    
It's not yours to decide...That's not your browser. Do not use query string to pass sensitive data!!!
nandakishoreroyal 26-Mar-14 7:03am    
use routing concept and load your page in iframe...

1 solution

 
Share this answer
 
v2
Comments
Member 10435696 26-Mar-14 8:50am    
but all these ways are using server side code but i want it in client side..As i am using Gridview..Plz help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900