当前位置: 首页 > news >正文

网站的信息架构seo关键词优化案例

网站的信息架构,seo关键词优化案例,企业网站的综合要求是什么,上海网站建设怎么赚钱一般用到富文本编辑器的地方:留言板,论坛的发帖页以及回复页等。 所用软件VS2012旗舰版 KindEditor下载地址(本文实例中所用版本4.1.10): http://download.csdn.net/detail/donggege214/8454299 官网(版本…


一般用到富文本编辑器的地方:留言板,论坛的发帖页以及回复页等。


所用软件VS2012旗舰版


KindEditor下载地址(本文实例中所用版本4.1.10):

http://download.csdn.net/detail/donggege214/8454299


官网(版本可能会更新):

http://kindeditor.net/


实现后效果:



下面介绍如何具体实现。

一、目录结构图:

二、详细步骤:

1、将下载好的KindEditor解压到你的网站根目录(例子中的根目录是KindEditor),对着目录结构中那个“地球网KindEditor”,右键,添加引用->浏览->找到刚才解压文件夹里的asp.net目录下bin目录下的LitJSON.dll->确定。

2、添加web窗体->Default.aspx(网页名字随便,这里用的是默认的命名)->确定。

(1)前台代码

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


<!DOCTYPE html>


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" href="/kindeditor-4.1.10/themes/default/default.css" />
<link rel="stylesheet" href="
/kindeditor-4.1.10/plugins/code/prettify.css" />
<script charset="utf-8" src="/kindeditor-4.1.10/kindeditor.js"></script>
<script charset="utf-8" src="/kindeditor-4.1.10/lang/zh_CN.js"></script>
<script charset="utf-8" src="/kindeditor-4.1.10/plugins/code/prettify.js"></script>
<script>
   KindEditor.ready(function (K) {
       var editor1 = K.create('#content1', {
           cssPath: '/kindeditor-4.1.10/plugins/code/prettify.css',
           uploadJson: '/kindeditor-4.1.10/asp.net/upload_json.ashx',
           fileManagerJson: '/kindeditor-4.1.10/asp.net/file_manager_json.ashx',
           allowFileManager: true,
           afterCreate: function () {
               var self = this;
               K.ctrl(document, 13, function () {
                   self.sync();
                   K('form[name=example]')[0].submit();
               });
               K.ctrl(self.edit.doc, 13, function () {
                   self.sync();
                   K('form[name=example]')[0].submit();
               });
           }
       });
       prettyPrint();
   });
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        
    
        <table style="width:500px">
            <tr>
                <td>留言板</td>
            </tr>
            <tr>
                <td><textarea id="
content1" cols="100" rows="8" style="width:100%;height:200px;visibility:hidden;" runat="server"></textarea></td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="Button" />
                </td>
            </tr>
        </table>
    <asp:Label ID="Label1" runat="server"></asp:Label>

    </div>
    </form>
</body>
</html>

蓝色高亮显示部分是路径,如果路径设置不正确,那么调试时textarea是不会显示成富文本编辑框的。这里简单说一下,“/”代表站点的根目录,“../”代表上层目录。


(2)后台代码

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Label1.Text = Request.Form["content1"];
    }
}

(3)Web.config

<?xml version="1.0"?>
<!--
  有关如何配置 ASP.NET 应用程序的详细信息,请访问
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0"/>
    <pages validateRequest="false" />
    <httpRuntime requestValidationMode="2.0" />

  </system.web>
</configuration>

如果这里不配置Web.config,当文字有样式时,会提示有危险值...的报错。当然,这里将validateRequest设为false肯定会带来一些安全问题。目前不会更好的解决办法,如果谁有,欢迎分享~


好了,至此大功告成!

http://www.tj-hxxt.cn/news/112472.html

相关文章:

  • wordpress 最好主题优化标题关键词技巧
  • 赌网站怎么做技术培训班
  • seo关于网站搜索山西seo基础教程
  • wordpress个人中心插件上海seo
  • 上海企业建站北京广告公司
  • 如何建网站费用多少营销100个引流方案
  • 网站做的不好使微博推广方式
  • 集团网站建设管理制度泉州百度推广排名优化
  • 做兼职网站哪个靠谱18款免费软件app下载
  • mt4外汇网站建设windows优化大师怎么彻底删除
  • 做网站的需要什么资质证明网站运营管理
  • 武汉疫情最新消息网站seo快速
  • 怎么自己做网站框架百度营销app
  • 怎样在谷歌上建设网站新榜数据平台
  • 家政的网站怎么做企业宣传片
  • 网站导航栏高度百度app下载安装官方免费下载
  • 桂林建网站的公司河北网络科技有限公司
  • 开锁都在什么网站做产品营销策略
  • 计算机应用技术php网站开发网络营销师主要做什么
  • 用python做网站的多吗百度推广代理怎么加盟
  • 英文建站系统东莞seo排名公司
  • 网站建设制作公司哪家全国十大教育机构
  • 哪个公司做外贸网站好网站可以自己做吗
  • 公司网站百度搜索的描述怎么做东莞市网络营销公司
  • 包头网站建设平台广和武汉做网页推广公司
  • 哪家微网站建设青岛网站快速排名提升
  • 如何建免费的企业网站seo优化厂商
  • 焊枪公司网站怎么做24小时免费看的视频哔哩哔哩
  • 整站优化该怎么做包括哪些内容
  • 安陆市建设局网站合作seo公司