Asp.NETÉú³É¾²Ì¬Ò³Ãæ²¢·ÖÒ³(ÎÄÕÂÄÚÈÝ·ÖÒ³)
Ö÷ÒªµÄÔÀí¾ÍÊÇÌæ»»Ä£°åÀïµÄÌØÊâ×Ö·û¡£
1¡¢¾²Ì¬Ä£°åÒ³Ãæ template.html£¬Ö÷ÒªÊǶ¨ÒåÁËÒ»Ð©ÌØÊâ×Ö·û£¬ÓÃÀ´±»Ìæ»»¡£
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>Title </title> </head> <body> <div style="width: 417px; height: 54px" align="center"> <br /> Title </div> <div style="width: 417px; height: 8px"> ä¯ÀÀ <font color="red"> <script src="http://localhost/.Net/NewsFiles/ClickCount.aspx?NewsId=NewsId"> </script> </font>´Î Time </div> <div style="width: 417px; height: 100px"> Content </div> <div style="width: 416px; height: 9px"> Pager </div> <div style="width: 416px; height: 8px"> <form id="form1" action="../AddComment.aspx" style="margin:0px"> <input id="Text1" type="text" /> <Img id="Image1" src="http://www.dwww.cn/UserInfo/CheckCode.aspx"/> <br /> <textarea id="CommentContent" cols="20" rows="2"> </textarea> <br /> <input id="NewsId" type="hidden" value="NewsId"/> <input id="Button1" type="submit" value="button" /> <a href="http://www.dwww.cn/News/Display.aspx?NewsId=NewsId">²é¿´¸ü¶àÆÀÂÛ </a> </form> 
Ïà¹ØÎĵµ£º
string FormURL = "http://10.45.19.80:8080/easysendok.jsp";
//±íµ¥ÐèÒªÌá½»µÄ²ÎÊý
//sendobj ²ÎÊýΪ½ÓÊÕ¶ÔÏó£¨ÊÖ»úÓû§£©£»sendTextΪ¶ÌÐÅÄÚÈÝ
&n ......
ÎÒÃǾ³£ÒªÔÚÒ»¸ö±íÖн«Êý¾ÝÇ¨ÒÆµ½ÁíÒ»¸ö±í£¬µ±È»£¬Óõķ½·¨Ê®·Ö¶àÁË¡£ÔÚ.net 2.0ÖУ¬ÌṩÁËÒ»¸ösqlbulkcopyÀ࣬Ҳ¿ÉÒÔʵÏÖÈçϵIJÙ×÷£¬ÏÂÃæ¼òµ¥½éÉÜÏ¡£±ÈÈçÒ»¸ö±íÈçÏÂ
CREATE TABLE Person3
(
PersonID int IDENTITY(1,1) PRIMARY KEY,
Name nvarchar(200),
Email nvarchar(200),
Picture image
)
INSERT INT ......
DateTime dt = DateTime.Now;
// Label1.Text = dt.ToString();//2005-11-5 13:21:25
// Label2.Text = dt.ToFileTime().ToString();//127756416859912816
// Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816
// Labe ......
µÚÒ»ÖÖ£º
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
/// <summary>
/// CookieOper µÄժҪ˵à ......
ASP.NET³£¼û°²È«ÎÊÌâ
Ò»¡¢SQLÓï¾ä©¶´
Ðí¶à³ÌÐòÔ±ÔÚÓÃsqlÓï¾ä½øÐÐÓû§ÃÜÂëÑé֤ʱÊÇͨ¹ýÒ»¸öÀàËÆÕâÑùµÄÓï¾äÀ´ÊµÏֵģº
Sql="Select * from Óû§±í where ÐÕÃû = '" + name + "' and ÃÜÂë = '" + password + "'"
ͨ¹ý·ÖÎö¿ÉÒÔ·¢ÏÖ£¬ÉÏÊöÓï¾ä´æÔÚ×ÅÖÂÃüµÄ©¶´¡£µ±ÎÒÃÇÔÚÓû§Ãû³ÆÖÐÊäÈëÏÂÃæµÄ×Ö·û´®Ê±£ºtes ......