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

asp.net ͼƬÊý¾Ý¿â´æ´¢Ïê½â£¨Àý×ÓÍêÕû°æ£©

asp.net ͼƬÊý¾Ý¿â´æ´¢Ïê½â£¨Àý×ÓÍêÕû°æ£©
 
asp.net ͼƬÊý¾Ý¿â´æ´¢Ïê½â£¨Àý×ÓÍêÕû°æ£©
°´ÕÕÒÔϵijÌÐò´úÂ룬¾­¹ý±¾ÈËÔÚvs2005ÉϵIJâÊÔ£¬ÐÞ¸Äʵ¼Ê¿ÉÒÔÔËÐеĴúÂëÈçÏ£º
6¸öÎļþ
ÊÇÔÚÒ»¸ö·¢²¼¸ùĿ¼ÏµÄtestÎļþ¼ÐÖвâÊÔͨ¹ýµÄ¡£
SQL½Å±¾ÈçÏ£º
CREATE TABLE [dbo].[image] (
[image_id] [bigint] IDENTITY (1, 1) NOT NULL ,
[image_data] [image] NULL ,
[image_content_type] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[image_description] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[image_size] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
 
ÍøÉϵĽ̳ÌÈçÏ£º
ǰ̨shangchuan.aspx´úÂë:
<%@ Page language="c#" Codebehind="shangchuan.aspx.cs" AutoEventWireup="false" Inherits="hualong.allknow.shangchuan" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
 <HEAD>
  <title>shangchuan</title>
  <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
  <meta name="CODE_LANGUAGE" Content="C#">
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
 </HEAD>
 <BODY bgcolor="#ffffff">
  <FORM ENCTYPE="multipart/form-data" RUNAT="server" ID="Form1">
   <TABLE RUNAT="server" WIDTH="700" ALIGN="left" ID="Table1" cellpadding="0" cellspacing="0"
    border="0">
    <TR>
     <TD>ÉÏ´«Í¼Æ¬(Ñ¡ÔñÄãÒªÉÏ´«µÄͼƬ)</TD>
     <TD>
      <INPUT TYPE="file" RUNAT="server" STYLE="WIDTH:320px" ACCEPT="text/*" NAME="up_file" id="up_file">
     </TD>
    </TR>
    <TR>
     <TD>


Ïà¹ØÎĵµ£º

asp.net³£Óôú碼


1.µ¯³ö¶Ô»°¿ò.
  a. µ¯³ö¶Ô»°¿ò£º
 
C# codeClientScript.RegisterStartupScript(this.GetType(), "",
"<script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')</script>");
  b.תÏòÖ¸¶¨Ò³Ãæ
 
C# code Response.Write("
<script>window.location='http://www. ......

asp.net¿Í»§¶Ë´«µÝ²ÎÊýÐĵÃ

 
¿Í»§¶Ë´«ËÍÊý¾Ýµ½·þÎñÆ÷¶ËÓÐÈýÖÖ·½·¨£º
1.form
2.querystring
3.cookie
ÀûÓÃÕâЩ·½Ê½È¡µÃµÄÊý¾ÝÔÚ·þÎñÆ÷¶Ë¶¼ÊÇ×ֵ伯ºÏ,Èç¹ûÒª¾«È·È¡µ½Ä³¸ö¼¯ºÏµÄÖµ£¬ÔòÖ±½ÓʹÓöÔÓ¦µÄ¼¯ºÏµÄÃû³Æ£¬ÈýÖÖ·½Ê½¶ÔÓ¦µÄ¼¯ºÏÈçÏ£º
1.form:request.form
2.querystring:request.querystring
3.cookie:request.cookie
ÀûÓÃrequest.p ......

ASP.NETÖÐGridView·ÖÒ³

·½·¨Ò»:
н¨Ò»¸öÒ³ÃæÈ»ºóÔÚÒ³ÃæÍÏÒ»¸öGridView¿Ø¼þÔÚÊôÐÔ¿òÖÐÉèÖÃGridView¿Ø¼þµÄAllowPaingÊôÐÔΪTrue È»ºóÔÙÉèÖÃGridViewµÄPageSizeÊôÐÔ,Ô´ÎļþÈçÏÂ:
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames ="classId" CellPadding="5" OnRowDeleting="GridView1_RowDeleting" All ......

ASP PHP ASP.net Éú³É¾²Ì¬Ò³ÃæµÄ·½·¨


Ëæ ×ÅÍøÕ¾·ÃÎÊÁ¿µÄ¼Ó´ó£¬Ã¿´Î´ÓÊý¾Ý¿â¶ÁÈ¡¶¼ÊÇÒÔЧÂÊ×÷Ϊ´ú¼ÛµÄ£¬ºÜ¶àÓÃACCESS×÷Êý¾Ý¿âµÄ¸ü»áÉîÓÐÌå»á£¬¾²Ì¬Ò³¼ÓÔÚËÑË÷ʱ£¬Ò²»á±»ÓÅÏÈ¿¼ÂÇ¡£»¥ÁªÍøÉÏÁ÷ ÐеÄ×ö·¨Êǽ«Êý¾ÝÔ´´úÂëдÈëÊý¾Ý¿âÔÙ´ÓÊý¾Ý¿â¶ÁÈ¡Éú³É¾²Ì¬Ã棬ÕâÑùÎÞÐμä¾Í¼Ó´óÁËÊý¾Ý¿â¡£½«ÏÖÓеÄASPÒ³Ö±½ÓÉú³É¾²Ì¬Ò³£¬½«»á½ÚÊ¡ºÜ¶à¡£
ÏÂÃæµÄÀý×ÓÊǽ«¡¢index.asp?i ......

ASP.NETÈý²ã¼Ü¹¹µÄ˵Ã÷¼°Èý²ã¼Ü¹¹µÄÌصã

ASP.NETÈý²ã½á¹¹ËµÃ÷
ÍêÉƵÄÈý²ã½á¹¹µÄÒªÇóÊÇ:Ð޸ıíÏÖ²ã¶ø²»ÓÃÐÞ¸ÄÂß¼­²ã,ÐÞ¸ÄÂß¼­²ã¶ø²»ÓÃÐÞ¸ÄÊý¾Ý²ã¡£·ñÔòÄãµÄÓ¦ÓÃÊDz»ÊǶà²ã½á¹¹,»òÕß˵ÊDzã½á¹¹µÄ»®·ÖºÍ×éÖ¯ÉÏÊDz»ÊÇÓÐÎÊÌâ¾ÍºÜÄÑ˵.²»Í¬µÄÓ¦ÓÃÓв»Í¬µÄÀí½â£¬ÕâÖ»ÊÇÒ»¸ö¸ÅÄîµÄÎÊÌ⣮
Àí½âASP.NETÈý²ã½á¹¹——ΪʲôҪ·ÖÈý²ã£¿
ÎÒÃÇÓÃÈý²ã½á¹¹Ö÷ÒªÊÇÊ¹Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ