62,269
社区成员
发帖
与我相关
我的任务
分享 <asp:FormView ID="FormView1" runat="server" DefaultMode="Edit" Width="792px">
<EditItemTemplate>
<table bgcolor="#eeeeee" cellpadding="0" cellspacing="1" width="100%">
<tr>
<td align="right" bgcolor="#ffffff" style="width: 126px; height: 24px">
Name:
</td>
<td bgcolor="#ffffff" colspan="2" style="height: 24px">
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("name") %>'></asp:TextBox>
</td>
</tr>
<tr style="color: #000000">
<td align="right" bgcolor="#ffffff" style="width: 126px">
Sector:
</td>
<td bgcolor="#ffffff" colspan="2">
<asp:DropDownList ID="DropDownList1" runat="server" DataMember="DefaultView" DataSourceID="SqlDataSource1" DataTextField="title" DataValueField="title" SelectedValue='<%# Eval("dept") %>' >
</asp:DropDownList></td>
</tr>
<tr>
<td align="right" bgcolor="#ffffff" style="width: 126px; height: 24px">
Content:
</td>
<td bgcolor="#ffffff" colspan="2" style="height: 24px">
<asp:TextBox ID="TextBox3" runat="server" Height="100px" TextMode="MultiLine" Width="500px" Text='<%# Eval("list_text") %>'></asp:TextBox></td>
</tr>
<tr>
<td align="right" bgcolor="#ffffff" style="width: 126px">
Photo:
</td>
<td bgcolor="#ffffff" colspan="2">
<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Label ID="Label1" runat="server" ForeColor="Red" Text=" "></asp:Label></td>
</tr>
<tr>
<td align="right" bgcolor="#ffffff" style="width: 126px; height: 24px">
</td>
<td bgcolor="#ffffff" colspan="2" style="height: 24px">
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="Submit" /> </td>
</tr>
</table>
<table style="width: 100%" >
<tr>
<td style="width: 100%">
<asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="Red" Text=" Added Failure!!"
Visible="False"></asp:Label>
<asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="Green" Text="Added Success!!"
Visible="False"></asp:Label>
</td>
</tr>
</table>
</EditItemTemplate>
</asp:FormView>