0
我想調用一個JavaScript函數的單個參數從GridView控件內部的鏈接單擊我需要提供的參數值<%Eval("myfield")%>
我該怎麼做?從GridView以<% Eval("")%>作爲函數參數調用java腳本函數?
<ItemTemplate>
<a href="#" onclick='"javascript:return changeview(<%Eval("Id")%>)"'>
<asp:Label style="color:white;" ID="Label1" BackColor='<%# System.Drawing.Color.FromName(Eval("color").ToString())%>' runat="server" Text='<% #Bind("doctorname") %>'>
</asp:Label>
</a>
</ItemTemplate>
i've嘗試過,但該功能不會甚至稱... –