<%@ Page Language="C#" AutoEventWireup="true" CodeFile="newsadd.aspx.cs" Inherits="manage_newsadd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        新闻标题：<asp:TextBox ID="txt1" runat="server" Width="450px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rqtvtxt1" runat="server" 
            ControlToValidate="txt1" ErrorMessage="新闻必须填写标题">*</asp:RequiredFieldValidator>
        <br />
        新闻内容：<asp:TextBox ID="txt2" runat="server" Height="370px" Width="453px" 
            TextMode="MultiLine"></asp:TextBox>
        <asp:RequiredFieldValidator ID="rqtvtxt2" runat="server" 
            ControlToValidate="txt2" ErrorMessage="新闻内容必须填写">*</asp:RequiredFieldValidator>
        <br />
        新闻图片：<asp:FileUpload ID="FileUpload1" runat="server" Width="191px" />
        <br />
        <asp:Button ID="btnok" runat="server" Text="添加新闻" onclick="btnok_Click" />
    
    </div>
    </form>
</body>
</html>
