服务器端变量用在客户端的问题?
我在服务器端定义一变量
public string type="fee"
并在DataGrid控件中的付值如下:Type='<%=type%>',结果在目的页中Type的值为'<%=type%>'而不是fee,错在何处?在线等。谢谢!!
<asp:HyperLinkColumn Text="详情 " Target="_blank" DataNavigateUrlField="Id" DataNavigateUrlFormatString="VehliExpenInsert.aspx?Type='<%=type%>'&Action=Query&Id={0}"
问题点数:20、回复次数:2Top
1 楼luck0235(风平浪静时人人都能掌舵)回复于 2006-03-16 08:09:11 得分 20
Try:
DataNavigateUrlFormatString="VehliExpenInsert.aspx?Type=<%=type%>&Action=Query&Id={0}"
Top
2 楼slow1962(古董)回复于 2006-03-16 08:11:58 得分 0
to luck0235(吴剑):
试过:Type=<%=type%>与Type=‘<%=type%>’结果是一样的。Top




