熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

將Asp.net頁面輸出為HTML

2013-11-12 23:38:29  來源: .NET編程 

  c#代碼:

  WebRequest mywebrq;

  WebResponse mywebresp;

  StreamReader sr;

  Streamwriter sw;

  Private void Page_Load(object senderEventArgs e)

  {

  mywebreq=WebRequestCreate(x);

  mywebresp=mywebreqGetResponse();

  sr=new streamReader(mywebrespGetResponsestream());

  strHtml=srReadToEnd();

  sw=FileCreateText(servermappath());

  swwriteling(strHtml);

  swclose();

  ResponsewriteFile(ServerMappath());

  }


From:http://tw.wingwit.com/Article/program/net/201311/11173.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.