asp.net ÕҿؼþÎÊÌâ - .NET¼¼Êõ / ASP.NET
YCproject.Model.Products product = Session["products"] as YCproject.Model.Products;
ContentPlaceHolder c = (ContentPlaceHolder)Master.FindControl("cphContent");
FileUpload fu = c.FindControl("fuUpLoad") as FileUpload;
if (fu != null)
product.Parameter = fu.FileName;
¸¸¿Ø¼þÕÒµ½ÁË£¬½á¹ûfu»¹ÊÇNull
C# code:
ÎÞÈ˾¹ýÂ𣿣¿
ÄãÊÔÊÔif(fu.FileName!=null)
cphContent²»ÊǾÍÔÚ×Ô¼ºÄÚ²¿Â𣿶øÇÒ±àÒëÆ÷¿ÉÒÔÖ±½Ó¸øÄãÕÒµ½£¬ÓõÄÕÒÈÆµÀmaster£¿
ÉÙÓÃfindcontrol£¬²»ÒªÀÄÓÃfindcontrol¡£ÎÒ¹À¼ÆÄãдµÄÕâÀà´úÂë80%¶¼ÊÇÔ±¾²»ÐèÒªµ÷ÓÃfindcontrol¶øµ÷ÓÃËüµÄ¡£
Ö±½Óµ÷²»µ½£¬ËùÒÔÏÈÈ¥ÕÒ¸¸¿Ø¼þ£¬ÔÙµ½¸¸¿Ø¼þÀïÕÒFileUpLoad
C# code:
<asp:TemplateField HeaderText="²úÆ·ÐòÁкÅ" SortExpression="Id">
<HeaderStyle CssClass="td" />
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# Bind("Id") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField Heade
Ïà¹ØÎÊ´ð£º
C# code:
SqlConnection conn = CsDB.sqlcon();
SqlDataAdapter da = new SqlDataAdapter("select fwCoding from bjmuma_fwCoding where OrderNumber='" + Order + & ......
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp.net
ÊìϤjavascript
ÊìϤCss
ÊìϤajax
ÊìϤsqlserver2005
ÓÐÒ»ÄêµÄÏîÄ¿¾Ñé
¾ßÌåÏîÄ¿ºÍÆäËûµÄ¾Í²»ÔÚÕâдÁË
ÓÐÒâÕßÁªÏµ£º
QQ:359233910
ÒýÓÃ
±¾È˹¤×÷¾ÑéÒ»ÄêÒÔÉÏ
ÊìϤasp ......
¾ÍÊÇÒ»¸ö°´Å¥£¬µã»÷Ö®ºó´ò¿ª¶Ô»°¿ò£¬È»ºóѡȡͼƬ¡£¾ÍÕâÑùÉÏ´«¡£¡£
ÔõôʵÏÖ¡£ÔÚÍøÉÏËѵ½ÄÇô¶àµÄ´úÂ룬ȫÊǺܶàµÄÄÇÖÖ£¬²»ÖªµÀ£¬¿´²»ÏÂÈ¥¡£
ËùÒÔÔÚÕâÀïÏëÇë´ó¸ç´ó½ã°ï°ïæ¡£
ʹÓÃ×Ô´øµÄfileupload¿Ø¼þ¿ÉÒÔʵÏÖ ......
´úÂëÈçÏ Çë¸ßÊÖ Ö¸µãÏ лл
ajax_http.js
-------------
function getXMLHTTP() {
var xmlhttp;
if (window.ActiveXObject) {
//IE
try {
......
¸÷λºÃ£¬ÎÒ¸Õ°ÑÒ»¸öASPÍøÕ¾ÉèÖúÃÁË£¬Ò²ÄÜÕý³£·ÃÎÊ¡£µ«ÊÇÔÚÎÒ±¾»úÉϲ»ÄÜ´ò¿ªadmin\login.asp,ËùÒÔÎÞ·¨ÊµÏÖºǫ́¹ÜÀí¡££¨´íÎóÌáʾÎÞ·¨ÕÒµ½ÍøÒ³£¬´úÂë404£¬ÎҵIJÙ×÷ϵͳÊÇwin2000 server)
µ«ÊÇÆæ¹ÖµÄÊÇÔÚ¾ÖÓòÍøµÄÆäËû» ......