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

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;
using System.IO;
using System.Text;
namespace menutest
{
///
/// Conn µÄժҪ˵Ã÷¡£
///
// by kyo
// ´ËÀàÊÇÉú³É¾²Ì¬ÍøÒ³µÄС³ÌÐò
public class Conn
{
public Conn()
   {
   }
public static bool WriteFile(string strText,string strContent,string strAuthor)
   {
string path = HttpContext.Current.Server.MapPath("/menutest/");
    Encoding code = Encoding.GetEncoding("gb2312");
// ¶Áȡģ°åÎļþ
string temp = HttpContext.Current.Server.MapPath("/menutest/news/text.html");
    StreamReader sr=null;
    StreamWriter sw=null;
string str="";
try
    {
     sr = new StreamReader(temp,code);
     str = sr.ReadToEnd(); // ¶ÁÈ¡Îļþ
    }
catch(Exception exp)
    {
     HttpContext.Current.Response.Write(exp.Message);
     HttpContext.Current.Response.End();
     sr.Close();
    }
//string htmlfilename=DateTime.Now.ToString("yyyyMMddHHmmss")+".html";
string htmlfilename="kyo.html";
// Ìæ»»ÄÚÈÝ
// Õâʱ,Ä£°åÎļþÒѾ­¶ÁÈëµ½Ãû³ÆÎªstrµÄ±äÁ¿ÖÐÁË
    str = str.Replace("ShowArticle",strText); //Ä£°åÒ³ÖеÄShowArticle
    str = str.Replace("biaoti",strText);
    str = str.Replace("content",strContent);
    str = str.Replace("author",strAuthor);
// дÎļþ
try
    {
  &#


Ïà¹ØÎĵµ£º

Ò»¸ö¼òµ¥µÄASP.NET +ACCESS µÇ¼

Ê×Ò³£º
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head ......

ASP.NETÈ¡ÍøÒ³Êý¾Ý¡¶Êý¾Ý²É¼¯¡·


using System;
using System.Data;
using System.Configuration;
using System.Collections;
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;
using System.IO;
using Sy ......

ASP.NET AjaxʵÏÖµ¯³öÌáʾ¿ò£¬Ò³Ãæ±ä»Ò²»¿Éµã»÷

×î½üÔÚÍøÉÏ¿´µ½Ò»ÆªÎÄÕ£¬½²ASP.NET ajaxÖеÄÒì³£´¦Àí£¬ÓÐÒ»²¿·ÖÊÇ×Ô¶¨Òåjavascript´¦ÀíÒì³£¡£Í»È»Ïëµ½ÍøÒ×ÓÊÏäÖУ¬µ¯³ö¶Ô»°¿ò£¬ºó±ßµÄÒ³Ãæ±ä»ÒÇÒ²»¿Éµã»÷µÄЧ¹û¡£
ÔÚÍøÉÏÕÒÁËһϣ¬ÊµÏÖ·½·¨¾ÍÊÇÓÃÁ½¸ö²ã£¬Ò»¸ö²ãÓÃÀ´ÏÔʾÌáʾÐÅÏ¢£¬Ò»¸ö²ãÓÃÀ´ÕÚ×¡Ò³Ãæ£»»¹ÓÐÒ»¸ö°ì·¨¾ÍÊÇÓÃiframe.Á½ÕߵIJ»Í¬Ö®´¦´ó¸Å¾ÍÔÚÓÚiframe¿ÉÒÔÕÚ×¡È ......

ASP.NET Web »º´æÔöÇ¿ÐÔÄܺͿÉÉìËõÐÔ

 ASP.NET Web »º´æÔöÇ¿ÐÔÄܺͿÉÉìËõÐÔ
¸ÅÀÀ£º
Æ¿¾±ÏÞÖÆÏÔÖø½µµÍ
¾²Ì¬ºÍ¶¯Ì¬ Web »º´æ
±Ø±¸µÄ¹¦ÄÜ£º¹ýÆÚ¡¢Êý¾Ý¿âÒÀÀµ¹ØÏµ¡¢PDF ²¿·ÖÄÚÈÝÒÔ¼°¸ü¶à¹¦ÄÜ
¶ÔÈ«Çò×éÖ¯µÄÌØÊâºÃ´¦
Web »º´æ·þÎñÆ÷Ⱥ¼¯
Ãâ·ÑºÍÉÌÓýâ¾ö·½°¸
 
Contents
ÎÊÌ⣺ASP.NET Æ¿¾±ÏÞÖÆ
½â¾ö·½°¸£ºASP.NET Web »º´æ
Web »º´æÖ ......

ASP.NET Cache»º´æÏê½â

Àý×Ó£º
using system.web.caching
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<html>
<script language="C#" runat="server">
void Page_Load(Object Src, EventArgs E) {
DataView Source;
// Retrieve the DataView obj ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ