05 2011 档案
摘要:原因:如果使用 Response.End、Response.Redirect 或 Server.Transfer 方法,将出现 ThreadAbortException 异常。您可以使用 try-catch 语句捕获此异常。Response.End 方法终止页的执行,并将此执行切换到应用程序的事件管线中的 Application_EndRequest 事件。不执行 Response.End 后面的代码行。此问题出现在 Response.Redirect 和 Server.Transfer 方法中,因为这两种方法均在内部调用Response.End。解决方案 :要解决此问题,请使用下列方法之一:
阅读全文
摘要:1.在父窗口中操作子窗口中的元素,如(其中 iframe1是iframe的ID)1) 选中IFRAME中的所有单选钮 $(window.frames["iframe1"].document).find("input[@type='radio']").attr("checked","true");2).去掉子窗口中类名为top_menu元素的css属性类on$(window.frames["iframe1"].document).find('.top_menu').
阅读全文
摘要://遍历option和添加、移除optionfunction changeShipMethod(shipping){var len = $("select[@name=ISHIPTYPE] option").lengthif(shipping.value != "CA"){ $("select[@name=ISHIPTYPE] option").each(function(){ if($(this).val() == 111){ $(this).remove(); } });}else{ $("<option valu
阅读全文
摘要:在网页里加form的时候默认会上下的两块空白,用下面的办法解决它:法一:设置CSS对象的margin属性为0: <div style="border:1px solid #000">第一行<form style="margin:0px"></form>第二行</div>方法二:把块元素设置为行内元素: <div style="border:1px solid #000">第一行<form style="display:inline"></
阅读全文