gridview传值问题
<asp:HyperLink ID="HyperLink1" runat="server"
NavigateUrl='juBaoXin.aspx?prosecutoredName=<%#Server.UrlEncode(Eval("prosecutoredName").ToString())%> & prosecutoredUnit=<%#Server.UrlEncode(Eval("prosecutoredUnit").ToString())%> &
prosecutoredPosition=<%#Server.UrlEncode(Eval("prosecutoredPosition").ToString())%> &
prosecutoredZhiJi=<%#Server.UrlEncode(Eval("prosecutoredZhiJi").ToString())%>'>查看</asp:HyperLink>
web里面我是这样子传值的 gridview里面,但是我判断数据是否为空的时候发现数据没有传过去,不知道怎么改了,肯定各位高手指定一下。先谢谢了
------解决方案--------------------你打开的连接看下juBaoXin.aspx?
看下 prosecutoredName 等参数是否有值
------解决方案--------------------<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#"juBaoXin.aspx?prosecutoredName="+Server.UrlEncode(Eval("prosecutoredName").ToString())+"& prosecutoredUnit="+Server.UrlEncode(Eval("prosecutoredUnit").ToString())+"&prosecutoredPosition="+Server.UrlEncode(Eval("prosecutoredPosition").ToString())+"&prosecutoredZhiJi="+Server.UrlEncode(Eval("prosecutoredZhiJi").ToString())%>'>查看</asp:HyperLink>
------解决方案--------------------