WebClientºÍWebRequest»ñÈ¡html´úÂë
<%@ 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 id="Head1" runat="server">
<title>µÃµ½ÍøÒ³Ô´´úÂë</title>
</head>
<body MS_POSITIONING="GridLayout">
<form id="aspNetBuffer" method="post" runat="server">
<div align="center" style="FONT-WEIGHT: bold">µÃµ½ÈÎÒâÍøÒ³Ô´´úÂë</div>
<asp:TextBox id="UrlText" runat="server" Width="400px">http://dotnet.aspx.cc/content.aspx
</asp:TextBox>
<asp:Button id="WebClientButton" Runat="server" Text="ÓÃWebClientµÃµ½" OnClick="WebClientButton_Click"></asp:Button>
<asp:Button id="WebRequestButton" runat="server" Text="ÓÃWebRequestµÃµ½" OnClick="WebRequestButton_Click"></asp:Button>
<asp:TextBox id="ContentHtml" runat="server" Width="100%" Height="360px" TextMode="MultiLine">
</asp:TextBox>
</form>
</body>
</html>
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.Net;
using System.Text;
public partial class _Default : System.Web.UI.Page
{
private string PageUrl = "";
protected void Page_Load(object sender, EventArgs e)
{
}
Ïà¹ØÎĵµ£º
IF OBJECT_ID(N'dbo.p_ExportHtml') IS NOT NULL
DROP PROC dbo.p_ExportHtml;
GO
/*-- == µ¼³ö±í/ÊÓͼÖеÄÊý¾ÝΪhtml Îļþ======================
´Ë´æ´¢¹ý³ÌÓÃÓÚ½«Ö¸¶¨µÄ±í/ÊÓͼÖеÄÊý¾Ýµ¼³öΪ html Îļþ
ÓÉÓÚÊÇʹÓô洢¹ý³Ì, Òò´ËÎļþĿ¼»ùÓÚ sql server ·þÎñÆ÷
´æ´¢¹ý³ÌÖлáʹÓÃxp_cmdshell ......
ÍøÂ翪·¢ÕßÖ®¼äÕýÔÚ½øÐÐÒ»ÏîØü¹ØÍøÂçδÀ´µÄ¼¤ÁÒ±çÂÛ£ºÊÇ·ñ¸Ã¼ÌÐøÊ¹ÓÃAdobe Flash£¬»ò¸ÄÓøüеļ¼Êõ£¿
ÕâÏîÕùÂÛÒѳÖÐø¶àÄ꣬µ«ÉÏÖÜÆ»¹û¹«Ë¾·¢±íµÄiPad²»Ö§³ÖFlash£¬Ôٴγ´ÈÈÕâ¸ö»°Ìâ¡£ÔÚÄÇ֮ǰ£¬AdobeÔøµÍ×Ë̬µØ±íʾ£¬Ö»ÒªÆ»¹ûµãÍ·£¬ËûÃǷdz£ÀÖÒâΪiPhoneÌṩFlash¡£µ«Adobe¼¼Êõ¹ÙKevin LynchËÆºõ²»ÏëÔÙ½²¿ÍÌ×»°£¬ËûÔÚ2ÈÕµ ......
ÔÚÒ»¸öÍøÒ³Öеİ´Å¥£¬Ð´onclickʼþµÄ´¦Àí´úÂ룬²»Ð¡ÐÄд³ÉÈçÏ£º
<input value="Test" type="button" onclick="alert(""OK"");" />
IEÌáʾ³ö´íºó£¬ÔÙÂþ²»¾ÐĵظÄΪ£º
<input value="Test" type="button" onclick="alert(\"OK\");" />
½á¹û»¹Êdzö´í¡£
Õâʱ£¬ÎÒ¾ÍÏ벻ͨÁË£¬ËäÈ»ÎÒÖªµÀ×îÖ±½ÓµÄ½â¾ö·½·¨ ......