Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

HTMLתPDF£¨C# itextsharp£©

Ò»¡¢ ÐèÇ󣺽«HTMLתPDF´òÓ¡¡£WebÏîÄ¿ÖÐ×ÜÊÇÓÐÕâÑùµÄÐèÇ󣬺ÜÊÇÈÃÈË¿àÄÕ¡£
¶þ¡¢ ·ÖÎö£ºÈçºÎÍê³ÉÕâ¸ö¹¤×÷£¿
1¡¢ ÐèÒª½âÎöHTML£¬È»ºóÀûÓÃitextsharp»æÖÆpdfÎĵµ¡£½âÎöHTMLÊÇÒ»¸öºÜÄÑÍê³ÉµÄÈÎÎñ£¬¸÷¸öä¯ÀÀÆ÷¶ÔHTMLµÄ½âÎöÎ廨°ËÞÍÖªµÀÕâ²»ºÃ½â¾ö¡£ÕâÌõ·²»ºÃ×ߣ¬µ«Ò²ÊÇ¿ÉÒÔÍê³ÉµÄ£¬Í¨¹ýwebbrowserÀà¿ÉÒÔ½âÎöHTML»ñÈ¡¸÷¶ÔÏóµ ......

ASP.net ÉèÖÃĬÈϰ´Å¥

 public static void SetEnterControl(System.Web.UI.Control Ctrl)
    {
        Page mPage = Ctrl.Page;
        string mScript;
        mScript = @"<script language=""jav ......

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

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