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

asp.net¶ÔͼƬµÄ¶Áд

 Ð´Í¼Æ¬c:\1.jpgµ½±ícinfoÖÐ
private static void AddCinfo()
    {
        string strSql = "insert into cinfo (srvtitle,csttitle,introduction,logo) values
(@srvtitle,@csttitle,@introduction,@logo)";
        SqlParameter[] parms =
        {
            new SqlParameter("@srvtitle",SqlDbType.VarChar,30),
            new SqlParameter("@csttitle",SqlDbType.VarChar,30),
            new SqlParameter("@introduction",SqlDbType.NVarChar,500),
            new SqlParameter("@logo",SqlDbType.Image)
        };
        parms[0].Value = "ÂÃÒµ»¥¶¯";
        parms[1].Value = "lyhd";
        parms[2].Value = "¼ò½é";
        string filePath = @"c:\1.jpg";
        FileStream fs = File.OpenRead(filePath);
        byte[] content = new byte[fs.Length];
        fs.Read(content, 0, content.Length);
        fs.Close();
        parms[3].Value = content;
        DBHelper.ExecuteNonQuery(CommandType.Text, strSql, parms);
    }
¶ÁȡͼƬµÄÒ³Ãæ test.aspx
protected void Page_Load(object sender, EventArgs e)
    {
        string strSql = "select * from cinfo where id=1";
        SqlDataReader reader=DBHelper.ExecuteReader(CommandType.Text, strSql, null);
 


Ïà¹ØÎĵµ£º

ASP.NET ³ÉÔ±×ʸñÀàºÍ˵Ã÷


Membership
Ìṩ³£¹æ³ÉÔ±×ʸñ¹¦ÄÜ¡£
´´½¨Ò»¸öÐÂÓû§¡£
ɾ³ýÒ»¸öÓû§¡£
ÓÃÐÂÐÅÏ¢À´¸üÐÂÓû§¡£
·µ»ØÓû§ÁÐ±í¡£
ͨ¹ýÃû³Æ»òµç×ÓÓʼþÀ´²éÕÒÓû§¡£
ÑéÖ¤£¨Éí·ÝÑéÖ¤£©Óû§¡£
»ñÈ¡Áª»úÓû§µÄÈËÊý¡£
ͨ¹ýÓû§Ãû»òµç×ÓÓʼþµØÖ·À´ËÑË÷Óû§¡£
MembershipUser
ÌṩÓйØÌض¨Óû§µÄÐÅÏ¢¡£
»ñÈ¡ÃÜÂëºÍÃÜÂëÎÊÌâ¡£
¸ü¸ÄÃÜÂë ......

asp.net »ØÖ´(postback)ºó¶¨Î»ÎÊÌâ

ÓÃasp.net µÄ»ØÖ´(postback)ÊǺÜˬ£¬µ«ÈôÒ»¸ö³¤³¤µÄÒ³Ãæ£¬Ò»»ØÖ´ºó£¬Ìøµ½ÁËÒ³Ê×£¬ÌåÑ鲻ˬ¡£ µ«ÔÚasp.netµÄpageÒ³ÃæÀïÃæÓÐÒ»¸öºÜˬµÄÊôÐÔPage.MaintainScrollPositionOnPostBack ÊôÐÔ£¬ÉèΪtrue¼´¿É¡£ »ñÈ¡»òÉèÖÃÒ»¸öÖµ£¬¸Ãֵָʾ»Ø·¢ºóÊÇ·ñ½«Óû§·µ»Øµ½¿Í»§¶Ëä¯ÀÀÆ÷ÖеÄͬһλÖᣠ<%@ Page Title="" Lang ......

asp.net form±êǩǶÌ× Ìá½»Ò³ÃæµÄ½â¾ö·½·¨


Ô­ÌûµØÖ·:http://blog.cnria.com/post/aspnet-form-e5b58ce5a597-e68f90e4baa4e9a1b5e99da2e79a84e8a7a3e586b3e696b9e6b395-from-e5b58ce5a597-aspnet-e8a1a8e58d95.aspx
Õâ¸öÎÊÌâµÄÔ­ÒòÆäʵ²¢²»ÊÇasp.net ÔËÐлúÖÆµÄÔ­Òò£¬¶øÊÇÒòΪÔÚhtmlÖб¾Éí¾Í²»ÔÊÐíform±êǩǶÌ×ʹÓã¬ÎÒÊÔ¹ýdocument.getelementbyid("search&q ......

ÓÅÐãASP.NET³ÌÐòÔ±µÄÐÞÁ¶Ö®Â·


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

ASP.NETÒ³Ãæ¶ÔÏó

 Ò»¡¢Page Àà
      Page ÀàÓëÀ©Õ¹ÃûΪ .aspx µÄÎļþÏà¹ØÁª£»ÕâЩÎļþÔÚÔËÐÐʱ±»±àÒëΪ Page ¶ÔÏ󣬲¢±»»º´æÔÚ·þÎñÆ÷ÄÚ´æÖС£Èç¹ûÊÇʹÓôúÂëÒþ²Ø¼¼Êõ´´½¨ Web ´°ÌåÒ³£¬Çë´Ó¸ÃÀàÅÉÉú¡£
Àý£º£¨public partial class _Default : System.Web.UI.Page£©
      Page ¶ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ