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

ASP.NETÉú³É¾²Ì¬Ò³Ãæ·½·¨´óÈ«

·½°¸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.Encoding.GetEncoding("gb2312"));
return reader.ReadToEnd();
}
catch(System.Exception ex)
{
errorMsg = ex.Message ;
}
return "";
}
Äã¿ÉÒÔÓÃÕâ¸öº¯Êý»ñÈ¡ÍøÒ³µÄ¿Í»§¶ËµÄhtml´úÂ룬Ȼºó±£´æµ½.htmlÎļþÀï¾Í¿ÉÒÔÁË¡£
·½°¸2£º
Éú³Éµ¥¸öµÄ¾²Ì¬Ò³Ãæ²»ÊÇÄѵ㣬ÄѵÄÊǸ÷¸ö¾²Ì¬Ò³Ãæ¼äµÄ¹ØÁªºÍÁ´½ÓÈçºÎ±£³ÖÍêÕû£»
ÌرðÊÇÔÚÒ³ÃæƵ·±¸üС¢Ð޸ġ¢»òɾ³ýµÄÇé¿öÏ£»
Ïñ°¢Àï°Í°ÍµÄÒ³ÃæҲȫ²¿ÊÇhtmlµÄ£¬¹À¼ÆÓõÄÊǵØÖ·Ó³ÉäµÄ¹¦ÄÜ
¹ØÓÚµØÖ·Ó³Éä¿É²Î¿¼£ºhttp://www.easewe.com/Article/ShowArticle.aspx?article=131
¿ÉÒÔ¿´¿´Õâ¸öÒ³Ã棬·ÖÎöÒ»ÏÂËûµÄ“¾º¼Ûµ¹¼Æʱ”¹¦ÄÜ
http://info.china.alibaba.com/news/subject/v1-s5011580.html?head=top4&Bidding=home5
ASP.NetÉú³É¾²Ì¬HTMLÒ³
ÔÚAspÖÐʵÏÖµÄÉú³É¾²Ì¬Ò³Óõ½µÄFileSystemObject¶ÔÏó!
ÔÚ.NetÖÐÉæ¼°´ËÀà²Ù×÷µÄÊÇSystem.IO
ÒÔÏÂÊdzÌÐò´úÂë ×¢:´Ë´úÂë·ÇÔ­´´!²Î¿¼±ðÈË´úÂë
CODE:
//Éú³ÉHTMLÒ³
public static bool WriteFile(string strText,string strContent,string strAuthor)
{
string path = HttpContext.Current.Server.MapPath("/news/");
Encoding code = Encoding.GetEncoding("gb2312");
// ¶ÁÈ¡Ä£°åÎļþ
string temp = HttpContext.Current.Server.MapPath("/news/text.html");
StreamReader sr=null;
StreamWriter sw=null;
string str="";
try
{
sr =


Ïà¹ØÎĵµ£º

ASP.NETÖÐÑéÖ¤¿Ø¼þµÄʹÓÃ


Ç°ÑÔ£º
    Ç°¼¸ÈÕ£¬ÎÞÄÎÓÃJSÅжϿؼþµÄÓÐЧÐÔ£¬·¢ÏÖµÄÈ·ÊÇÒ»¼þ·ÑÁ¦¡¢·ÑÉñµÄÊÂÇ飡ÌرðÊÇÕë¶ÔÓʼþ¸ñʽ¡¢ÓÊÕþ±àÂëµÈµÄ¹ØÓÚÕýÔò±í´ïʽµÄJSÑéÖ¤£¨ÆäÖÐÉæ¼°ÕýÔò±í´ïʽµÄ±È½ÏµÈ£¬½Ï·³~£©¡£Æäʵ¶ÔÓÚÕâЩ³£ÓõĿؼþÓÐЧÐÔÑéÖ¤£¬ÔÚAsp.NetÖÐÓе¥¶ÀµÄÑéÖ¤¿Ø¼þ¿É¹©Ê¹Óá£ËûÃÇ¿ÉÒÔÂú×ãÒ»°ãµÄ£¬ÖîÈç·Ç¿Õ£¬·¶Î§¡¢±È½ÏµÈµÄÑé ......

ASP.NET¸ßÊÖÀ´¿´Ï°¡

ÎÒÏë×öÒ»¸ö¶àÖ¸±ê¶¯Ì¬²éѯ£¬ÇëÎÊÄÄλÐÖµÜ×ö¹ý£¬°ï¸ö棡¾ßÌåÒªÇóÊÇ:ÎÒ¿ÉÒÔËæÒâÑ¡ÔñÊý¾Ý¿â±íÖеÄÈκÎÒ»¸ö»ò¶à¸ö×ֶΣ¬È»ºó°ÑËûÃDzéѯ³öÀ´£¡ÎÒ»á×öµ¥Ö¸±í²éѯµÄ£¬µ«ÏÖÔÚ¹¦ÄÜÒªÒªÇó¶àÖ¸±ê¶¯Ì¬²éѯ£¡»áµÄ°ï¸öæ°¡@£¡¸Ðл֮ÖÁ£¡
ÀýÈçÎÒÏë²éÊý¾Ý¿â±íÖеĠ Óû§±àºÅ ÐÕÃû »òÕßÓû§±àºÅ ÐÕÃû Ê¡·Ý  ÊÕÈë  ²¢°Ñ¶ÔÓ¦µ ......

ʹÓÃASP.Net FormsģʽʵÏÖWebServiceÉí·ÝÑéÖ¤

ʹÓÃASP.Net FormsģʽʵÏÖWebServiceÉí·ÝÑéÖ¤
    ÔÚ°²È«ÐÔÒªÇó²»ÊǺܸߵÄASP.Net³ÌÐòÖУ¬»ùÓÚFormsµÄÉí·ÝÑéÖ¤ÊǾ­³£Ê¹ÓõÄÒ»ÖÖ·½Ê½£¬¶øÈç¹ûÐèÒª¶ÔWebService½øÐÐÉí·ÝÑéÖ¤£¬×î³£ÓõĿÉÄÜÊÇ»ùÓÚSoap ±êÍ·µÄ×Ô¶¨ÒåÉí·ÝÑéÖ¤·½Ê½¡£Èç¹û¶ÔÁ½Õß×öһϱȽϵĻ°£¬ÏÔÈ»£¬»ùÓÚFormsµÄÑéÖ¤·½Ê½¸ü¼Ó·½±ãÒ×Óã¬ÄÜ·ñ½«F ......

ASP.NETÖеÄͼƬÉÏ´«

protected void Button3_Click(object sender, EventArgs e)
    {
        //¶¨Òå±äÁ¿,ÅжÏÊÇ·ñÓÐͼƬÉÏ´«
        bool fileIsValid = false;
        //Èç¹ûÓÐͼƬÉÏ´«,ÅжÏÆä¸ñʽ
&nbs ......

asp.net+jquery+xmlʵÏÖ×î¼òµ¥µÄÁÄÌìÊÒ

×î½üÔÚsina¿´nbaµÄÎÄ×ÖÖ±²¥µÄʱºò£¬¶ÔÍøÕ¾ÓÒϽǵÄÄÇÒ»¸öÁÄÌì´°¿Ú²úÉúÐËȤ£¬¾Í¾ö¶¨×Ô¼ºÒ²×öÒ»¸ö¡£
    ÉÏÍø²é²é×ÊÁÏ£¬ÕâÑùµÄÁÄÌìÊÒÎ޷ǾÍÊÇÓû§ÊäÈëÊý¾Ý´«µ½·þÎñÆ÷±£´æ£¬È»ºóÓû§Ò³ÃæÔÙʵʱµØ´ÓÊý¾Ý¿âÈ¡³öÊý¾Ý£¬ÏÔʾÔÚÒ³ÃæÉÏ£¬¼´¿ÉÍê³ÉÒ»´ÎÁÄÌì²Ù×÷¡£
   Ê×ÏÈÎÒ¶¨ÒåÁËÒ»¸öxmlÎļþ£¬ÓÃÓÚ±£´æÓû§ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ