ASP.NETÊý¾Ý¿â·ÃÎÊÀà
±È½ÏºÃµÄÊý¾Ý¿â·ÃÎÊÀà
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data.OleDb;
using System.Data;
using System.Configuration;
namespace PublicClass
{
/// <summary> ///
/// Copyright(c) 2008~2011 KingBoy Software Co.,Ltd
/// FileName:Êý¾Ý¿â·ÃÎʳéÏóÀà
/// Author:KingBoy Version:1.0.0.0 Date:2008-10-05
/// Description:Ìṩ²»Í¬Êý¾Ý¿â²Ù×÷µÄ±ê×¼Àà¡£
/// </summary>
public abstract class DB
{
#region var
private string strService=""; // ¶¨Òå·þÎñÆ÷Ãû³Æ
private string strDataBase=""; //¶¨ÒåÊý¾Ý¿âÃû³Æ
private string strUser=""; //¶¨ÒåµÇ½Óû§Ãû
private string strPassword = ""; //¶¨ÒåµÇ½Óû§ÃÜÂë
private int intType = 0 ; //¶¨ÒåÁ¬½ÓÀàÐÍ
#endregion
#region property
/// <summary>
/// Á¬½Ó·þÎñÆ÷Ãû³Æ
/// </summary>
public string serviceName
{
get{return strService;}
set{strService =value;}
}
/// <summary>
&nb
Ïà¹ØÎĵµ£º
ºǫ́£º
string strDate = DateTime.Now.ToString("yyMMdd") + "\\" + DateTime.Now.ToString("yyyyMMddHHmmss");
string strFileName = strDate + ".html";
string strTitle = this.Txt_C_Name.Text.Trim();
string strContent = this.Content.Value.Trim();
string[] conten ......
ASP.NET Web ²¿¼þÊÇÒ»×鼯³É¿Ø¼þ£¬ÓÃÓÚ´´½¨ÍøÕ¾Ê¹×îÖÕÓû§¿ÉÒÔÖ±½Ó´Óä¯ÀÀÆ÷ÐÞ¸ÄÍøÒ³µÄÄÚÈÝ¡¢Íâ¹ÛºÍÐÐΪ¡£ÕâЩÐ޸ĿÉÒÔÓ¦ÓÃÓÚÍøÕ¾ÉϵÄËùÓÐÓû§»ò¸ö±ðÓû§¡£µ±Óû§ÐÞ¸ÄÒ³ºÍ¿Ø¼þʱ£¬¿ÉÒÔ±£´æÕâЩÉèÖÃÒÔ±ã¿çÒÔºóµÄ¸÷ä¯ÀÀÆ÷»á»°±£ÁôÓû§µÄ¸öÈËÊ×Ñ¡ÏÕâÖÖ¹¦ÄܳÆÎª¸öÐÔ»¯ÉèÖá£ÕâЩ Web ²¿¼þ¹¦ ......
ASP.NET Web ²¿¼þ¿Ø¼þ¼¯ÊÇÒ»×éÐͬ¹¤×÷µÄ×é¼þ£¬Ê¹Äú¿ÉÒÔ´´½¨×îÖÕÓû§¿ÉÒÔÖ±½Ó´Óä¯ÀÀÆ÷ÐÞ¸ÄÆäÓû§½çÃæ (UI) µÄÍâ¹ÛºÍÐÐΪµÄÍøÒ³¡£±¾¸ÅÊöº¸ÇÁË Web ²¿¼þ¿Ø¼þ¼¯µÄ»ù±¾·½Ã棬°üÀ¨×î³£ÓõĿؼþÒÔ¼°´´½¨ Web ²¿¼þÒ³ËùÐèµÄ»ù±¾ Web ²¿¼þ×é¼þµÄ˵Ã÷¡£
Ò»¡¢Web ²¿¼þ×é¼þµÄÀà±ð
Web ²¿¼þ¿Ø¼þ¼¯Ó ......
1.ʹÓà ʹÓÃResponse.Write£¬ÕâÖÖ·½·¨»á°ÑJS´úÂëдÔÚÒ³ÃæµÄ×î¶¥²¿(µÄÇ°Ãæ)£º
2. ʹÓ㺠page.ClientScript.RegisterStartupScript£¨£©£» ÕâÖÖ·½·¨»á°ÑJS´úÂëǶÈëÔÚÒ³ÃæµÄµ×²¿¡¢±íµ¥µÄ×îºó (Ç°Ãæ)£¬ÊÊÓÃÓÚÒªÔÚÒ³Ãæ¿Ø¼þ¼ÓÔØÍê³ÉºóÔËÐеÄJS´úÂë
3.ʹÓÃRegisterClientScriptBlock£¨£©£»ÕâÖÖ·½·¨»á°ÑJS´úÂëǶÈëÔÚÒ³ÃæµÄ¶¥²¿¡¢ ......
ASP.NETÉú³ÉËæ»úÃÜÂë
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstring ......