算法分析与设计程序
算法分析与设计中相关算法的C与C++代码,所有算法代码均在VC6.0上调试通过,且有详细的注释说明。
Ajax 日期控件在asp.net 中的实现
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace WebTest
{
/// <summary>
/// WebForm1 的摘要说明。
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected HFSoft.Web.DatePicker DatePicker2;
protected HFSoft.Web.DatePicker DatePicker3;
protected HFSoft.Web.Calendar Calendar1;
protected HFSoft.Web.DatePicker DatePicker1;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
}
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.DatePicker1.Change += new HFSoft.Web.EventDayChange(this.DatePicker1_Change);
this.DatePicker1.DayItemCreating += new HFSoft.Web.EventDayItemCreating(this.Calendar2_DayItemCreating);
this.Calendar1.DayItemCreating += new HFSoft.Web.EventDayItemCreating(this.Calendar1_DayItemCreating);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void Calendar2_Change(object source, HFSoft.Web.EventDayChangeArgs e)
{
Response.Write(e.Date.ToShortDateString());
}
private void Calendar2_DayItemCreating(object source, HFSoft.Web.EventDayItemArgs e)
{
if(e.Item.Date.Month ==7 && e.Item.Date.Day ==6)
{
e.Item.Text +="<br>生日";
e.Item.Attributes.Add("bgColor","#ff9966");
}
}
private void DatePicker1_Change(object source, HFSoft.Web.EventDayChangeArgs e)
{
}
private void Calendar1_DayItemCreating(object source, HFSoft.Web.EventDayItemArgs e)
{
if(e.Item.Date.Day==28)
{
e.Item.Text +="<br>交房租";
e.Item.Attributes.Add("bgColor","#ff9966");
}
}
}
}
fckeditor配置
<%@ Page language="c#" Trace="false" Inherits="FredCK.FCKeditorV2.Uploader" AutoEventWireup="false" %>
<%--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the Uploader for ASP.NET.
*
* The code of this page if included in the FCKeditor.Net package,
* in the FredCK.FCKeditorV2.dll assemblyfile. So to use it you must
* include that DLL in your "bin" directory.
*
* To download the FCKeditor.Net package, go to our official web site: