提起我打電話的方法校驗值如何發送參數from.aspx頁to.cs文件[在GridView控件#eval方法]在我的GridView項模板
<asp:Label ID="Label1" runat="server" Text='<%# CheckValue(Eval("Imagespath")+","+Eval("Imagesname")%>'>
</asp:Label>
protected string CheckValue(string strValue1,string strValue2)
{
if (strValue1=="1")
{
return "No Record Found";
}
else
{
return "No Record Found";
}
}
當我運行我的我頁得到errorin我的.aspx頁面中
文本= '<%#校驗值(EVAL( 「Imagespath」)+ 「 」+的eval(「 Imagesname」)%>'>
有什麼辦法可以發送我的價值校驗值方法,ISA .cs文件如何發送2 paremeter from.aspx頁面 可以阿努一個告訴我的語法,它
謝謝
你有沒有試過在Eval上綁定instad。閱讀http://msdn.microsoft.com/en-us/library/ms178366.aspx – anishMarokey 2010-01-06 18:36:40