Time of Update: 2018-12-05
利用C#來做ASP.NET的登陸頁面開發人員線上 Builder.com.cn 更新時間:2007-09-08作者:中國IT實驗室 來源:中國IT實驗室本文關鍵詞: 登陸頁面 ASP.NET C# 一、建立一個資料庫 建立一個access資料user.mdb。 建立一個user表,添加:UserId(文本類型)及Password(文本類型)兩個欄位。二、建立一個default.aspx檔案。 在Web Form裡: 加入兩個Label控制項,Text屬性分別為“登入名稱”和“密碼”;
Time of Update: 2018-12-05
1、在網上google code39 字型,網上好多下載的地方啊,然後安裝到 系統目錄下 windows/fonts 下。2、首先報表中要有數字欄位,例如ksh。這時 先建立公式欄位 名字為 TiaoMa 使用編輯器 輸入 "*"+{資料來源.ksh}+"*" ,儲存並關閉。其實就是給條碼前後加入*號,這是條碼槍識別的要求。3、將公式欄位 TiaoMa 拖入報表中 ,設定字型為 條碼字型 ,大小合適。這樣就完成了 。
Time of Update: 2018-12-05
string str = TextBox1.Text.Trim();string str2 = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "MD5");Label1.Text = str2; 上例是轉換為32位的方法 string str = TextBox1.Text.Trim();string str2 =
Time of Update: 2018-12-05
這個字串加密解密類是廣大程式員必不可少的[靜態類] using System;using System.Text;using System.Security.Cryptography;using System.IO; //預設密鑰向量private static byte[] Keys = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };/// <summary>/// DES加密字串/// </summary>///
Time of Update: 2018-12-05
1.登陸頁面危險代碼 代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Dim query As String = String.Format("SELECT username, password FROM userinfo WHERE username='{0}' AND password='{1}'", userName, passwd)
Time of Update: 2018-12-05
代碼和預存程序是針對AspNetPager。其中,使用環境為:VS2005 +
Time of Update: 2018-12-05
Cookie (HttpCookie的執行個體)提供了一種在 Web 應用程式中儲存使用者特定資訊的方法。例如,當使用者訪問您的網站時,您可以使用Cookie 儲存使用者喜好設定或其他資訊。 當該使用者再次訪問您的網站時,應用程式便可以檢索以前儲存的資訊。 ASP.NET中的cookie:建立Cookie方法 (1) Response.Cookies["userName"].Value = “admin";
Time of Update: 2018-12-05
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //當滑鼠移到行上時更改背景色 e.Row.Attributes.Add("onmouseover",
Time of Update: 2018-12-05
<a href="javascript:showModalDialog('ansmsg.aspx?id=<%#Eval("gid")%>');window.location.reload()"> 回複</a> 很普通的一個頁面指向連結.. 傳參數ID 過去... 後便添加了 window.location.reload() 這個 window.location.reload() 的意思是 ..
Time of Update: 2018-12-05
#region 發送郵件 //建立郵件資訊 objMailMessage = new MailMessage(); //objMailMessage.From = "zhangandfang6862@sina.com";//源郵件地址 objMailMessage.From = strStrmail_Addresser;
Time of Update: 2018-12-05
專門給你寫了個,你看一下,說明下這裡沒有考慮到資料的有效性,需要的話自己加上。 using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using
Time of Update: 2018-12-05
FCKeditor相關資料簡介: 官方網站http://www.fckeditor.net/官方文檔http://wiki.fckeditor.net/http://www.fckeditor.net/download/default.html官方示範http://www.fckeditor.net/demo/default.htmlFCKEditor asp.net設定下載:http://www.fckeditor.net(要下載FCKeditor2.6.zip和FCKeditor.NET2.
Time of Update: 2018-12-05
Default.aspx:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Time of Update: 2018-12-05
最近在做一個列印含有表格的Web頁面的功能時,在一個問題上糾纏了很久。具體表現是,在我自己的電腦上列印時,一切都很正常,一張紙可以容納整個表格。但是在客戶的電腦上列印時,表格要佔用兩張紙,而且右邊的一部分沒了。尋找了很多資料,終於發現這是IE版本的問題。從IE7開始增加了一個“進階列印”的功能,在列印的時候頁面內容會自動縮放,以適合列印紙張的大小。我用的是IE8,而客戶用的是IE6,所以出現了這樣詭異的問題。找到了原因,解決方案自然就出來了:按照紙張的大小調整頁面的範圍。客戶使用的是A4紙,寬度
Time of Update: 2018-12-05
AJAX 用於創造動態性更強的應用程式。AJAX ASP 執行個體下面的例子將為您示範當使用者在輸入框中鍵入字元時,網頁如何與 網頁伺服器進行通訊:請在下面的輸入框中鍵入字母(A - Z):姓氏:建議:============== <html><head><script type="text/javascript">function showHint(str){var xmlhttp;if (str.length==0) {
Time of Update: 2018-12-05
假設有一個xml檔內容如下.. <?xml version="1.0" encoding="utf-8" ?><A> <B> <C c1="東京">JAPAN</C> </B> <B> <C c1="台北">TAIWAN</C> <C c1="台南">TAIWAN</C> </B> <B> <C
Time of Update: 2018-12-05
下載、安裝Web Deployment Projects外掛程式。 :VS 2005 Web Deployment Projects下載 這東西就是個msi,919K,直接安裝就OK了。記得裝的時候把VS關了。 建立Web Deployment項目 開啟Web項目所在的解決方案,右鍵點擊Web項目,選擇"Add Web Deployment Project…" 在彈出的對話方塊中設定Web Deployment
Time of Update: 2018-12-05
the events of life circle in a datagridfirst, there is a important object in datagrid : datagriditem, we can get them use datagrid.items which is inherited from System.Web.UI.WebControls;the datagriditem has itemtype with type of enum listitemtype
Time of Update: 2018-12-05
1.定製出錯頁面: <system.web> ...... <customErrors mode="On" defaultRedirect="ErrorPage.htm" /> ...... </system.web> 其中,mode屬性工作表示是否啟用定製的使用者頁面,它可取三個值,如下所示: On 啟用定製的出錯頁面 Off 禁用定製的出錯頁面 RemoteOnly
Time of Update: 2018-12-05
1.建立網站導覽檔案Web.sitemap;2.config檔案:代碼Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><siteMap defaultProvider="XmlSiteMapProvider" enabled="true"><providers><add name="XmlSiteMapProvider"