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

ASP.NET C# Éú³É¾²Ì¬Ò³Ãæ¼òµ¥·½·¨

ASP.NET C# Éú³É¾²Ì¬Ò³Ãæ¼òµ¥·½·¨
 
//Ô´ÂëÊÇÌæ»»µôÄ£°åÖеÄÌØÕ÷×Ö·û
            string mbPath = Server.MapPath("template.html");
            Encoding code = Encoding.GetEncoding("gb2312");
            StreamReader sr = null;
            StreamWriter sw = null;
            string str = null;
            //¶ÁÈ¡
            try
            {
                sr = new StreamReader(mbPath, code);
                str = sr.ReadToEnd();
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                sr.Close();
            }
    &n


Ïà¹ØÎĵµ£º

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

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

ASP.NETÒ³Ãæˢз½·¨×ܽá

µÚÒ»£º
private void Button1_Click( object sender, System.EventArgs e ) { Response.Redirect( Request.Url.ToString( ) ); } µÚ¶þ£º
private void Button2_Click( object sender, System.EventArgs e ) { Response.Write( " < script language=javascript>window.location.href=document.URL; < /script&g ......

ѧϰ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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ