当前位置: 代码迷 >> ASP.NET >> 无法传递参数解决方法
  详细解决方案

无法传递参数解决方法

热度:5867   发布时间:2013-02-25 00:00:00.0
无法传递参数
<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>
  相关解决方案