ASP.NET½¨Á¢WEBÍøÕ¾Ó¦ÓóÌÐòÖеķþÎñÆ÷´íÎó¡£
ÒÔÒÜϵͳÔËÐкܺõģ¬ÏÖÔÚÁ¬×î¼òµ¥µÄϵͳÔËÐÐÒ²»á³öÏÖÏÂÊö´íÎó£¿
ÕÒ²»µ½·½·¨:¡°Void System.ServiceModel.Diagnostics.EventLogger.UnsafeLogEvent(System.Diagnostics.TraceEventType, System.ServiceModel.Diagnostics.EventLogCategory, System.ServiceModel.Diagnostics.EventLogEventId, Boolean, System.String[])¡±¡£
˵Ã÷: Ö´Ðе±Ç° Web ÇëÇóÆÚ¼ä£¬³öÏÖδ´¦ÀíµÄÒì³£¡£Çë¼ì²é¶ÑÕ»¸ú×ÙÐÅÏ¢£¬ÒÔÁ˽âÓйظôíÎóÒÔ¼°´úÂëÖе¼Ö´íÎóµÄ³ö´¦µÄÏêϸÐÅÏ¢¡£
Òì³£ÏêϸÐÅÏ¢: System.MissingMethodException: ÕÒ²»µ½·½·¨:¡°Void System.ServiceModel.Diagnostics.EventLogger.UnsafeLogEvent(System.Diagnostics.TraceEventType, System.ServiceModel.Diagnostics.EventLogCategory, System.ServiceModel.Diagnostics.EventLogEventId, Boolean, System.String[])¡±¡£
Ô´´íÎó:
Ö´Ðе±Ç° Web ÇëÇóÆÚ¼äÉú³ÉÁËδ´¦ÀíµÄÒì³£¡£¿ÉÒÔʹÓÃÏÂÃæµÄÒì³£¶ÑÕ»¸ú×ÙÐÅϢȷ¶¨ÓйØÒì³£ÔÒòºÍ·¢ÉúλÖõÄÐÅÏ¢¡£
¶ÑÕ»¸ú×Ù:
[MissingMethodException: ÕÒ²»µ½·½·¨:¡°Void System.ServiceModel.Diagnostics.EventLogger.UnsafeLogEvent(System.Diagnostics.TraceEventType, System.ServiceModel.Diagnostics.EventLogCategory, System.ServiceModel.Diagnostics.EventLogEventId, Boolean, System.String[])¡±¡£]
System.Runtime.CompilerServices.RuntimeHelpers.PrepareDelegate(Delegate d) +0
System.AppDomain.add_UnhandledException(UnhandledExceptionEventHandler value) +44
System.ServiceModel.ServiceHostingEnvironment.HookADUnhandledExceptionEvent() +5
Ïà¹ØÎÊ´ð£º
select top 12 * from Product where [id] not in (select top 12 [id] from Product)
ÕâÑù¿ÉÒÔ·ÖÒ³£¬µ«ÊÇÎÒÔÚºóÃæÏë¼Ó¸öÌõ¼þ
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......
asp.net repeater ¿Ø¼þÔõô¿ÉÒÔÈ¡µ½×ӿؼþµÄÖµ£¬ÉèÖöϵãÔÚ ItemDataBound ʼþÔõôûÓÐÓõÄ
Request.Form["name"]
Â¥Ö÷ÄãÒªÔÚ°ÑrepeaterÖÐµÄ Ò»¸öÊôÐÔÉèÖÃһϲÅÄܽøÈëitemdataboundʼþ
¿ÉÒÔ ......
ÎÒÔÚ Page_Load ÀïдÁË
if(!IsPostBack){
GridView1.DataSource=GroupManager.GetGroups();//GetGroups ·µ»ØµÄÊÇ IList<Group>
GridView1.DataBind();
}
¿ÉÎÒÔÚ Submit_Click Àïд´ú ......
ÔÚc#À
ÎÒ×öµÄÊǵײãµÄ²åÈë¡£
ʵÌå²ã£¬Êý¾Ý²ã£¬ÒµÎñ²ãÒѾÓбíµÄÊôÐÔÁË£¬
ҪʵÏÖ½«excel±íÀïµÄÄÚÈݲåÈëµ½ÒÑÓеÄÊý¾Ý¿âµÄijһ±íÖС£
±ÈÈçexcel±íÀïÓÐÊôÐÔA,B,C,D,E
Êý¾Ý¿âÀïµÄ±íµÄÃû×ÖÊÇexcelTable ......