asp.net ¿ª·¢³£Óõķ½·¨¶þ
asp.net ¿ª·¢Öг£ÓõÄһЩ·½·¨×ܽáËäȻдµÄ²»ºÃ,µ«ºÜʵÓÃ
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Net;
using System.Text.RegularExpressions;
using System.Web.UI;
using System.Web.SessionState;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Xml;
namespace f.DBUtility
{
public static class Code
{
#region »ñÈ¡ÐÇÆÚ¼¸
/// <summary>
/// ·µ»ØÐÇÆÚ
/// </summary>
/// <returns></returns>
public static string GetWeek()
{
string wek = "";
int m = System.DateTime.Today.Month;
int y = System.DateTime.Today.Year;
int d = System.DateTime.Today.Day;
int weeks = getWeekDay(y, m, d);
switch (weeks)
{
case 1:
wek = "ÐÇÆÚÒ»";
break;
case 2:
wek = "ÐÇÆÚ¶þ";
break;
case 3:
wek = "ÐÇÆÚÈý";
break;
case 4:
wek = "ÐÇÆÚËÄ";
break;
case 5:
wek = "ÐÇÆÚÎå";
break;
case 6:
wek = "ÐÇÆÚÁù";
break;
case 7:
wek = "ÐÇÆÚÈÕ";
break;
}
return wek;
}
/// <summary>¸ù¾ÝÈÕÆÚ£¬»ñµÃÐÇÆÚ¼¸</summary>
/// <param name="y">Äê</param>
/// <param name="m">ÔÂ</param>
/// <param name="d">ÈÕ</param>
/// <returns>ÐÇÆÚ¼¸£¬1´ú±íÐÇÆÚÒ»£»7´ú±íÐÇÆÚÈÕ</returns>
public static int getWeekDay(int y, int m, int d)
{
if (m == 1) m = 13;
if (m == 2) m = 14;
int week = (d + 2 * m + 3 * (m + 1) / 5 +
Ïà¹ØÎĵµ£º
ASP.NETÊý¾Ý°ó¶¨¿Ø¼þ(GridView¡¢DataList¡¢DetailsView¡¢FormViewµÈ£©ÀïµÄ×Ö¶ÎÉ趨¸ñʽºó£¬È´²»Æð×÷Óã¬ÏÔʾ»¹ÊÇÔÀ´µÄ¸ñʽ£¬Ã»Óа´É趨ÏÔʾ³öÀ´¡£
ÕâÀïÊÇÒªÉèÖÃ×ֶεÄÒ»¸öÊôÐÔ²ÅÄÜÒªÈÃ×ֶθñʽÆð×÷Ó㬠±ØÐëÈÃÊý¾Ý×ֶεÄHtmlEncodeÊôÐÔΪFalse£¬·ñÔò×Ö¶ÎÊý¾Ý²»»á°´¸ñʽÏÔʾ¡£ ......
±¾ÌùÀ´×ÔZDNetChinaÖÐÎÄÉçÇø http://bbs.zdnet.com.cn/
±¾ÌùµØÖ·£ºhttp://bbs.zdnet.com.cn/viewthread.php?tid=108315
Èç¹ûÄãÒѾÓн϶àµÄÃæÏò¶ÔÏ󿪷¢¾Ñ飬Ìø¹ýÒÔÏÂÕâÁ½²½£º
¡¡¡¡µÚÒ»²½¡¡ÕÆÎÕÒ»ÃÅ.NETÃæÏò¶ÔÏóÓïÑÔ£¬C#»òVB.NET ÎÒÇ¿ÁÒ·´¶ÔÔÚûϵͳѧ¹ýÒ»ÃÅÃæÏò¶ÔÏó(OO)ÓïÑÔµÄÇ°ÌáÏÂȥѧASP.NET¡£ ASP.NETÊÇ ......
Asp.net ×Ô¶¯·¢ËÍÓʼþµÄ·½·¨
½ñÌìÓÐÒ»¸öÄ£¿éÐèÒª×Ô¶¯·¢ËÍÓʼþµÄ¹¦ÄÜ£¬¾ÍËæ±ãдÁËÒ»¸ö£¬¼Ç¼һÏÂ×÷Ϊ»ýÀÛ¡£
Ò»¡¢Ê×ÏÈÐèÒªÅäÖÃweb.configÎļþ£º
<system.net>
<mailSettings>
<smtp from="Emailname">
<network ho ......
Õû¸öSQLºÍAsp.net(vb.net)Ò»Æð´ò°üµÄÈ«¹ý³ÌдһÏ¡£
Ò».×¼±¸±ØÒªµÄÎļþ
1. SQL½Å±¾Îļþ£¬Éú³ÉÒÔºó°²×°¹ý³ÌÖÐÐèÒªµÄ±íºÍ´æ´¢¹ý³ÌµÈµÈ£»
Éú³ÉÖ®ºó£¬¾ÍÔÝʱ°ÑËüÃüÃûΪdb.sql(×¢Òâ´óСд)
2.LisenceFile.rtfµÄ°²×°Îļþ£¬ÒòΪÎÒµÄϵͳÊǸöÈ˵ģ¬¶øÇÒfreeµÄ£¬ËùÒÔ¾ÍûÓÐ×ö¡£Õâ¸öÒÔºóÒ²ÊÇÒªÓõ½µÄ¡£
¶þ.ÔÚ×Ô¼ºÏÖÓеÄÏîÄ¿Àïà ......
PRB£ºÔÚʹÓà Response.End¡¢Response.Redirect »ò Server.Transfer ʱ³öÏÖ ThreadAbortException
Ö¢×´
Èç¹ûʹÓà Response.End¡¢Response.Redirect »ò Server.Transfer ·½·¨£¬½«³öÏÖ ThreadAbortException Òì³£¡£Äú¿ÉÒÔʹÓà try-catch Óï¾ä²¶»ñ´ËÒì³£¡£
ÔÒò
Response.End ·½·¨ÖÕÖ¹Ò³µÄÖ´ÐУ¬²¢½«´ËÖ´ÐÐÇл»µ½Ó¦ÓóÌÐò ......