asp.net ¶ÁÈëhtmlÎļþÌæ»»
csÎļþ£º
using System.IO;
string context = "";
string path = HttpContext.Current.Server.MapPath("") + "\\test\\test.html";
System.Text.Encoding code = System.Text.Encoding.GetEncoding("utf-8");
StreamReader sr = null;
try
{
sr = new StreamReader(path, code);
context = sr.ReadToEnd();
context = context.Replace("<firstname>", "С³æ");
context = context.Replace("<lastname>", "ÅÀÅÀ");
Response.Write(context);
sr.Close();
}
catch (Exception exp)
{
HttpContext.Current.Response.Write(exp.Message);
 
Ïà¹ØÎĵµ£º
ASP.NetÓʼþ·¢ËÍÀà
±¾ÎÄת×Ô£ºhttp://www.pcstu.com/program/Asp_net/sl/20070706/52523.html
˵Ã÷£º±¾ÎÄûÓвâÊÔ£¬µ«¿´ÆðÀ´Ëƺõ²»ÄÜÓÃÓÚ·¢Ë͸½¼þ£¬ÈçÒª·¢Ë͸½¼þ£¬¿É²Î¿¼£ºhttp://blog.csdn.net/lff642/archive/2008/07/15/2654346.aspx
using System;
using System.Text;
using System.IO;
using System.Net;
using ......
ASP.NET Web »º´æÔöÇ¿ÐÔÄܺͿÉÉìËõÐÔ
¸ÅÀÀ£º
Æ¿¾±ÏÞÖÆÏÔÖø½µµÍ
¾²Ì¬ºÍ¶¯Ì¬ Web »º´æ
±Ø±¸µÄ¹¦ÄÜ£º¹ýÆÚ¡¢Êý¾Ý¿âÒÀÀµ¹ØÏµ¡¢PDF ²¿·ÖÄÚÈÝÒÔ¼°¸ü¶à¹¦ÄÜ
¶ÔÈ«Çò×éÖ¯µÄÌØÊâºÃ´¦
Web »º´æ·þÎñÆ÷Ⱥ¼¯
Ãâ·ÑºÍÉÌÓýâ¾ö·½°¸
Contents
ÎÊÌ⣺ASP.NET Æ¿¾±ÏÞÖÆ
½â¾ö·½°¸£ºASP.NET Web »º´æ
Web »º´æÖ ......
ASP.NET C# Éú³É¾²Ì¬Ò³Ãæ¼òµ¥·½·¨
//Ô´ÂëÊÇÌæ»»µôÄ£°åÖеÄÌØÕ÷×Ö·û
string mbPath = Server.MapPath("template.html");
Encoding cod ......
Àý×Ó£º
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 ......
¹ØÓÚEXCELµÄ±¨±íµ¼³ö£¬¿¼Âǵ½µ¼³öºÄʱµÄÎÊÌâÎÒÖ÷Òª²ÉÓÃAJAXÀ´×öµÄ£¬·Ö±ð²¶×½¼¸¸öÆðֹ״̬£¬¸ø¿Í»§¶ËÌáʾ3¸ö״̬£ºÕýÔÚ¼ìË÷Êý¾Ý¡£¡£¡£---¡·×¼±¸µ¼³öÊý¾Ý¡£¡£¡£(Ö»ÊÇ´ÓÊý¾Ý¿â³É¹¦È¡³ö£¬»¹Ã»ÓжÁдexcelÎļþ)--¡·ÕýÔÚ¶ÁдÎļþ--¡·µ¼³öÊý¾Ý³É¹¦£¬µ±È»Èç¹ûÄÄÒ»¹ý³Ì³ö´í£¬¶¼ÓжÔÓ¦µÄÌáʾ£¬Ö»ËùÒÔÏ뵽дÕâÆªÎÄÕ£¬Ö÷ÒªÊÇÒòΪ ......