showcontrol()的代码块帖出来看看.

解决方案 »

  1.   

      Private Sub showcontrol()
            Me.Table4.Visible = True
            Me.TextBox1.Visible = True
            Me.Button1.Visible = True
        End Sub<asp:datalist id="DataList1" runat="server" Width="520px" BorderColor="#336666" CellPadding="1"
    RepeatColumns="1" BorderStyle="Double" BackColor="WhiteSmoke" GridLines="Horizontal" BorderWidth="0px">
    <SelectedItemStyle Font-Size="X-Small" Font-Bold="True" Wrap="False" ForeColor="White" BackColor="Gainsboro"></SelectedItemStyle>
    <HeaderTemplate>
    </HeaderTemplate>
    <SelectedItemTemplate>
    </SelectedItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
    <ItemStyle ForeColor="#333333" BackColor="White"></ItemStyle>
    <ItemTemplate>
    <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td colspan="2" align="left" style="FONT-WEIGHT: normal; FONT-SIZE: 12pt; COLOR: #cc0000; FONT-FAMILY: 宋体; TEXT-DECORATION: underline"
    height="50px">
    <%# DataBinder.Eval(Container.DataItem, "name") %>
    <%# DataBinder.Eval(Container.DataItem, "zw") %>
    </td>
    </tr>
    <tr>
    <td align="left" style="FONT-SIZE: 10pt" colspan="2"><%# DataBinder.Eval(Container.DataItem, "sheng") %>
    <%# DataBinder.Eval(Container.DataItem, "shi") %>
    &nbsp;&nbsp;&nbsp;&nbsp;类别:
    <%# DataBinder.Eval(Container.DataItem, "hyfrist") %>
    </td>
    </tr>
    <tr>
    <td width="15%" align="center" style="FONT-WEIGHT: bold;FONT-SIZE: 10pt" valign="middle">业务</td>
    <td align="left" width="85%" style="FONT-SIZE: 10pt"><%# DataBinder.Eval(Container.DataItem, "bz") %></td>
    </tr>
    <tr>
    <td align="right" style="FONT-SIZE: 10pt" colspan="2">
    <table width="100%" height="100%">
    <tr>
    <td width="40%" align="left" style="FONT-SIZE: 8pt; COLOR: #339933; FONT-FAMILY: 新宋体"
    valign="bottom"><%# DataBinder.Eval(Container.DataItem, "depname") %></td>
    <td align="center" style="FONT-SIZE: 8pt; COLOR: #339933; FONT-FAMILY: 新宋体" valign="bottom">名片ID:<%# DataBinder.Eval(Container.DataItem, "netcardsid") %></td>
    <td align="right">
    <asp:LinkButton ID="seethecard" runat="server" style="FONT-SIZE: 8pt; COLOR: #339933; FONT-FAMILY: 新宋体" Font-Underline="True" Font-Bold="true" CommandName="select" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "netcardsid") %>' EnableViewState="true">详情</asp:LinkButton>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td width="15%" colspan="2" style="FONT-SIZE: 10pt" align="center" valign="middle" height="20px"></td>
    </tr>
    </table>
    </ItemTemplate>
    <FooterStyle ForeColor="#333333" BackColor="White"></FooterStyle>
    <HeaderStyle Font-Bold="True" ForeColor="White" BackColor="#336666"></HeaderStyle>
    </asp:datalist>
    谢谢大哥
      

  2.   

    需求就是我选择其中一项时,获取其在数据源datatable中对应的datarow,然后对datarow进行操作。