日期:2014-05-17  浏览次数:20568 次

如何通过单击黄色的linkbutton 将红色的linkbutton的enable属性改为false
table>
  <tr>
  <td>
  <asp:Label ID="xianshiLabel" runat="server"></asp:Label>
  </td>
  </tr>
  <tr>
  <td>
  <asp:LinkButton ID="UntreatLinkButton" runat="server" Text="未处理的报修单" 
  onclick="UntreatLinkButton_Click"></asp:LinkButton>
  &nbsp;&nbsp;
  <asp:LinkButton ID="DoingLinkButton" runat="server" Text="处理中的报修单"
onclick="DoingLinkButton_Click"></asp:LinkButton> &nbsp;&nbsp;
  <asp:LinkButton ID="DoLinkButton2" runat="server" Text="已处理的报修单"></asp:LinkButton>
  </td>
  </tr>
  <tr>
  <td>
  <table>
  <tr>
  <td>
  <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
  <Columns>
  <asp:TemplateField HeaderText="报修单号">
  <ItemTemplate>
  <asp:Label runat="server" ID="bxidLabel" Text='<%# Eval("BxId") %>'></asp:Label>
  <asp:HiddenField ID="hidd_bxid" runat="server" Value='<%# Eval("BxId") %>' />
  </ItemTemplate>
  </asp:TemplateField>
  <asp:BoundField HeaderText="报修主题" DataField="Title" />
  <asp:BoundField HeaderText="报修故障" DataField="Bug" />
  <asp:BoundField HeaderText="报修人编号" DataField="Eid" />
  <asp:BoundField HeaderText="预约报修时间" DataField="YyDate" />
  <asp:BoundField HeaderText="报修紧急程度" DataField="BxJjcd" />
  <asp:BoundField HeaderText="工种编号" DataField="Vid" />
  <asp:BoundField HeaderText="处理状态" DataField="DealState" />
  <asp:BoundField HeaderText="处理结果" DataField="DealResult" />
  <asp:TemplateField HeaderText="查看详情">
  <ItemTemplate>
  <asp:LinkButton runat="server" ID="SelectLinkButton" Text="详细" OnClick="SelectLinkButton_Click"></asp:LinkButton>
  </ItemTemplate>
  </asp:TemplateField>