ASP.NET treeview¿Ø¼þ¸Ä±ä½áµã×ÖÌåÑÕÉ«
Ôõôдһ¶Îasp.net´úÂ룬°ÑÒ»¸ö×Ö·û´®ÖÐËùÓеÄHTML±ê¼Ç¶¼È¥µô£¬Ö»Ê£ÏÂÎÄ×ÖÄÚÈÝÄØ£¿
±ÈÈ磺<td width=\"427\" align=\"left\" class=\"cn\">½Ï¸ßµÄζȣ¬¿ÉÄÜÔö¼ÓÆ¡¾Æ¶ÔÄúµÄÓÕ»ó£¬ÊÊÁ¿ÒûÓÃÆ¡¾Æ»á¸øÄú´øÀ´ÇåÁ¹µÄ¸Ð¾õ£¬µ«Ç§Íò×¢Òâ²»Òª¹ýÁ¿ßÏ£¡</td>
È¥µôºóֻʣÏ£º½Ï¸ßµÄζȣ¬¿ÉÄÜÔö¼ÓÆ¡¾Æ¶ÔÄúµÄÓÕ»ó£¬ÊÊÁ¿ÒûÓÃÆ¡¾Æ»á¸øÄú´øÀ´ÇåÁ¹µÄ¸Ð¾õ£¬µ«Ç§Íò×¢Òâ²»Òª¹ýÁ¿ßÏ£¡
<%@ Page language="c#" AutoEventWireup="false" debug="true"%>
<%@ import Namespace="System.Text.RegularExpressions" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>¹ýÂËhtml±ê¼Ç</title>
<meta name="CODE_LANGUAGE" Content="C#">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
body {font-size:12px;}
</style>
<script runat="server" language="c#">
private void Page_Load(object sender, System.EventArgs e)
{
String text = "<td width=\"427\" align=\"left\" class=\"cn\">½Ï¸ßµÄζȣ¬¿ÉÄÜÔö¼ÓÆ¡¾Æ¶ÔÄúµÄÓÕ»ó£¬ÊÊÁ¿ÒûÓÃÆ¡¾Æ»á¸øÄú´øÀ´ÇåÁ¹µÄ¸Ð¾õ£¬µ«Ç§Íò×¢Òâ²»Òª¹ýÁ¿ßÏ£¡</td>";
&nbs
Ïà¹ØÎĵµ£º
ÔÚÖÐÎÄVS2008Öа²×°ASP.NET MVC¿ò¼Ü£¬Ê×ÏÈÐèÒªÏÂÔØmvc¿ò¼Ü
µãÕâÀïÏÂÔØ,Ŀǰ°æ±¾ÎªPreview 2
ÔËÐÐÎļþAspNetMVCPreview2-setup.msi½øÐа²×°,°²×°Íê³Éºó·¢ÏÖÔÚVS2008ÀïÃæ²¢Ã»ÓÐMVCÄ£°å³öÏÖ¡£ÓÖµ½´¦GoogleÁËÒ»±é£¬·¢ÏÖÓв»ÉÙÈËÓöµ½Õâ¸öÎÊÌ⣬µ«ÊÇ»¹Ã»¿´µ½ÍêÈ«½â¾öµÄ°ì·¨¡£
ĿǰÓöµ½ÎÊÌâµÄ»ù±¾¼¯ÖÐÔÚMicrosoft Visual Studio ......
×ܽá³öÒÔϼ¸¸ö´«µÝ²ÎÊýµÄ·½·¨£º
µÚÒ»ÖÖ·½·¨£º
ͨ¹ýURLÁ´½ÓµØÖ·´«µÝ
send.aspx:
protected void Button1_Click(object sender, EventArgs e)
{
Request.Redirect("Default2.aspx?username=honge");
}
receive.aspx:
s ......
ASP.NET³£ÓõÄ6ÖÖÑéÖ¤¿Ø¼þ£¬ÈçÏ£º
RequiredFieldValidator £¨±ØÐë×Ö¶ÎÑéÖ¤£© ÓÃÓÚ¼ì²éÊÇ·ñÓÐÊäÈëÖµ
CompareValidator £¨±È½ÏÑéÖ¤£© °´É趨±È½ÏÁ½¸öÊäÈë
RangeValidator £¨·¶Î§ÑéÖ¤£© ÊäÈëÊÇ·ñÔÚÖ¸¶¨·¶Î§
RegularExpressionValidator £¨Õ ......
×î½ü£¬Òª°ÑÒ»¸öC/S½á¹¹µÄ³ÌÐò¸Ä³ÉB/S½á¹¹¡£ÆäÖоÍÓöµ½ÁË´òÓ¡µÄÎÊÌâ¡£Ñо¿ÁËһϣ¬webÏ´òÓ¡·½·¨´ó¸ÅÓÐÕâô¼¸ÖÖ£º
1¡¢ÀûÓÃIEÖ±½Ó´òÓ¡£¬ÕâÖÖ·½Ê½×î·½±ã£¬µ«ÊÇ¿ØÖÆÄÜÁ¦½Ï²î¡£
2¡¢ÀûÓÃACTIVE¿Ø¼þ£¬¿ÉÒÔ×Ô¼º×öÒ»¸öIEµÄ¿Ø¼þÀ´¿ØÖÆ´òÓ¡¡£
3¡¢Ë®¾§±¨±íµÈµÚÈý·½¹¤¾ß£¬¹ºÂò¼Û¸ñ°º¹ó¡£
¸ù¾ÝÎÒµÄÐèÇóÇé¿ö£¬ÓÃIEÖ ......
1¡¢DateTime Êý×ÖÐÍ
ÒÔÏÂÊÇÒýÓÃÆ¬¶Î£º
System.DateTime currentTime=new System.DateTime();
1.1 È¡µ±Ç°ÄêÔÂÈÕʱ·ÖÃë currentTime=System.DateTime.Now;
1.2 È¡µ±Ç°Äê int Äê=currentTime.Year;
1.3 È¡µ±Ç°Ô int ÔÂ=currentTime.Month;
1.4 È¡µ±Ç°ÈÕ int ÈÕ=currentTime.Day;
1.5 È¡µ±Ç°Ê± int ʱ=currentTi ......