ASPXÒ³Éú³É¾²Ì¬HTMLÒ³(ÎåÖÖ·½°¸)
·½°¸1£º
/// <summary >
/// ´«ÈëURL·µ»ØÍøÒ³µÄhtml´úÂë
/// </summary >
/// <param name="Url" >URL </param >
/// <returns > </returns >
public static string getUrltoHtml(string Url)
{
errorMsg = "";
try
{
System.Net.WebRequest wReq = System.Net.WebRequest.Create(Url);
// Get the response instance.
System.Net.WebResponse wResp =wReq.GetResponse();
// Read an HTTP-specific property
//if (wResp.GetType() ==HttpWebResponse)
//{
//DateTime updated =((System.Net.HttpWebResponse)wResp).LastModified;
//}
// Get the response stream.
System.IO.Stream respStream = wResp.GetResponseStream();
// Dim reader As StreamReader = New StreamReader(respStream)
System.IO.StreamReader reader = new System.IO.StreamReader(respStream, System.Text.Enco
Ïà¹ØÎĵµ£º
ÔÚIIS5ºÍIIS6ʱ´ú£¬ÎÒÃÇʹÓÃURL REWRITING¿ÉʵÏÖURLÖØÐ´£¬Ê¹µÃWEB³ÌÐòʵÏÖα¾²Ì¬£¬µ«Ä¬ÈÏÇé¿öÏÂÖ»ÄÜʵÏÖ.ASPXµÄα¾²Ì¬£¬Èç¹ûҪʵÏÖα¾²Ì¬*.HTMLµÄÒ³Ãæ£¬ÐèÒª½«ISAPIÀïÃæµÄ*.HTMLÓ¦ÓóÌÐòÓ³Éä¸ÄΪ.NETµÄISAPI¡£µ«ÔÚIIS 7ʱ´ú£¬ÕâÒ»ÇÐÒѾ±äµÃ·Ç³£¼òµ¥ÁË£¬ÄúÔÚWEB.CONFIGÖоͿÉÒÔ¹ÜÀíÕâÒ»ÇÐÁË¡£
ÔÚ·þÎñÆ÷Éϰ²×°ºÃMicrosoft U ......
Web·þÎñÆ÷¿Ø¼þ¡¢Html·þÎñÆ÷¿Ø¼þºÍHtml¿Ø¼þ
¡¡¡¡Html¿Ø¼þÎÞÐè¶à˵£¬×î³£ÓõĿؼþ£¬ASPʱ´úµÄΨһѡÔñ£¬ÊÀ½ç¿ªÊ¼µÄʱºòËü¾ÍÔÚÄÇ¡£µ±Î¢ÈíÍÆ³ö.Netºó£¬ÎªÁËÌṩASP.Net Web Form¿ª·¢ÒÔºÍWin Form¿ª·¢ÏàËÆµÄ¿ª·¢ÌåÑé£¬ÍÆ³öÁËWeb·þÎñÆ÷¿Ø¼þ£¨Server Control£©£¬ÓÖ³ÆASP.Net·þÎñÆ÷¿Ø¼þ¡£¶øHtml·þÎñÆ÷¿Ø¼þ£¨Html Server Control£©£ ......
´Ë½Ì³ÌÏòÄãÑÝʾÈçºÎÔÚÄãµÄMVCÊÓͼÀï´´½¨×Ô¶¨ÒåHTML Helper¡£ÀûÓà HTML Helpers, ¿ÉÒÔ¼õÉÙ·¦Î¶µÄÊäÈëHTML±êÇ©¡£
Ôڽ̵̳ĵÚÒ»²¿·Ö£¬ÎÒÃèÊöÁËASP.NET MVC¿ò¼ÜÒÑÓеÄHTML Helper¡£È»ºó£¬ÎÒÃèÊöÁË´´½¨×Ô¶¨ÒåHTML HelperµÄÁ½¸ö·½·¨£ºÎÒ»á½âÊÍÈçºÎͨ¹ý´´½¨¾²Ì¬·½·¨ºÍÀ©Õ¹·½·¨À´´´½¨HTML Helper¡£
Àí½â HTML Helper
HTML Helper ......
<html>
<frameset rows="50%,50%">
<frame src="/example/html/frame_a.html">
<frameset cols="25%,75%">
<frame src="/example/html/frame_b.html">
<frame src="/example/html/frame_c.html">
</frameset>
</frameset>
</html> ......