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

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


Ïà¹ØÎÊ´ð£º

WapµÄÒ»¸ö¾ÞÍ·ÌÛµÄÎÊÌ⣡ - .NET¼¼Êõ / ASP.NET

ÎÒÓÃasp.net¿ª·¢wapÕ¾µã£¬Íê³ÉºóÈ¥http://validator.w3.org/ÕâÀïÑéÖ¤ÎÒµÄWapÒ³ÃæÊÇ·ñ±ê×¼£¬ÆäËüÎÊÌⶼ¸ÄºÃÁË£¬
¾ÍÊ£ÕâÒ»¸ö´íÎóÁË£¬°´×ÖÃæÒâ˼Àí½âÊÇ˵nameÊôÐÔÒÑ´æÔÚ£¬ÀàËÆÕâÑùµÄ´íÎó»¹Óв»ÄÜÓÃborder ,align,sizeµ ......

asp³õѧÎÊÌâ - Web ¿ª·¢ / ASP

Microsoft JET Database Engine '80040e07' 
±ê×¼±í´ïʽÖÐÊý¾ÝÀàÐͲ»Æ¥Åä¡£ 
\wwwroot\update.asp, line 20
--------------------------------------------------------------------------------
Ho ......

asp.net ÏÂÔØ - .NET¼¼Êõ / ASP.NET

sqlserverµÄÊý¾Ý¿â£¬×Ö¶ÎÊÇimageÀàÐ͵ġ£Ôõôд´úÂ룬ÔÚÒ³ÃæÖеã»÷¡°ÏÂÔØ¡±¾ÍÄÜ´ò¿ªÄǸöÏÂÔضԻ°¿ò£¿
PS£ºOracleLob ÔÚsqlserverÀïÊÇʲô£¿
Response.Redirect("test.jpg")

ÒýÓÃ
Response.Redirect( ......

¹ØÓÚSqlµÄÎÊÌâ - .NET¼¼Êõ / ASP.NET

½«Ò»¸ö²éѯÓï¾ä¸³¸øÒ»¸ö±äÁ¿£¬ÈçÏ£º
DECLARE @STR NVARCHAR(MAX)
SET @STR='SELECT * from SALE_PROD'
ÔõôÑù²ÅÄÜÖ´ÐÐËüÄØ£¿
Çë¸ßÊÖ£¬ÈÊÐÖ£¬ÏÀ½ã°ï°ïæ°¡


¶àл£¬¿ÉÒÔÀ²£¬¸ßÊÖ°¡

Ö±½ÓÖ´ÐоÍÐÐÁË

exec ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ