原创 asp.net 退出框架頁面時回退至登錄界面
一、登錄界面設置 <body> <form id="form1" runat="server" target="_top"> <div> <asp:Button ID="Button1" runat="se
原创 ASP 後臺寫html生成前臺table
後臺VB: If Not newTable Is Nothing And newTable.Rows.Count > 0 Then Dim str As StringBuilder = New StringBui
原创 使用Jquery+repeater生成可以收縮的目錄
前臺的repeater的使用 <asp:Repeater id="rptCategories" runat="server"> <HeaderTemplate> <table id="table01" width="10
原创 calendarextender和masked edit extender
<asp:textbox ID="txtCDate1" runat ="server" text="" width="100" MaxLength ="10"></asp:textbox> <ajaxToolkit:Mas
原创 母版頁中使用ScriptManager和內容頁RegisterStartupScript衝突
因爲RegisterStartupScript註冊的腳本塊生成在頁面的最底部,可能和Sys.Application.initialize();合併的時候的有問題, 所以可以把要註冊的腳本寫在html具體的控件的的事件中 比如: lnkB
原创 Sql 查詢結果insert
首先說明需求:項目中爲用戶註冊的用戶的id是從表中查詢並且加1的,爲了防止雙開的id重複,導致註冊失敗只能在sql執行的時候才能獲取id,而不能在用戶填寫資料的時候就分配。沒有使用GUID自然有緣由; SQL文 insert into [
原创 sql中判斷更新或者插入
if exists(SELECT *FROM [DBPersonnel].[dbo].[TB証明書] where [社員番號]='001') u
原创 VB中實現IObjectSafety接口以聲明控件安全的方法
VB中實現IObjectSafety接口以聲明控件安全的方法 轉載自:http://www.cnblogs.com/Shana/archive/2009/06/24/VB_Iobjsafe.html VB編寫的ActiveX控件
原创 Asp.Net 回調
aspx: <head runat="server"> <title>Test</title> <script type ="text/javascript" > 1. function GetNumber(
原创 KeyCode
keycode 8 = BackSpace BackSpace keycode 9 = Tab Tab keycode 12 = Clear keycode 13 = Enter keycode 16 =
原创 repeater嵌套checkbox選項的取值賦值
前臺 <asp:Repeater id="rptMainMenu" runat="server"> <HeaderTemplate> <table id="table01" width="149" border="0"
原创 repeater嵌套checkbox—大分類選中 他的所屬都選中
前臺vb <asp:Repeater id="rptMainMenu" runat="server"> <HeaderTemplate> <table id="table01" width="149" border="0
原创 JavaScript刪除確認代碼,判斷checkbox是否被選中代碼
//在客戶端瀏覽器用一個JavaScript來判斷用戶是否選擇了記錄! <script type="text/javascript"> function check_selected() { var checkBox
原创 母版頁中內容頁動作不刷新母版(同一個頁面)
母版頁中把要異步提交的子版內容用updatepanel 包裝 <asp:UpdatePanel runat ="server" ID ="UpdatePanel1" ChildrenAsTriggers ="false" Upda
原创 aspx 頁面彈出窗口代碼大全
//關閉,父窗口彈出對話框,子窗口直接關閉 this.Response.Write("<script language=javascript>window.close();</script>"); //關閉,父窗口和子窗口都不彈出對話