Admin/NewsEdit.aspx

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeFile="NewsEdit.aspx.cs" Inherits="Admin_NewsEdit" %>

<!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>
    <link rel="stylesheet" type="text/css" href="../css/Admin_STYLE.CSS">
	<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
    <script type="text/javascript">
        var oFCKeditor = new FCKeditor('FormView1$newscon') ;
        function initEditor()
        {
	        var sBasePath = "fckeditor/"
	        oFCKeditor.BasePath	= sBasePath ;
	        oFCKeditor.Height	= 300;
	        oFCKeditor.ToolbarSet = 'ForNews';
	        oFCKeditor.ReplaceTextarea();
        }
        window.onload=initEditor;
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT * FROM [tNewsClass]"></asp:SqlDataSource>
        <asp:FormView ID="FormView1" runat="server" DataKeyNames="id" DataSourceID="SqlDataSource2">
            <EditItemTemplate>
        <table border="0" cellpadding="0" width="700">
            <tr>
                <td style="width: 65px"><asp:Label ID="Label2" runat="server" Text="新闻标题"></asp:Label></td>
                <td>
                    <asp:TextBox ID="newstitle" runat="server" Width="428px" Text='<%# Bind("newstitle") %>'></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 65px">
                    <asp:Label ID="Label1" runat="server" Text="新闻分类"></asp:Label></td>
                <td>
                    <asp:DropDownList ID="tNewsClass" runat="server" DataSourceID="SqlDataSource1" DataTextField="classname" DataValueField="classname" SelectedValue='<%# Bind("tNewsClass") %>'>
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td valign="top" style="width: 65px">
                    <asp:Label ID="Label3" runat="server" Text="新闻正文"></asp:Label></td>
                <td valign="top">
                    <asp:TextBox ID="newscon" runat="server" Height="160px" TextMode="MultiLine" Width="428px" Text='<%# Bind("newscontent") %>'></asp:TextBox></td>
            </tr>
            <tr>
                <td align="center" style="width: 65px">
                </td>
                <td align="center">
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                    Text="更新">
                </asp:LinkButton>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/NewsManage.aspx">取消</asp:HyperLink></td>
            </tr>
        </table>
                    <br />
                &nbsp;
            </EditItemTemplate>
后面还有 52 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。