admin/news/Add.aspx
(完整代码) 2KB<%@ Page Title="" Language="C#" MasterPageFile="~/admin/MasterPage.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="Add.aspx.cs" Inherits="news_Add" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script src="../../js/jquery.js" type="text/javascript"></script>
<script src="../../js/formValidator.js" type="text/javascript"></script>
<script src="../../js/formValidatorRegex.js" type="text/javascript"></script>
<link href="../../css/validator.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="cTable_2 table">
<tr class="cTitle toolbarBg">
<td width="25%"><div>添加新闻</div></td>
<td colspan="2"></td>
</tr>
<tr >
<td class="tRight" colspan="2">
<table style="width:100%">
<tr>
<td>
<tr>
<td style=" text-align:right; width:20%;">新闻标题:</td>
<td class="tbright"><div style="display:inline;float:left;">
<asp:TextBox ID="txt_title" runat="server" width="200"></asp:TextBox></div><div id="ctl00_ContentPlaceHolder1_txt_titleTip" style="width:250px;display:inline;float:left;text-align:left;"></div>
</td></tr>
<tr>
<td style=" text-align:right; width:20%;">新闻内容:</td>
<td class="tbright"><div style="display:inline;float:left;">
<textarea id="Textarea1" runat="server" cols="100" rows="8" style="width:700px;height:300px;"></textarea></div>
</td></tr>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div id="cEndToolbar" class="toolbarBg">
<div class="caButCase">
<asp:Button ID="Button1" runat="server" OnClick="btnSave_Click" CssClass="button" Text="确认操作" OnClientClick="return jQuery.formValidator.PageIsValid('1');" />
<asp:Button ID="Button2" runat="server" Text="返回列表" CssClass="button" OnClientClick="document.location='List.aspx';return false;" CausesValidation="false" />
</div>
</div>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({ onError: function(msg) { alert(msg) } });
$("#ctl00_ContentPlaceHolder1_txt_title").formValidator({ onshow: "请输入新闻标题", onfocus: "新闻标题不能为空", oncorrect: "合法" }).InputValidator({ min: 1, onerror: "新闻标题不能为空,请确认" });
});
</script>
</asp:Content>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。