原创 漢字符到十六進制:

private string GetHex(string Word){int i=Word.Length;string temp;string end="";byte[] array = new byte[2];int i1 ,i2;fo

原创 SiteMap Controls: How to add a duplicate link in the web.sitemap

  One of the requirements for the sitemap provider is that you cannot have duplicate url attribute values in the web.si

原创 Using the window.open method

  The syntax of the window.open method is given below: open (URL, win

原创 Parser Error Message: The file '/MasterPage.master' does not exist.

用vs.net 2005打開一個存在於默認網站下,但是沒有建立虛擬目錄的Web Site,此站點存在一個依賴於母版頁的簡單的.aspx頁面,在預覽此頁面時出現錯誤信息:Parser Error Message: The file '/Ma

原创 how to display different title in one master page

The master page title does not override the titles on individual pages as the master page is just a user control. So if

原创 HTML中meta作用

meta是用來在HTML文檔中模擬HTTP協議的響應頭報文。meta 標籤用於網頁的<head>與</head>中,meta 標籤的用處很多。meta 的屬性有兩種:name和http-equiv。name屬性主要用於描述網頁,對應於c

原创 CSS overflow

使用CSS來修飾滾動條       1.overflow內容溢出時的設置           overflow-x水平方向內容溢出時的設置           overflow-y垂直方向內容溢出時的設置           以上三個屬

原创 Is it possible to make asp.net themes available to all sites on the sever?

By default ASP.NET 2.0 Themes include all Style Sheets found within the active Theme directory into the HEAD of the doc

原创 js實現頁面跳轉的幾種方式

第一種:    <script language="javascript" type="text/javascript">           window.location.href="login.jsp?backurl="+windo

原创 什麼是DIV+CSS

我們都知道,在網頁上利用HTML定位文字和圖象是一件“令人心痛”的事情。我們必須使用表格標籤和隱式GIF圖象,即使這樣也不能保證定位的精確,因爲瀏覽器和操作平臺的不同會使顯示的結果發生變化。  而CSS能使你看到希望的曙光。利用今天我們即

原创 Request.ServerVariables 函數介紹

Request.ServerVariables('Url') 返回服務器地址 Request.ServerVariables('Path_Info') 客戶端提供的路徑信息 Request.ServerVariables('Appl_Ph

原创 fix html markup

   using System;   using System.Reflection; 3    ...4    public static void InitializeTitleTag()5    {6        Type typ

原创 DataBind

<script src="/webjs/view-y-2.js" type="text/javascript"></script> 在前面的"模板中的數據綁定"部分中我們論述過,ASP.

原创 Creating custom headers and footers in Application level events using global.asax

Introduction This is a very simple example that shows how to use global.asax file to create custom header and footers f

原创 Adding dynamic nodes to ASP.NET site maps at runtime by deriving from StaticSiteMapProvider

  Adding a static sitemap to an ASP.NET website is straightforward. Creating a dynamic sitemap is harder, but there a