Martinezz
May 21st, 2007, 09:49 AM
Hi,
I try to dynamically build URL to navigate:
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# BuildURLAdding() %>' >Add new </asp:HyperLink>
which uses function in my codebehind file:
protected string BuildURLAdding()
{
return @"~/PROTECTED/Annotations/AnnotationsList.aspx?ClientID=" + Request.Params["IDClient"];
}
But this is invalid (the link is un-clickable, which means that the 'NavigateUrl' was wrongly specified). Where could be a mistake?
I checked the page directive and there is everything ok:
<%@ Page Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true"
Codebehind="AnnotationsList.aspx.cs" Inherits="Mercedes.PROTECTED.Annotations.AnnotationsList"
Title="Untitled Page" %>
Thank you very much in advance
I try to dynamically build URL to navigate:
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# BuildURLAdding() %>' >Add new </asp:HyperLink>
which uses function in my codebehind file:
protected string BuildURLAdding()
{
return @"~/PROTECTED/Annotations/AnnotationsList.aspx?ClientID=" + Request.Params["IDClient"];
}
But this is invalid (the link is un-clickable, which means that the 'NavigateUrl' was wrongly specified). Where could be a mistake?
I checked the page directive and there is everything ok:
<%@ Page Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true"
Codebehind="AnnotationsList.aspx.cs" Inherits="Mercedes.PROTECTED.Annotations.AnnotationsList"
Title="Untitled Page" %>
Thank you very much in advance