问个ASP网页问题(VB.NET版)
前端HTML:<asp:ListView ID="ListView1" runat="server">
...
<td><asp:Button ID="btnMod" runat="server" Text="更新" CommandArgument='<%# Eval("ProjectNo") %>' Font-Size="12px" /></td>
...
</asp:ListView>
後端:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Using mySqlDS As SqlDataSource = New SqlDataSource
...
Dim my_args As New DataSourceSelectArguments
Dim my_DV As Data.DataView = mySqlDS.Select(my_args)
ListView1.DataSource = my_DV
ListView1.DataBind()
End Using
End Sub
怎么让btnMod在数据库反馈给ListView1一行一行资料时,每一行的btnMod能够依照登入者权限决定是否要变Disable?