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

ASP.NET³£ÓÃÓï¾ä1

1.//µ¯³ö¶Ô»°¿ò.µã»÷תÏòÖ¸¶¨Ò³Ãæ
Response.Write(&quot; <script>window.alert('¸Ã»áԱûÓÐÌá½»ÉêÇë,ÇëÖØÐÂÌá½»£¡')
</script>&quot;);
Response.Write(&quot; <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>&quot;);
2.//µ¯³ö¶Ô»°¿ò
Response.Write(&quot; <script language='javascript'>alert('²úÆ·Ìí¼Ó³É¹¦£¡')
</script >&quot;);
3.//ɾ³ýÎļþ
string filename =&quot;20059595157517.jpg&quot;;
pub.util.DeleteFile(HttpContext.Current.Server.MapPath(&quot;../file/&quot;)
+filename);
4.//°ó¶¨ÏÂÀ­Áбí¿òdatalist
System.Data.DataView dv=conn.Exec_ex(&quot;select -1 as code,'ÇëÑ¡Ôñ¾­ÓªÄ£Ê½'
as content from dealin union select code,content from dealin&quot;);
this.dealincode.DataSource=dv;
this.dealincode.DataTextField=&quot;content&quot;;
this.dealincode.DataValueField=&quot;code&quot;;  
this.dealincode.DataBind();
this.dealincode.Items.FindByValue(dv[0][&quot;dealincode&quot;].ToString
()).Selected=true;
5.//ʱ¼äÈ¥ÃëÏÔʾ
<%# System.DateTime.Parse(DataBinder.Eval
(Container.DataItem,&quot;begtime&quot;).ToString()).ToShortDateString()%>
6.//±êÌâ´øÁ´½Ó
<%# &quot; <a class=\&quot;12c\&quot; target=\&quot;_blank\&quot;
href=\&quot;http://www.51aspx/CV/_&quot;+DataBinder.Eval
(Container.DataItem,&quot;procode&quot;)+&quot;.html\&quot;>&quot;+
DataBinder.Eval(Container.DataItem,&quot;proname&quot;)+&quot; </a>&quot;%>
7.//ÐÞ¸ÄתÏò
<%# &quot; <A href=\&quot;editpushpro.aspx?id=&quot;+DataBinder.Eval
(Container.DataItem,&quot;code&quot;)+&quot;\&quot;>&quot;+&quot;ÐÞ¸Ä
&quot;+&quot; </A>&quot;%>
8.//µ¯³öÈ·¶¨°´Å¥
<%# &quot; <A id=\&quot;btnDelete\&quot; onclick=\&quot;return confirm('ÄãÊÇ·ñ
È·¶¨É¾³ýÕâÌõ¼Ç¼Âð?');\&quot; href=\&q


Ïà¹ØÎĵµ£º

asp.net ¸öÈËÏîÄ¿ÒÉÄÑ×ܽá


ѧasp.net²»ÊǺܾÃ,×öÁËÒ»¸ö OA µÄÏîÄ¿,Óöµ½ºÜ¶àÎÊÌâ,ÔÚ´ËMarkÒ»ÏÂ,ÕâЩ¶¼ÊÇÏîÄ¿Öо­³£Óöµ½µÄÎÊÌâ,ÎÒËѼ¯ÍøÉϵĽâ¾ö·½°¸,×öÁËÒ»¸öСµÄ×ܽá.Ò²ÈÃÓöµ½Í¬ÑùÎÊÌâµÄITѧ×ÓÓÐЩ°ïÖú.
   ×¢: ÈËÈËΪÎÒ,ÎÒΪÈËÈË!
1¡¢½â¾öÁË framework2.0 ¼Ü¹¹Ï ×ÓÒ³ ÄÚÈÝ ÒýÓÃupdatepanel µ¼Ö ajax¿Ø¼þ ¾¯¸æΪ:δ֪ԪËØ,´úÂëÅÅ°æÎÉ ......

PHP VS ASP.NET


PHP VS ASP.NET
²©¿Í·ÖÀà: ÊÕ»ñ»ýÀÛ
bruce·¢±íÓÚËÄÔ 14 2009, 04:42 ÏÂÎç
        PHPºÍASP.NETÔÚ±¾ÖÊÉÏÊÇÓкܴó²»Í¬µÄ£¬PHP³£±»Ó¦Óõ½¹¦Ä̶ܹ¨µÄÍøÕ¾¹¹½¨ÉÏ£¬ÀýÈçÁôÑÔ°å¡¢ÐÂÎÅ·¢²¼¡¢ÂÛ̳ºÍͶƱµÈ£¬ÕâЩ¹¦ÄÜÊÇ¿ìËÙ½¨Õ¾±Ø±¸µÄ£¬×Ô¶¨Ò帴ÔÓµÄÉÌÒµÁ÷³Ì²»¶à£¬Òò´ËÍø·ÉÏÓÐÐí¶àÏֳɵ ......

asp.netÁ´½ÓAccessÊý¾Ý¿â×Ö·û´®ÕýÈ··½·¨

ÔÚweb  configÖР ×÷ÈçÏÂÅäÖãº
<connectionStrings>
    <add name="ydycon" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=|DataDirectory|ydy.mdb" providerName="System.Data.OleDb"/>
 
  </connectionStrings>
ÔÚ.netÎļþÖÐÓ¦ÓÃÁ´½Ó ......

ASP.NET FileUploadÓ¦ÓÃʵÀý

Default.aspx:
<%@ Page Language="C#" AutoEventWireup="true" 
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" ......

ÔÚASP.NETÖÐÏÂÔØÎļþ

//TransmitFileʵÏÖÏÂÔØ
    protected void Button1_Click(object sender, EventArgs
e)
    {
        /*
       
΢ÈíΪResponse¶ÔÏóÌṩÁËÒ»¸öеķ½·¨TransmitFileÀ´½â¾öʹÓÃResponse.BinaryWrite
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ