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

Asp.netÉú³Éhtm¾²Ì¬ÎļþµÄÁ½ÖÖ;¾¶

ÏÖÔںܶàÍøÕ¾ÌرðÊÇ×ÊѶÀàµÄ¶¼°ÑÄÚÈÝÉú³É¾²Ì¬Ò³£¨htm\html\shtmlµÈ£©£¬ÕâÀà×ܽáÁËÒ»ÏÂÁ½ÖÖÉú³É¾²Ì¬Ò³µÄ·½·¨²¢×öÁËÒ»¸öDemoÎļþ¹©´ó¼ÒÏÂÔØ¡£
·Ö±ðÊÇͨ¹ýÄ£°å£¨±È½Ï³£Ó㩺͸ù¾ÝurlÉú³É£¨²»µ½Íò²¿ÔòÒÔ²»Óã¬ÒòΪÕâÖз½Ê½Ö»ÄÜ»ñÈ¡htmlµÄ²¿·Ö£©£º
Asp.netÉú³É¾²Ì¬Îļþ£¨¸ù¾Ýʱ¼ä×Ô¶¯ÃüÃû±£³Ö£¬Ä¬ÈÏÀ©Õ¹ÃûÊÇhtm¿ÉÒÔ×ÔÐÐÐ޸ģ©¡£
ͨ¹ýÊÕÈëÄÚÈÝÌ滻ģ°å»òÕßurlµØÖ·Á½ÖÖ·½Ê½½øÐо²Ì¬ÎļþµÄÉú³É
templete.htmΪģ°åÎļþ£¬htmΪÉú³ÉºóµÄ¾²Ì¬Îļþ±£´æλÖÃ
ÕâÀàÕ³Ìù³ö.csÎļþ
  1 //51aspx.comÉú³É¾²Ì¬Ò³ÑÝʾÎļþ£¬×ªÔØÇë±£Áô¸ÃÐÅÏ¢
  2    public partial class _Default : System.Web.UI.Page
  3    {
  4        protected void Page_Load(object sender, EventArgs e)
  5        {
  6         
  7        }
  8
  9        //¸ù¾ÝÄ£°åÉú³É£¬±£³ÖÔÚhtmlÎļþ¼ÐÖÐ(²¿·ÖÔ´ÂëËѼ¯ÓÚÍøÂç)
10        protected void Button1_Click(object sender, EventArgs e)
11        {
12            //Ô´ÂëÊÇÌæ»»µôÄ£°åÖеÄÌØÕ÷×Ö·û
13
14            string mbPath =Server.MapPath("template.htm");
15            Encoding code = Encoding.GetEncoding("gb2312");
16            StreamReader sr = null;
17            StreamWriter sw = null;
18            string str = null;
19
20            //¶ÁÈ¡
21            try
22            {
23                sr = new StreamReader(mbPath, code);
24                str = sr.ReadToEnd();
25
26            }
27            catch (Exception ex)
28            {
29  &


Ïà¹ØÎĵµ£º

c# asp.net ×Ö·û´®¼ÓÃܽâÃܵÄÀà


using System;   
using System.Collections.Generic;   
using System.Text;   
using System.Security.Cryptography;//CryptographyÃÜÂëÊõ   
namespace DAL   
{   
    public class Enc ......

´¦Àíasp.netµÄ»Ø³µÊ¼þ

1.Ìí¼Ójsº¯Êý
function TextBoxEntered(buttton) {
if (event.which || event.keyCode) {
if ((event.which == 13) || (event.keyCode == 13)) {
document.getElementById(button).click();
return false;
}
......

asp.netÖÐapplication,session,cookie,viewstate

asp.netÖÐapplication,session,cookie,viewstate,cache¶ÔÏó
ÔÚasp.netÖÐÄÚÖöÔÏóÈçapplication,session,cookie,viewstate,cacheµÈµÄÉú´æÖÜÆÚºÍÓ¦Ó÷¶Î§´Ó´óµ½Ð¡Îªapplication,cache,session,cookie,viewstate.
applicationºÍcacheµÄÓ¦Ó÷¶Î§¶¼ÊÇÔÚÕû¸öÓ¦ÓóÌÐòÖÐ.¶øsession,cookie,viewstateÔòÊÇ»ùÓÚÿ¸öÓû§,application ......

ASP.NET ÈçºÎÈ¡µÃ Request URL µÄ¸÷個²¿·Ö?


ÎÒ們ÔÚ開發網頁應ÓóÌʽ£¬時³£ÐèҪȥ½âÎö網Ö·(Request.Url)µÄÿ個Ƭ¶Î£¬進ÐÐһЩÅÐ斷¡£ÀýÈç說 "http://localhost:1897/News/Press/Content.aspx/123?id=1#toc
"£¬ÎÒ們ÏëҪȡµÃ網Ö·裡µÚÒ»層Ä¿錄µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ