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

asp.net C#ÃüÃû²ÎÊýSqlParameterÏê½â

DBHelper:
         /// <summary>
        /// Ö´Ðвéѯ
        /// </summary>
        /// <param name="sql">ÓÐЧµÄselectÓï¾ä</param>
        /// <returns>·µ»ØSqlDataReader</returns>
        public static SqlDataReader ExecuteReader(string sql)
        {
            SqlConnection con = new SqlConnection(constring);
            con.Open();
            SqlCommand cmd = new SqlCommand(sql, con);
            return cmd.ExecuteReader(CommandBehavior.CloseConnection);
        }
        /// <summary>
        /// Ö´Ðвéѯ´ø²ÎÊý
        /// </summary>
        /// <param name="sql">ÓÐЧµÄselectÓï¾ä</param>
        /// <returns>·µ»ØSqlDataReader</returns>
        public static SqlDataReader ExecuteReader(string sql,SqlParameter parameter)
        {
            SqlConnection con = new SqlConnection(constring);
            con.Open();
            SqlCommand cmd = new SqlCommand(sql, con);
            cmd.Parameters.Add(parameter);
&nbs


Ïà¹ØÎĵµ£º

ASP.NET»ñÈ¡·þÎñÆ÷ÐÅÏ¢

ASP.NET»ñÈ¡·þÎñÆ÷ÐÅÏ¢
Label1.Text = "·þÎñÆ÷Ãû³Æ£º"+Server.MachineName;//·þÎñÆ÷Ãû³Æ
                Label2.Text = "·þÎñÆ÷IPµØÖ·£º" + Request.ServerVariables["LOCAL_ADDR"];//·þÎñÆ÷IPµØÖ·
      & ......

C#ɾ³ýXML½áµãµÄ¼òµ¥Àý×Ó

½ÓÉÏһƪ
ɾ³ýÔ­genreÊôÐÔ£¬É¾³ýleixing=loveµÄËùÓнáµã¡£
1 Ô­xmlÎļþ bookstore.xml
<?xml version="1.0" encoding="gb2312"?>
<bookstore>
  <book genre="love" ISBN="1234123">
    <title>who am i </title>
    <author>who</aut ......

40ÌõASP.NET¿ª·¢ÖªÊ¶

1¡¢ÔÚcompilation Ï£¬ÇëÉèÖÃdebug=false £¬ÈçÏ£º
default Language="c#" debug="false">
2¡¢ÇëʹÓÃServer.Transfer´úÌæResponse.Redirect¡£
3¡¢Ê¹ÓÃValidator¿Ø¼þ£¬ÇëÒª¾­³£¼ì²éPage.IsValid¡£
4¡¢ÇëʹÓÃforeachÑ­»·£¬¶ø²»ÊÇΪ×Ö·û´®µü´úÑ­»·¡£
5¡¢ÇëʹÓÿͻ§¶ËÑéÖ¤·½Ê½(²»ÒªÃ¿´Î¶ ......

asp.netʹÓþ«ÁéÄ«ÁÖÌáʾÕÒ²»µ½Ö¸¶¨Ä£¿é

´°Ìå´úÂë:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using AgentObjects;
using SpeechLib;
using System.Web;
using System.Threading;
using System.Text.RegularExpressio ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ