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

Asp.net³£ÓõÄ51¸ö´úÂë(·Ç³£ÊµÓÃ)


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


Ïà¹ØÎĵµ£º

ASP.NET Excelµ¼³ö(¶¯Ì¬Éú³É)½â¾ö·½°¸


ASP.NET Excelµ¼³ö(¶¯Ì¬Éú³É)½â¾ö·½°¸
£¨Ò»£©¡¢·þÎñÆ÷¶ËµÄexcel×é¼þÀ´Éú³ÉÄ¿±êExcel
  ¼´ÔÚºǫ́µ÷ÓÃexcel×é¼þ£¬À´¶ÁÈ¡Ä£°å£¬Ìîдģ°åµÄ¡£¾ÍÊǺǫ́Æô¶¯ExcelÀ´´¦ÀíµÄ£¬ÔÚ½ø³Ì¹ÜÀíÆ÷Àï¿ÉÒԲ鿴µ½ËüµÄ½ø³Ì¡£
  Óŵ㣺Excel´¦Àí¹¦Äܷḻ£¬¶àÑù£¬¿ÉÒÔÍê³ÉÒ»ÇеÄExcelÎļþ´¦Àí¡£
  ȱµã£º·þÎñÆ÷¶ËҪװExcel ......

asp.Net µ÷Óà SAP RFC, È¡µÃSAPÊý¾Ý

¶ÁÈ¡SAPÊý¾Ý, ´ÓÁ½·½ÃæÀ´×ö
1) ×öÒ»¸öC# app ÔÚ·þÎñÆ÷ÉÏ"ÈÎÎñ¼Æ»®"ÿÌì¶ÁÈ¡. ±ØÐëÔÚ·þÎñÆ÷ÉÏÖ´ÐÐ, ·ñÔò¿ÉÄÜ´ÓSAP¶ÁµÄºº×ÖÊÇÂÒÂë.
2) ¶ÔÓÚҪʵʱ¶ÁÈ¡µÄ, ×ö³ÉÒ³Ãæ»òweb Service·ÅOAÉÏ.
ÏÂÃæÊÇÒ³ÃæʵÏֵIJ¿·Ö´úÂë.
using System.Data.SqlClient;  //Á¬½ÓSQL SERVER
using System.Data.OleDb;   &n ......

ѧϰASP.NET + MVC£¨ËÄ£©

Ò».ÕªÒª
¡¡¡¡±¾ÎĽ²½âÔÚActionÖÐÏòView´«µÝModelµÄ¼¸ÖÖ·½Ê½.ÒÔ¼°View»ñÈ¡ModelÒÔºóÈçºÎ±àдÏÔʾÂß¼­.»¹ÏêϸµÄ½éÉÜÁËASP.NET MVC¿ò¼ÜÌṩµÄHtml HelperÀàµÄʹÓü°ÈçºÎΪHtml HelperÀàÌí¼Ó×Ô¶¨ÒåÀ©Õ¹·½·¨.
¡¡¡¡¶þ.³ÐÉÏÆôÏÂ
¡¡¡¡ÉÏһƪÎÄÕÂÖÐÎÒÃÇѧϰÁËController´¦ÀíÒ»´ÎÇëÇóµÄÈ«¹ý³Ì.ÔÚControllerµÄActionÖÐ, »á´«µÝÊý¾Ý¸ ......

ѧϰASP.NET + MVC£¨Èý£©

±¾ÎÄʾÀýÔ´´úÂë»òËزÄÏÂÔØ
¡¡¡¡Ò».ÕªÒª
¡¡¡¡Ò»¸öUrlÇëÇó¾­¹ýÁËRouting´¦Àíºó»áµ÷ÓÃControllerµÄAction·½·¨. ÖмäµÄ¹ý³ÌÊÇÔõÑùµÄ? Action·½·¨Öзµ»ØActionResult¶ÔÏóºó,ÈçºÎµ½´ïViewµÄ? ±¾ÎĽ«½²½âControllerµÄ»ù±¾Ó÷¨,¡¡ÉîÈë·ÖÎöControllerµÄÔËÐлúÖÆ, ²¢ÇÒÌṩÁË´´½¨ËùÓÐÀàÐÍActionµÄ´úÂë. ÖµµÃѧϰASP.NET MVCʱ²Î¿¼. ......

ASP.NETÔõÑù½«×¢²áÐÅϢдÈëAccess

רßøÄãдÁ˸ö£¬Ä㿴һϣ¬ËµÃ÷ÏÂÕâÀïûÓп¼Âǵ½Êý¾ÝµÄÓÐЧÐÔ£¬ÐèÒªµÄ»°×Ô¼º¼ÓÉÏ¡£
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebCon ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ