Time of Update: 2018-12-04
1 add the control in aspx page:<webdiyer:AspNetPager id="AspNetPager1" runat="server" CssClass="hui_01" ShowInputBox="always" ShowPageInfo="before" HorizontalAlign="center"></webdiyer:AspNetPager>說明: ShowInputBox 可以出現輸入框,指定跳轉頁面;2
Time of Update: 2018-12-04
devenv solutionfile.sln /build solutionconfig [ /project projectnameorfile [ /projectconfig name ] ]可用的命令列開關:/build 產生指定的解決方案配置/project 指定產生項目而不是解決方案 必須指定 /build 才能使用
Time of Update: 2018-12-04
1 將分組結果顯示成一條記錄,並且加入分隔字元 “,”CREATE PROCEDURE dbo.RestaurantInfo_KindCountASBEGIN TRANdeclare @Counts intdeclare @ArraryCount Nvarchar(100)declare @ArraryID Nvarchar(100) select @ArraryCount='' select @ArraryID='' select
Time of Update: 2018-12-04
function DoPrint() { if (window.print) {var Div1 = document.all.Div1.innerHTML;var Div2 = document.all.Div2.innerHTML; // *****************************************************// Div1&Div2 are the areas to be printed// ****************************
Time of Update: 2018-12-04
private static void GetRowsByFilter(){ DataTable customerTable = new DataTable( "Customers" ); // Add columns customerTable.Columns.Add( "id", typeof(int) ); customerTable.Columns.Add( "name", typeof(string) ); // Set PrimaryKey
Time of Update: 2018-12-04
this.DataGrid1.ItemCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_ItemCommand);private void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { ListItemType lit =
Time of Update: 2018-12-04
1 Session有效期間Session在IE中: 有效窗品包括 1.Session對象只在建立Session對象的視窗中有效。 2.在建立Session對象的視窗中新開連結的視窗 無效的視窗包括 1.直接啟動IE瀏覽器的視窗 2.不是在建立Session對象的視窗中新開連結的視窗2 解決方式1這種情況是因為工作階段狀態(包括SESSION、VIEWSTATE等等)與伺服器上登記的資料不匹配。大多數原因是因為你開發用的.net framework和應用伺服器上安裝的.net
Time of Update: 2018-12-04
<script runat="server"> void Item_Bound(Object sender, DataGridItemEventArgs e) { if((e.Item.ItemType == ListItemType.Item) || (e.Item.ItemType == ListItemType.AlternatingItem)) { // Retrieve
Time of Update: 2018-12-04
this.DataGrid1.ItemCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_ItemCommand);private void DataGrid1_ItemCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs
Time of Update: 2018-12-04
this.DataGrid1.ItemCreated += new System.Web.UI.WebControls.DataGridItemEventHandler(this.grid_ItemCreated);private void grid_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) { ListItemType elemType =
Time of Update: 2018-12-04
using System;using System.Net;using System.Net.Sockets;using System.Collections;using System.Configuration;using System.Text;using System.Xml;using System.IO;using System.Web;using System.Web.Mail;namespace mail{ /// <summary> /// Class1 的摘要說明。
Time of Update: 2018-12-04
using System;using System.Text;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using
Time of Update: 2018-12-04
1、使用ASP.Net內建的許可權管理 在web.config檔案中修改以下的內容: <authentication mode="Forms"> <forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" /> </authentication> <authorization> <deny users="?" />
Time of Update: 2018-12-04
1 >屏蔽功能類1.1 屏蔽鍵盤所有鍵<script language="javascript"><!--function document.onkeydown(){event.keyCode = 0;event.returnvalue = false;}--></script>1.2 屏蔽滑鼠右鍵在body標籤裡加上oncontextmenu=self.event.returnvalue=false或者<script
Time of Update: 2018-12-04
//建立業務層對象 SooF.BusinessRules.Apeak.BRSchools brSchool =new SooF.BusinessRules.Apeak.BRSchools(); DataSet ds = brSchool.SingleShoolsDataSet(Province); if((ds.Tables.Count>0)&&(ds.Tables[0].Rows.Count>0)) { iCount =
Time of Update: 2018-12-04
1 一個漢字長度是2,是指它的位元組數是2,如:"a12你好",字串的位元組數為7,字串的長度為5,調用系統的Length=5,說明Length只對字元不對位元組進行查詢; public int GetLength(string inputString) { return System.Text.Encoding.Default.GetByteCount(inputString.Trim()); }2 用ASCII碼值來區分是漢字還是英文是可行的<script language="
Time of Update: 2018-12-04
每個面試者,我都會請對方做自我介紹,但我的體驗是:很多人在這個環節表現不好,簡單列一下。一 準備不足碰到過太多自我介紹都磕磕巴巴,不能流暢介紹個1分鐘的人,感覺一方面是缺少準備,另一方面是表達能力、總結能力較差。二 過分簡短最簡短的介紹就兩句話:“我叫***,今年**歲,畢業*年了”,這顯然給出的資訊量不夠。三 無條理職業資訊和工作經驗以及個人愛好或者對離職原因前後重疊,感覺比較亂。四
Time of Update: 2018-12-04
--------------------------------------------------------------------------------------------------<style type="text/css">.FixedHeaderColumn {background-color: red; position:relative; left:expression(this.offsetParent.scrollLeft);}</style>
Time of Update: 2018-12-04
1. oncontextmenu="window.event.returnValue=false" 將徹底屏蔽滑鼠右鍵<table border oncontextmenu=return(false)><td>no</table> 可用於Table2. <body onselectstart="return false"> 取消選取、防止複製3. onpaste="return false" 不準粘貼4. oncopy="return false;
Time of Update: 2018-12-04
方法很簡單,只是將DataGrid的內容輸出到HtmlTextWriter流,再將流作為附件讓使用者下載或者用Excel開啟.此方法雖然簡單,但能實現功能.private void button_OutExcel_Click(object sender, System.EventArgs e) { Response.Clear(); Response.Buffer= true; Response.Charset="utf-8";