asp.netºǫ́ÑéÖ¤Àà
/// <summary>
/// Ìṩ¾³£ÐèҪʹÓõÄһЩÑéÖ¤Âß¼¡£ ±ÈÈç ÓÊÏäÊÇ·ñºÏ·¨
/// </summary>
public class Validator
{
/// <summary>
/// ¼ì²éÒ»¸ö×Ö·û´®ÊÇ·ñ¿ÉÒÔת»¯ÎªÈÕÆÚ£¬Ò»°ãÓÃÓÚÑéÖ¤Óû§ÊäÈëÈÕÆڵĺϷ¨ÐÔ¡£
/// </summary>
/// <param name="_value">ÐèÑéÖ¤µÄ×Ö·û´®¡£</param>
/// <returns>ÊÇ·ñ¿ÉÒÔת»¯ÎªÈÕÆÚµÄboolÖµ¡£</returns>
public static bool IsStringDate(string _value)
{
DateTime dTime;
try
{
dTime = DateTime.Parse(_value);
}
catch (FormatException e)
{
//ÈÕÆÚ¸ñʽ²»Õýȷʱ
Console.WriteLine(e.Message);
return false;
}
return true;
}
/// <summary>
 
Ïà¹ØÎĵµ£º
1.Á¬½ÓÊý¾Ý¿âÎļþ
<add name="LocalSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;AttachDBFilename=|DataDirectory|TimeTracker.mdf;User Instance=true" />
SqlConnectionStringBuilderʵÀý»¯Ê±£¬ÒªÓõ½connectionString£¬È磺SqlConnectionStringBuild builder = new SqlCon ......
±í¼ò½à
"¹«½»Ïß·Êý¾Ý¿â"
ÓõÄsqlÊý¾Ý¿â
admin±í
username
password
admin
admin
busroute ±í
³µ´Î
stop-name-id
Õ¾´Î
Ʊ¼Û
68
4
1
1
34
5
6
1.5
25
6
3
2
Õ¾µã±í
id
stop-name
1
»ð³µÕ¾
³µ´Î±í
id
³µ´Î
1
1
Èç¹ûÒªÓûùÓÚvb.netµÄasp.net±à³Ì
µÇ½µÄʱºò¸ÃÔõô±à³Ì°¡,Êý¾Ý¿âÊÇÓÃsql× ......
ÔÒò¾ÍÊÇIISºÍ.net Framework2.0°²×°Ë³Ðò·´ÁË£¬ÒòΪÎÒÏÈÇ°Ôø¾×°¹ýVisualStudio2005£¬ËùÒÔϵͳÀïÏÈ°²×°ÁË.net Framework2.0£¬¶øÕâÑùºóÀ´×°¹ýIISºó£¬.net Frameworkδע²áÏà¹Ø×é¼þ£¬²»ÄܶÔIIS×ö³öÐ޸ģ¬¾Í»á³öÏÖÕâÖÖÇé¿ö£¡
½â¾ö·½·¨£º
µ½C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727ÖÐÕÒ£¬Óиö¹¤¾ß½Ð aspnet_regiis.exe ......
asp.netϵͳ£¬ÔڵǼ»ò×¢²áʱ³£ÌṩÊý×Ö»ò×Ö·û»ìºÏµÄÑéÖ¤Â룬ÕâÀï½éÉÜÈçºÎ²Ù×÷¡£
1£¬Default Ò³Ãæ
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
& ......