Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ASP.NetÖÐÓÃC#ʵÏÖÕ¾µã¼ÆÊýÆ÷Óû§¿Ø¼þ

asaxÎļþ£º
¡¡¡¡<%@ Control Language="c#" AutoEventWireup="false" Codebehind="counter.ascx.cs" Inherits="JiAnWeb.counter" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
¡¡¡¡<LINK href="css.css" rel="stylesheet">
¡¡¡¡<FONT face="ËÎÌå">
¡¡¡¡<TABLE id="table_counter" cellSpacing="0" cellPadding="0" width="750" align="center" border="0"
¡¡¡¡runat="server">
¡¡¡¡<TR>
¡¡¡¡<TD style="HEIGHT: 23px" align="center" valign=middle><IMG height="1" alt="" src="pic\rightblueback.gif" width="700"></TD>
¡¡¡¡</TR>
¡¡¡¡<TR>
¡¡¡¡<TD align=center valign=middle></TD>
¡¡¡¡</TR>
¡¡¡¡</TABLE>
¡¡¡¡</FONT>
¡¡¡¡£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­
¡¡¡¡.csÎļþ£º
¡¡¡¡namespace JiAnWeb
¡¡¡¡{
¡¡¡¡using System;
¡¡¡¡using System.Data;
¡¡¡¡using System.Drawing;
¡¡¡¡using System.Web;
¡¡¡¡using System.Web.UI.WebControls;
¡¡¡¡using System.Web.UI.HtmlControls;
¡¡¡¡
¡¡¡¡/// <summary>
¡¡¡¡/// counter µÄժҪ˵Ã÷¡£
¡¡¡¡/// </summary>
¡¡¡¡public class counter : System.Web.UI.UserControl
¡¡¡¡{
¡¡¡¡protected System.Web.UI.HtmlControls.HtmlTable table_counter;
¡¡¡¡
¡¡¡¡private void Page_Load(object sender, System.EventArgs e)
¡¡¡¡{
¡¡¡¡// ÔÚ´Ë´¦·ÅÖÃÓû§´úÂëÒÔ³õʼ»¯Ò³Ãæ
¡¡¡¡string filePath=System.Web.HttpContext.Current.Server.MapPath("hits.txt");
¡¡¡¡System.IO.StreamReader srReadLine = new System.IO.StreamReader(
¡¡¡¡System.IO.File.OpenRead(filePath),
¡¡¡¡System.Text.Encoding.ASCII);//Encoding.DefaultÊǶÁÖÐÎÄ
¡¡¡¡srReadLine.BaseStream.Seek(0, System.IO.SeekOrigin.Begin);//
¡¡¡¡string countStr="";
¡¡¡¡if (srReadLine.Peek() > -1)
¡¡¡¡{
¡¡¡¡countStr+=srReadLine.ReadLine();
¡¡¡¡}
¡¡¡¡int count=int.Parse(countStr)+1;
¡¡¡¡countStr=count.ToString();
¡¡¡¡srReadLine.Close();
¡¡¡¡table_counter.Rows[1].Cells[0].InnerHtml="<font color=\"#009900\">";
¡¡¡¡for (int i=0;i<countStr.Length;i++)
¡¡¡¡{
¡¡¡¡table_counter.Rows[1].Cells[0].InnerHtml=table_c


Ïà¹ØÎĵµ£º

asp.net±¸·ÝÊý¾Ý¿â


Asp.Net ±¸·ÝºÍ»Ö¸´SQL SERVER Êý¾Ý¿â
   ÎÒÃÇͨ³£±¸·ÝÊý¾Ý¿âʱ£¬ÐèÒªµÇ¼Êý¾Ý¿â·þÎñÆ÷È¥±¸·ÝºÍ»Ö¸´£¬ÕâÑùºÜ²»·½±ã£¬ÆäʵSQL SERVER×Ô´øµÄÃüÁî¿ÉÄÜÈÃÎÒÃǺܼòµ¥µØÊµÏÖÔ¶³Ìͨ¹ýAsp.Net±¸·ÝºÍ»Ö¸´Êý¾Ý¿â¡£
BACKUP DATABASE '±»±¸·ÝµÄÊý¾Ý¿âÃû' TO DISK = '±¸·ÝÎļþ·¾¶';
ALTER DATABASE '±»»Ö¸´µÄÊý¾Ý¿âÃû' ......

asp.net formÑéÖ¤

Asp.netµÄÉí·ÝÑéÖ¤ÓÐÓÐÈýÖÖ£¬·Ö±ðÊÇ"Windows | Forms | Passport"£¬ÆäÖÐÓÖÒÔFormsÑéÖ¤ÓõÄ×î¶à£¬Ò²×îÁé»î¡£
Forms ÑéÖ¤·½Ê½¶Ô»ùÓÚÓû§µÄÑéÖ¤ÊÚȨÌṩÁ˺ܺõÄÖ§³Ö£¬¿ÉÒÔͨ¹ýÒ»¸öµÇÂ¼Ò³ÃæÑéÖ¤Óû§µÄÉí·Ý£¬½«´ËÓû§µÄÉí·Ý·¢»Øµ½¿Í»§¶ËµÄCookie£¬Ö®ºó´ËÓû§ÔÙ·ÃÎÊÕâ¸öwebÓ¦ÓþͻáÁ¬Í¬Õâ¸öÉí·ÝCookieÒ»Æð·¢Ë͵½·þÎñ¶Ë¡£·þÎñ¶ËÉ ......

ASP.NETÖÐÈçºÎʵÏÖFORMÈÏÖ¤µÇ¼

ÈçºÎÔËÓà Form ±íµ¥ÈÏÖ¤
ASP.NET µÄ°²È«ÈÏÖ¤£¬¹²ÓГWindows”“Form”“Passport”“None”ËÄÖÖÑé֤ģʽ¡£“Windows”Óë“None”ûÓÐÆðµ½±£»¤µÄ×÷Ó㬲»ÍƼöʹÓ㻓Passport”ÎÒÓÖûÓùý£¬°¦……ËùÒÔÎÒÖ»ºÃ½²½²“Form”ÈÏ ......

Asp.netÔÚȨÏÞÇý¶¯Ï¶¯Ì¬Éú³É²Ëµ¥µÄÁ½ÖÖ·½·¨

ÕâЩÄÚÈݱȽϼòµ¥£¬µ«ÊDZȽÏÈÝÒ×Íü¼Ç¡£ÌØÐ´ÏÂÀ´°ïÖú¼ÇÒ䣺£¨ÕâÀïÓõÄÊÇTreeViewºÍXmlDataSource°ó¶¨µÄÀý×Ó£©
µÚÒ»ÖÖ£º¶ÔÊôÐÔµÄÖµÖ±½Ó½øÐа󶨡£
     Ê×ÏÈ £ºÀ­Ò»¸öTreeViewµ½Ò³ÃæÉÏ£¬IDÃüÃûΪ"TrvLeft"¡£È»ºóÔÚºǫ́½øÐа󶨣¬
´úÂëÈçÏ£º
     XmlDataSource XmlDb = new Xml ......

ÔÚasp.netÀïÔõô¸ù¾ÝÓû§È¨ÏÞÀ´Éú³ÉÊ÷Ðβ˵¥

ÔÚasp.netÀïÔõô¸ú¾ÝÓû§È¨ÏÞÀ´Éú³ÉÊ÷Ðβ˵¥
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ