日期:2014-05-18  浏览次数:20529 次

无法传递参数
<asp:HyperLink   Text= "小类管理 "   NavigateUrl= 'S_SClass.aspx?BClassid= "   +   HttpUtility.UrlEncode( <%#   DataBinder.Eval(Container.DataItem, "ID ").ToString()%> )&BigId= "   +   HttpUtility.UrlEncode( <%#   DataBinder.Eval(Container.DataItem, "BigId ").ToString()%> ) '   runat= "server "   ID= "Hyperlink1 "/> </asp:HyperLink>

------解决方案--------------------
<asp:HyperLink Text= "小类管理 " NavigateUrl= 'S_SClass.aspx?BClassid= " + HttpUtility.UrlEncode( <%# DataBinder.Eval(Container.DataItem, "ID ").ToString()%> )+ "&BigId= " + HttpUtility.UrlEncode( <%# DataBinder.Eval(Container.DataItem, "BigId ").ToString()%> ) ' runat= "server " ID= "Hyperlink1 "/> </asp:HyperLink>

------解决方案--------------------
》》》》

<asp:HyperLink Text= "小类管理 " NavigateUrl= <%# "S_SClass.aspx?BClassid= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "ID ").ToString() + "BigId= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "BigId ").ToString()) %> ' runat= "server " ID= "Hyperlink1 "/> </asp:HyperLink>
------解决方案--------------------
sorry, 漏斗一个单引号

<asp:HyperLink Text= "小类管理 " NavigateUrl= ' <%# "S_SClass.aspx?BClassid= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "ID ").ToString() + "BigId= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "BigId ").ToString()) %> ' runat= "server " ID= "Hyperlink1 "/> </asp:HyperLink>
------解决方案--------------------
<asp:HyperLink Text= "小类管理 " NavigateUrl= ' <%# "S_SClass.aspx?BClassid= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "ID ").ToString()) + "BigId= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "BigId ").ToString()) %> ' runat= "server " ID= "Hyperlink1 "/> </asp:HyperLink>

------解决方案--------------------
<asp:HyperLink Text= "小类管理 " NavigateUrl= ' <%# "S_SClass.aspx?BClassid= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "ID ").ToString()) + "BigId= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "BigId ").ToString()) #%> ' runat= "server " ID= "Hyperlink1 "/> </asp:HyperLink>

------解决方案--------------------
<asp:HyperLink Text= "小类管理 " NavigateUrl= ' <%# "S_SClass.aspx?BClassid= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "ID ").ToString()) + "&BigId= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "BigId ").ToString()) %> ' runat= "server " ID= "Hyperlink1 "/> </asp:HyperLink>

------解决方案--------------------
<asp:HyperLink Text= "小类管理 " NavigateUrl= ' <%# "S_SClass.aspx?BClassid= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "ID ").ToString()) + "BigId= " + HttpUtility.UrlEncode(DataBinder.Eval(Container.DataItem, "BigId ").ToString()) %> ' runat= "server " ID= "Hyperlink1 "/> </asp:HyperLink>