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

Asp.netÉú³É¾²Ì¬Ò³ÃæÔ­Àí

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.Text;
namespace menutest
{
///
/// Conn µÄժҪ˵Ã÷¡£
///
// by kyo
// ´ËÀàÊÇÉú³É¾²Ì¬ÍøÒ³µÄС³ÌÐò
public class Conn
{
public Conn()
   {
   }
public static bool WriteFile(string strText,string strContent,string strAuthor)
   {
string path = HttpContext.Current.Server.MapPath("/menutest/");
    Encoding code = Encoding.GetEncoding("gb2312");
// ¶Áȡģ°åÎļþ
string temp = HttpContext.Current.Server.MapPath("/menutest/news/text.html");
    StreamReader sr=null;
    StreamWriter sw=null;
string str="";
try
    {
     sr = new StreamReader(temp,code);
     str = sr.ReadToEnd(); // ¶ÁÈ¡Îļþ
    }
catch(Exception exp)
    {
     HttpContext.Current.Response.Write(exp.Message);
     HttpContext.Current.Response.End();
     sr.Close();
    }
//string htmlfilename=DateTime.Now.ToString("yyyyMMddHHmmss")+".html";
string htmlfilename="kyo.html";
// Ìæ»»ÄÚÈÝ
// Õâʱ,Ä£°åÎļþÒѾ­¶ÁÈëµ½Ãû³ÆÎªstrµÄ±äÁ¿ÖÐÁË
    str = str.Replace("ShowArticle",strText); //Ä£°åÒ³ÖеÄShowArticle
    str = str.Replace("biaoti",strText);
    str = str.Replace("content",strContent);
    str = str.Replace("author",strAuthor);
// дÎļþ
try
    {
  &#


Ïà¹ØÎĵµ£º

ASP.NETµÄACCESSÊý¾Ý¿â²Ù×÷Àà

//private string datapatch = ConfigurationSettings.AppSettings["acessconn"];//Êý¾Ý¿âµØÖ· 
private string datapatch = "db/global.asa";//Êý¾Ý¿âµØÖ· 
/// 
/// È¡µÃdataset 
// 
/// ²éѯÓï¾ä 
/// 
public DataSet GetDataSet(string Commandtext) 
{&nbs ......

ѧϰASP.NETµÄ»º´æÒÀÀµ»úÖÆ

 ¸ßЧʹÓÃʹÓÃSQL»º´æÒÀÀµ
 
ASP.NET FrameworkÐÂÔöµÄÒ»¸ö·Ç³£Ç¿´óµÄ¹¦ÄÜÊÇSQL»º´æÒÀÀµ¡£¸Ã¹¦ÄÜÔÊÐíµ×²ãÊý¾Ý¿âÖеÄÊý¾ÝÐÞ¸Äʱ£¬×Ô¶¯µØÖØÐÂÔØÈ뻺´æµÄÊý¾Ý¡£
ÔÚʹÓþø¶Ô»º´æ¹ýÆÚ²ßÂÔ»òÕßµ¯ÐÔ»º´æ¹ýÆÚ²ßÂÔʱÓÐÒ»¸öȨºâ£¬¶ÔÓÚÐÔÄܺͳ¾ÉÊý¾ÝµÄȨºâ¡£ÀýÈ磬Èç¹ûÔÚÄÚ´æÖлº´æÊý¾Ý20Ã룬ÔòÕâ20ÃëÄÚÏÔʾµÄÊý¾Ý¿ÉÄÜÊǹ ......

ASP.NET 3.5 MVC ¼Ü¹¹Óëʵս±Ê¼Ç6 HtmlHelper¿Ø¼þ½âÎö

FormExtensionsÀà
FormExtensionsÀàÊÇÒ»¸ö¾²Ì¬À࣬¶¨ÒåÁË3ÖÖÀàÐ͵ÄÀ©Õ¹·½·¨£ºBeginForm¡¢BeginRouteForm¡¢EndForm£»ÔÚʵ¼Ê¿ª·¢ÖУ¬Ò²¿ÉÒÔʹÓÃusingÓï¾ä£¬¶ø²»ÐèҪдEndFormÀ©Õ¹·½·¨¡£
InputExtensionsÀà
InputExtensionsÀඨÒåÁË5ÖÖÀàÐ͵ÄÀ©Õ¹·½·¨£ºCheckBox,Hidden,Password,RadioButton,TextBox.

<field ......

ASP.NET Web »º´æÔöÇ¿ÐÔÄܺͿÉÉìËõÐÔ

 ASP.NET Web »º´æÔöÇ¿ÐÔÄܺͿÉÉìËõÐÔ
¸ÅÀÀ£º
Æ¿¾±ÏÞÖÆÏÔÖø½µµÍ
¾²Ì¬ºÍ¶¯Ì¬ Web »º´æ
±Ø±¸µÄ¹¦ÄÜ£º¹ýÆÚ¡¢Êý¾Ý¿âÒÀÀµ¹ØÏµ¡¢PDF ²¿·ÖÄÚÈÝÒÔ¼°¸ü¶à¹¦ÄÜ
¶ÔÈ«Çò×éÖ¯µÄÌØÊâºÃ´¦
Web »º´æ·þÎñÆ÷Ⱥ¼¯
Ãâ·ÑºÍÉÌÓýâ¾ö·½°¸
 
Contents
ÎÊÌ⣺ASP.NET Æ¿¾±ÏÞÖÆ
½â¾ö·½°¸£ºASP.NET Web »º´æ
Web »º´æÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ