Time of Update: 2018-12-07
介面檔案代碼:-----------------------------------------------------------------------------------------------------<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Customer_Canlendar.ascx.cs" Inherits="Customer_Canlendar"
Time of Update: 2018-12-07
script language="javascript" type="text/javascript"><!--// 擷取當前檔案名稱function getFileName(){var url = this.location.href;var pos = url.lastIndexOf("/");if(pos == -1)pos = url.lastIndexOf("\\");var filename = url.substr(pos+1);return
Time of Update: 2018-12-07
using System;using System.IO;using System.Text;using System.Text.RegularExpressions;using System.Web.UI;public partial class Email_Default : System.Web.UI.Page{ private bool _useScrollPersistence = true; /// <summary> /// There could
Time of Update: 2018-12-07
在預設情況下網頁是不自動換行的,如果字元很長的話,就會使網頁變型,因為它是通過絕對長度來控制的,其實只要在表格控制中添加一句<td style="word-break:break-all">就OK完整的是 style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word" word-break:break-all mozilla等(包括firefox)不支援,將會在 css3
Time of Update: 2018-12-07
如果由於table中有一個下拉框,還有一個treeview時,treeview的所有節點都是取於下拉框的下拉選項來的,所以在第一定位這之後,當選擇其他下拉框中其他的選項時,DIV的scrollTop值是會一直儲存前一個步聚DIV捲軸所在的位置的<body style="background: #EFF9FA" onscroll="onscrollform();" onload="formOnload();" scroll="no"
Time of Update: 2018-12-07
最近,收到幾位網友的諮詢,都說使用 SmtpClient 通過 139,189,qq 郵箱的SMTP服務,發送郵件時,都不成功,返回的錯誤是 “身分識別驗證失敗”,而同樣的情況,使用outlook express, foxmail 則可以正常發送。為了搞清原因,我自己測試了一把,問題確實如此。據此,可以判斷,問題應該是出在 SmtpClient 本身了。而且,既然是 “身分識別驗證失敗” 的錯誤,那就應該出在 身分識別驗證的環節了。為了徹底搞清楚這個問題, 我使用了抓取網路封包的方法,
Time of Update: 2018-12-07
<HTML><HEAD><script language="javascript">//more javascript from http://www.smallrain.netvar oPopUp=null;function SoftKeyboard(pwdObj){oPopUp=window.createPopup();var popBody=oPopUp.document.body;popBody.style.backgroundColor =
Time of Update: 2018-12-07
代碼作用:滑鼠上移到圖片上時,圖片浮動顯現,就像是Apple的浮動菜單一樣的效果。<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head
Time of Update: 2018-12-07
一共有兩種寫法:《不使用的資料來源的方式》 1): ListItem myListItem = new ListItem("text","value"); this.DropDownList1.Items.Add(myListItem);2): this.DropDownList1.Items.Add("text1"); this.DropDownList1.Items.FindByText("text1").Value = "value1"; 3
Time of Update: 2018-12-07
點擊紅色字的link,可以定位綠色文字的位置<html><head></head><body> <table border="0" cellpadding="0" cellspacing="0" width="80%"> <tr> <td width="100%"> <a
Time of Update: 2018-12-07
<head>...//刪除function DoDelete(flag){GetItemId(flag);} function GetItemId(flag){var items = Co["DispDataList"].GetSelected();var sid = "";if (items.length == 0) {alert(WARNINGSTRING);return;}else {sid = items[0].GetAttr("Id");}var fType =
Time of Update: 2018-12-07
今天看見園子裡有人因img的src為空白導致session丟失,詳情見http://www.cnblogs.com/kyneblog/archive/2009/06/11/1500999.html以前一直沒注意這個,所以晚上特地寫了一段代碼驗證:Default.aspx後台代碼:using System;using System.Web;using System.IO;namespace src{ public partial class _Default : System.Web.UI.
Time of Update: 2018-12-07
1.編譯錯誤 2. 給系統硬碟的 windows/temp 目錄設定許可權。 解決步驟: (1)開啟系統硬碟下windows/temp 目錄。 (2)按右鍵該目錄,並選擇屬性。 (3)選擇“安全”選擇項卡,給使用者Network service(如果是win2000則是asp.net使用者)勾上部分許可權。具體為: 1.讀取和運行 2.列出檔案夾目錄 3. 讀取。(如果還是報該錯誤,就再賦其他幾項許可權。: ) ) [以下資訊是轉載]使用過程:
Time of Update: 2018-12-07
相信大家都使用GridView,以及Server.Transfer,不知道在開發中是否遇到這種情況?當Page A Nest(嵌套)在MasterPage,再在Page A 中放個GridView進行顯示資料或者資料處理什麼的。那資料顯示之後,想直接跳轉到其他頁面,進行操作什麼的?那此時的跳轉頁面動作一般都會使用Response.Redirect(@”~/Other.Page”,false);那你有想到使用Server.Transfer 或者 Server.Execute 嗎? OK,當然不過,
Time of Update: 2018-12-07
問題: 在安裝Web 3 時,提示 : "Your computer is scheduled to restart. Restart your computer and run Setup to continue installing this Expression program."解決方案: We check three registry keys to determine if a reboot is required. It’s been
Time of Update: 2018-12-07
Today I am trying out JQuery on Visual Studio 2008 for the first time. I go to the website at http://www.jquery.com/ and downloaded the library as well as the document for Visual Studio.So I imported the JQuery library into my VS projectBut when I
Time of Update: 2018-12-07
Dictionary操作 c# var vhe = new Dictionary<String,String>();var queryString = context.Request.QueryString;foreach ( string item in queryString ) {vhe.Add ( item , CommonFunc.ConvertObjectToString ( queryString[item] ) );}return vhe;對以上C#代碼用LinQ
Time of Update: 2018-12-07
1。我個人認為最好的分頁方法是:Select top 10 * from table where id>200寫成預存程序,上面的語句要拼一下sql語句,要獲得最後大於的哪一個ID號2。那個用遊標的方式,只適合於小資料量的表,如果表在一萬行以上,就差勁了你的預存程序還比不上NOT
Time of Update: 2018-12-07
這篇文章討論了:·一般ASP.NET效能的秘密·能提高ASP.NET表現的有用的技巧和竅門·在ASP.NET中使用資料庫的建議·ASP.NET中的緩衝和幕後處理
Time of Update: 2018-12-07
需求: 針對如下列表,把四個直轄市置頂排序1100 北京 2301 哈爾濱 3301 杭州 3100 上海 4403 深圳 2201 長春 4301 長沙 3204 常州 5101 成都 1200 天津3202 無錫 4201 武漢 4101 鄭州 5000 重慶 3703 淄博 方法: (一般處理)建立兩個列表,一個列表用於儲存四個直轄市;一個列表用於儲存其他城市Code: 代碼 Code highlighting produced by Actipro CodeHighlighter