ÓÃasp.netÉú³Éhtml¾²Ì¬Ò³µÄÁ½ÖÖ·½·¨~~~
µÚÒ»ÖÖ·½·¨ÊǶÔÒ»¸öaspxÒ³ÃæÉú³ÉhtmlÎļþ£¬ÏȶԷþÎñÆ÷·¢ËÍÇëÇóaspxÒ³Ãæ£¬È¡·þÎñÆ÷·µ»ØµÄhtmlÁ÷£¬Ð´µ½Ò»¸öhtmlÎļþÀaspxÒ³ÃæÏÔʾµÄÊÇʲô£¬Éú³ÉµÄhtmlÒ³Ãæ¾ÍÊÇʲô
£±¡¢asp·½·¨£º
sub createHTML
dim xmlhttp,strhtml,objAdoStream,i,myurl
set xmlhttp=server.CreateObject("Microsoft.XMLHTTP")
Randomize
i=Int((100 * Rnd) + 1)' ²úÉú1µ½100Ö®¼äµÄËæ»úÊý£¬Ç¿ÖÆ´ÓÊý¾Ý¿âÈ¡Êý¾Ý
myurl="aspÒ³ÃæÎļþÃû.asp?i=" &i
xmlhttp.open "GET",myurl,false
xmlhttp.send
strhtml=xmlhttp.responsebody
set objAdoStream = Server.CreateObject("ADODB.Stream")
objAdoStream.Type = 1
objAdoStream.Open
objAdoStream.Write strhtml
objAdoStream.SaveToFile server.MapPath("default.htm"),2
objAdoStream.Close
response.Write("³ÉÉúÍê±Ï")
end sub
£²¡¢VB.NET×ö½Å±¾µÄʱºòµÄasp.net·½·¨£º£¨ÔØ×Ô£ºhttp://erqie.bokee.com/5641140.html£©
ÒýÓÃÃüÃû¿Õ¼ä
Imports System.Net
Imports System.IO
Dim strHtml As String
Dim sr As StreamReader
Dim sw As StreamWriter
Dim code As Encoding = Encoding.GetEncoding("utf-8")
Dim HttpWebRequest As WebRequest
Dim HttpWebResponse As WebResponse
HttpWebRequest = WebRequest.Create("http://localhost/test.aspx")
HttpWebResponse = HttpWebRequest.GetResponse
sr = New StreamReader(HttpWebResponse.GetResponseStream, code)
strHtml = sr.ReadToEnd
sw = New StreamWriter(Server.MapPath("a.htm"), False, code)
sw.WriteLine(strHtml)
sw.Flush()
sw.Close()
Response.WriteFile(Server.MapPath("a.htm"))
£³¡¢ÓÃC#×ö½Å±¾µÄasp.netµÄ·½·¨£¬Õâ¸öÊÇÎÒ×Ô¼ºÐ´µÄ£¬ÔÚ¡¶Visual C#.NET·¶ÀýÈëÃÅÓëÌá¸ß¡·µÄP311£¬ÓжÔWebRequestºÍHttpRequest¡¢HttpWebRequest¡¢HttpWebResponseËĸöÀàµÄ¼òµ¥ËµÃ÷
private bool CreateList
Ïà¹ØÎĵµ£º
×î½üд³ÌÐòÒ»Ö±³öÎÊÌ⣬ÒÔǰһ¸öÕ¾Èý¼¸Ìì¾ÍÇáËɸ㶨£¬ÏÖÔÚÒ»¸öÄ£¿é¾³£¸ã°ëÌ죬NND
ÏÂÎ翪·¢¿áÒ×»¯×±Æ·É̳Ç(http://www.koyee.net)Ò»¸ö±íµ¥Ìá½»¹¦ÄÜÄ£¿é£¬±¾µØÈκÎÎÊÌⶼûÓÐÁË£¬´«µ½·þÎñÆ÷Éϱ¾ÒÔΪûÊÂÁË£¬ºóÀ´Ò»¼ì²éËùÓеÄÑéÖ¤¿Ø¼þ¶¼²»Æð×÷ÓÃÁË£¬Ö±½Ó¶¼Ìá½»¹ýÈ¥ÁË£¬ÓôÃÆ£¬ÔÒÔΪ³ÌÐò±»¸Ä´íÁË£¬¼ì²é±¾µØ»¹ÊÇûÈκÎÎÊÌ⣬¼ ......
1.ÉÏ´«¹¦ÄÜ
JS¼ì²é
function hideUpImg()//¹Ø±Õ²ã£¬²¢ÉÏ´«Í¼Æ¬
{
var v=document.getElementById("upImg").value;
var after=v.substring(v.lastIndexOf('.')).toLowerCase();
alert(after);
if(v.length<=0)
{
alert("ÇëÑ¡ÔñͼƬ");
return ......
£¨1£©Ê×ÏÈÒª¶ÔÄÚÈݵÄÌØÊâ×Ö·û½øÐйýÂÇ£º
C# ´úÂ룺
public string res(string partno)
{
partno = partno.Replace("&", "");
partno = partno.Replace("/", "");
partno = partno.Replace("&", "");
return partno;
}
£¨2£©´ÓÊý¾Ý¿âÖлñµÃÒªÉú³ÉµØÍ¼µÄÄÚ ......
ÎÄÕ³ö´¦£ºhttp://hi.baidu.com/richiezheng/blog/item/8bb94b8692315b3867096efa.html
ÀûÓÃASP.NET¼¼Êõ¶¯Ì¬Éú³ÉHTMLÒ³Ãæ
˼·
¡¡¡¡1. ÀûÓÃÈçDw-MxÕâÑùµÄ¹¤¾ßÉú³Éhtml¸ñʽµÄÄ£°å£¬ÔÚÐèÒªÌí¼Ó¸ñʽµÄµØ·½¼ÓÈëÌØÊâ±ê¼Ç(Èç$htmlformat$),¶¯Ì¬Éú³ÉÎļþʱÀûÓôúÂë¶ÁÈ¡´ËÄ£°å£¬È»ºó»ñµÃǰ̨ÊäÈëµÄÄÚÈÝ£¬Ìí¼Óµ½´ËÄ£°åµÄ±ê¼ÇλÖÃÖ ......
Data Source=sqlservername;Initial Catalog=dbname;User ID=userid;Password=userpwd
Data Source=(local)\\SQLEXPRESS;Initial Catalog=Êý¾Ý¿âÃû;Integrated Security=True
Data Source=(local);Initial Catalog=Êý¾Ý¿âÃû;User ID=ÕʺÅ;Password=ÕʺÅÃÜÂë
Provider=Microsoft.Jet.OleDb.4.0;Data Source=C:\BegASPNET\ ......