Chapter 9 進階 Web 控制項. 資料驗證 Web 控制項 RequireFieldValidator RequireFieldValidator <asp:RequireFieldValidator id=“control name” runat=“server” ControlToValidate=“ID.

Slides:



Advertisements
Similar presentations
DIR-636L Support 10/100/1000Mbps 1WAN and 4LAN N 300Mbps Wireless Easy wizard setup Support mydlink cloud service mydlink apps (iOS/android) Support.
Advertisements

Presenters: Alan Chan, Sam Tse Date:2012/06/20. DIR-605L Support 10/100Mbps 1WAN and 4LAN n 300Mbps Wireless Fixed 5dbi antennal x2 Easy wizard.
:Word Morphing ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10508:word morphing 解題者:楊家豪 解題日期: 2006 年 5 月 21 日 題意: 第一行給你兩個正整數, 第一個代表下面會出現幾個字串,
Instructor: Ching-Chi Lin 林清池 助理教授
亞洲大學 - 蒲公英計劃 Office InfoPath 2007 軟體簡介 資訊發展處 潘信宏。蔡季甫 分機 3511.
Technical Information Services of NCCU 政 大 資 訊 設 備 ( Powered by NCCU Student Ambassadors ) 劉 謙 Harrison 游逸凡 Rudy 黃予涵 Shahad.
web controls  standard controls  validation controls  rich controls.
1 Web of Science 利用指引 單元二 瀏覽與處理查詢結果. 2 瀏覽檢索結果 查出的結果,預設以時間排列, 使用者可改變結果的排列方式: 還可以依被引用次數、相關度、 第一作者、刊名、出版年等排序 回到前先查的結果畫面 點選想看資料的完整書目 本館訂購範圍的期刊 全文,便可直接連結.
: Boxes ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11003: Boxes 解題者:蔡欣燁 解題日期: 2007 年 3 月 19 日.
女生宿舍空調系統使用說明 淡江大學學務處住輔組 輔導員 陳芝仙. 淡江 e 服務網 ( 註冊成為「淡江 e 服務網」會員.
:New Land ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11871: New Land 解題者:施博修 解題日期: 2011 年 6 月 8 日 題意:國王有一個懶兒子,為了勞動兒子,他想了一個 辦法,令他在某天早上開始走路,直到太陽下山前,靠.
: OPENING DOORS ? 題組: Problem Set Archive with Online Judge 題號: 10606: OPENING DOORS 解題者:侯沛彣 解題日期: 2006 年 6 月 11 日 題意: - 某間學校有 N 個學生,每個學生都有自己的衣物櫃.
第一章 變數、常數及資料型態. 變數 C 程式語言的變數名稱 第一個字必須是英文字母或底線 (_) 之後可以是數字, 英文字母或底線 (_) 不可以是保留字 例: Num (Ο) _score (Ο) C&C (X) 8num (X)
: ShellSort ★★☆☆☆ 題組: Problem D 題號: 10152: ShellSort 解題者:林一帆 解題日期: 2006 年 4 月 10 日 題意:烏龜王國的烏龜總是一隻一隻疊在一起。唯一改變烏龜位置 的方法為:一隻烏龜爬出他原來的位置,然後往上爬到最上方。給 你一堆烏龜原來排列的順序,以及我們想要的烏龜的排列順序,你.
Last modified 2004/02 An Introduction to SQL (Structured Query Language )
程式註解說明. 2 程式註解格式 塊狀註解 對檔案、 class 、 method 、資料結構、一段程式 …. 等程式區塊 做說明。 第一行的開頭必需為 “/*” 且沒有其他文字,最後一行的開頭 必需以 “*/” 做為結束,在中間每一行的開頭都必需是一個 “*” 。 單行註解 佔據一整行的說明。 以.
第 4 章 伺服器控制項簡介. 4-1 認識 Web Forms Web Forms 是由伺服器端處理的 ,必須加上 runat=server 以及 id 兩個 屬性 ,例如: \Ch04\Sample1.aspx 01: 02: 03: Sub btnOK_Click(ByVal sender As.
Fall 與 1 的數位世界 1. Fall 與 1 的數位世界 2 資訊化服務  提供快捷的服務:強大的計算能力、快速的網 路傳遞。  提供便利與便宜的商業服務:跨越地域限制, 輕易的貨比十家;降低空間與人力成本。  提供多元化的服務:新聞、血拼、聊天、數位 圖書館、網路電話.
1 Introduction to Java Programming Lecture 4 Using JOptionPane Spring 2008.
Department of Air-conditioning and Refrigeration Engineering/ National Taipei University of Technology 模糊控制設計使用 MATLAB 李達生.
電腦攻擊與防禦 使用電腦教室 vmware 軟體說 明. 開機說明  選擇第二項 :Xp+VM 開機 Account: SNMG Pass:pc208.
軟體保護技術及其弱點 序列號保護與弱點. 組員名單 資訊三乙 D 吳俊緯 資訊三乙 D 吳俊緯 資訊三乙 D 陳品端 資訊三乙 D 陳品端.
: Abundance and Perfect Numbers ★★★★☆ 題組: Contest Volumes with Online Judge 題號: 10914: Abundance and Perfect Numbers 解題者:劉洙愷 解題日期: 2008 年 5 月 2.
1 Netlibrary 電子書 Netlibrary 創始於 1998 年,是世界知名的電子書資 料庫,提供 450 多家出版社所出版近 100,962 ( 止)本的電子書,且以每月 2,000 本的 速度增加中。其中 80% 屬於學術性圖書,其餘 20% 一般圖書, 90% 以上為.
各種線上電子資源的特異功能 SpringerLINK 的 Alert, Serials Update, News 2003/4/28 修改.
1 單元四 個人化服務 Web of Science 利用指引. 2 個人化服務 Sign In 登入 My EndNote Web 使用 EndNote Web 者可登入 My Citation Alert 查看或修改先前設定的引用通告 My Saved Searches 查看或更改先前儲存過的檢索.
1 Introduction to Java Programming Lecture 2: Basics of Java Programming Spring 2008.
Management Abstracts Retrieval System; MARS 檢索操作.
1 Web of Science 利用指引 逢甲大學圖書館 參考服務組 單元六 個人化服務.
2010 MCML introduction 製作日期: 2010/9/10 製作人 : 胡名霞.
-Antidifferentiation- Chapter 6 朝陽科技大學 資訊管理系 李麗華 教授.
845: Gas Station Numbers ★★★ 題組: Problem Set Archive with Online Judge 題號: 845: Gas Station Numbers. 解題者:張維珊 解題日期: 2006 年 2 月 題意: 將輸入的數字,經過重新排列組合或旋轉數字,得到比原先的數字大,
Linguistics phonetic symbols. 先下載 IPA 字型檔案,執行安裝。 由於這個程式的字型目錄設定錯誤, 所以等重新開機時就會發現字型消失。 所以必須根據以下步驟來讓 Windows 加入 IPA 字型。
Structural Equation Modeling Chapter 6 CFA 根據每個因素有多重指標,以減少 測量誤差並可建立問卷的構念效度 驗證性因素分析.
第七章 採購支出循環企業程序與資訊需求 7.1 採購支出循環企業程序 7.2 採購支出循環固有風險與內部控制 7.3 採購支出循環資訊需求
Chapter 10 m-way 搜尋樹與B-Tree
What is Computer.
網路介紹及其運用 講師陳炯勳. 5-2 IP 協定 ( 一 ) IP 協定運作 (1) – 網路成員:主機 (Host) 與路由器 (Router) – 路由表 – 電報傳輸運作.
1 Introduction to Java Programming Lecture 4 Using JOptionPane Spring 2010.
1 Introduction to Java Programming Lecture 2: Basics of Java Programming Spring 2009.
電腦的基本單位 類比訊號 (analog signal) 指的是連續的訊號 數位訊號 (digital signal) 指的是以預先定義的符號表示不連續 的訊號 one bit 8 bits=one byte 電腦裡的所有資料,包括文 字、數據、影像、音訊、視 訊,都是用二進位來表示的。
Teacher : Ing-Jer Huang TA : Chien-Hung Chen 2015/6/30 Course Embedded Systems : Principles and Implementations Weekly Preview Question CH7.1~CH /12/26.
ASP.NET Validating user input Validating user input on the client and/or server side 1ASP.NET Validating User Input.
I/O of C and C++. printf and scanf of C Should add printf (“control string”, exp1, exp2,…) Scanf(“control string”, &var1, &var2,…)
1 Introduction to Java Programming Lecture 2: Basics of Java Programming Spring 2010.
數字系統與資料表示法 教師: 陳炯勳 數系轉換 r進制數字 稱為 base r或 radix r 有r個計數符號,計數順序逢r歸零(進位) A n A n - 1 ‥‥A 2 A 1 A 0 ﹒A -1 A -2 ‥‥A -m 其中A n 及A.
著作權所有 © 旗標出版股份有限公司 第 14 章 製作信封、標籤. 本章提要 製作單一信封 製作單一郵寄標籤.
Mapping - 1 Mapping From ER Model to Relational DB.
Chapter 12 Estimation 統計估計. Inferential statistics Parametric statistics 母數統計 ( 母體為常態或 大樣本 ) 假設檢定 hypothesis testing  對有關母體參數的假設,利用樣本資料,決定接受或 不接受該假設的方法.
第 7 章 Web 表單驗證控制項 7-1 表單送回功能( Postback ) 7-2 表單的顯示狀態( Viewstate ) 7-3 表單欄位驗證的基礎 7-4 伺服端的驗證控制項(一) 7-5 伺服端的驗證控制項(二) 7-6 Web 表單的重設按鈕.
程式設計 Visual Basic 6.0 Visual Basic 6.0 Visual Basic 6.0 程式設計 Visual Basic 6.0 Visual Basic 6.0 Visual Basic 6.0許翠婷
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Module 7: Validating User Input.
.NET Validation Controls MacDonald Ch. 8 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Chapter 3 Using Validation Controls. What is a Validation Control? A control that validates the value in another control Renders as an HTML tag with an.
Telerik Software Academy ASP.NET Web Forms Data Validation, Data Validators, Validation Groups Telerik Software Academy
1 ASP.NET ASP.NET Rina Zviel-Girshin Lecture 3. 2 Overview Cookies Validation controls Client and server side validation Validation control examples.
ASP.NET Event Handlers Database -> Browser ->Shopping Basket Validators.
Chapter 8 Building Forms with Web Server Controls.
VALIDATION CONTROLS.  Validation Controls are primarily used to validate, or verify the data entered by user into a web form.  Validation controls attempt.
Building Applications using ASP.NET and C# / Session 4 / 1 of 15 Session 4.
Session 6: Validating User Input. Outline Overview of User Input Validation Client-Side and Server-Side Validation ASP.NET Validation Controls Using Validation.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 User Input Validating.
Vijayalakshmi G M Validation Controls.
ASP + JavaScript Client and Server scripts. Link 1 function MyClick(){ document.write("MyClick"); } function MyFunction1(){ alert("My Function 1"); }
資料庫輸出控制元件. DataGrid 元件外觀
Beginning ASP.NET in C# and VB Chapter 9
Lab 1 Introduction MMLAB. Environment Install Linux OS in a computer( VirtualBox or Vmware or Native) It’s all up to you for selecting Ubuntu Server or.
Validation Controls Assist your users with providing the correct type of input for your application Assist your users with providing the correct type of.
.NET Validation Controls
Presentation transcript:

Chapter 9 進階 Web 控制項

資料驗證 Web 控制項 RequireFieldValidator RequireFieldValidator <asp:RequireFieldValidator id=“control name” runat=“server” ControlToValidate=“ID of the control that you want to validate” Display=“Static/Dynamic/None” ErrorMessage=“Error Message” InitialValue=“some text” Text=“error message displayed by the control” /> Displayed in the ValidationSummary control. This error message is displayed by the control when the text property is not set. Display in a textbox but will not be submitted

RequireFieldValidator RequireFieldValidator 資料驗證 Web 控制項 … <asp:RequiredFieldValidator id=“Validor1” ControlToValidate=“txtUsername” Text=“You must enter a username!” runat=“server” /> … … Sub B1_Click(s as object, e as Eventargs) If Page.IsValid Then … End If End Sub 所有控制項都通過驗證 Validor1.IsValid

資料驗證 Web 控制項 CompareValidator CompareValidator <asp:CompareValidator id=“control name” runat=“server” ControlToValidate=“ID of the control that you want to validate” Display=“Static/Dynamic/None” ErrorMessage=“Error Message” Operator=“DataTypeCheck/Equal/NotEqual/GreaterThan/ GreaterThanEqual/LessThan/LessThanEqual” Type=“Currency/Date/Double/Integer/String/…” ControlToCompare=“id of the control to use for comparing values” Text=“error message displayed by the control” />

資料驗證 Web 控制項 CompareValidator CompareValidator The CompareValidator is pretty particular about the dates that it will accept. January 1, 2001 Jan 1, 2001 For example not considered valid 1/1/ Valid

資料驗證 Web 控制項 CompareValidator CompareValidator … <asp:CompareValidator ControltoValidator=“txtEndDate” ControlToCompare=“txtStartDate” Display=“Dynamic” Text=“End date must be greater than start date” Operator=“GreaterThan” Type=“Date” Runat=“Server” /> …

資料驗證 Web 控制項 RangeValidator RangeValidator <asp:RangeValidator id=“control name” runat=“server” ControlToValidate=“ID of the control that you want to validate” Display=“Static/Dynamic/None” ErrorMessage=“Error Message” MinimumValue=“minimum value” MaximumValue=“maximum value” Type=“Currency/Date/Double/Integer/String/…” Text=“error message displayed by the control” />

資料驗證 Web 控制項 RangeValidator RangeValidator Sub Page_Load V1.MinimumValue=Now.Date V1.MaximumValue=Now.Date.AddMonths(3) End Sub … … <asp:RangeValidator id=V1” runat=“server” ControlToValidate=“txtMeetingDate” Text=“Date must be in the next 3 months” Type=“Date” /> …

資料驗證 Web 控制項 RegularExpressionValidator RegularExpressionValidator <asp:RegularExpressionValidator id=“control name” runat=“server” ControlToValidate=“ID of the control that you want to validate” Display=“Static/Dynamic/None” ErrorMessage=“Error Message” ValidationExpression=“validation rule” Text=“error message displayed by the control” />

資料驗證 Web 控制項 RegularExpressionValidator RegularExpressionValidator ValidationExpression [] 單一字元內容 {} 輸入字元個數. 除了空白外所有的字元 * 最少 0 個 + 最少 1 個 ? 0 個或 1 個 ^ not | or \ 必需包含以上字元,含 ()

資料驗證 Web 控制項 RegularExpressionValidator RegularExpressionValidator ValidationExpression - Example [x-zX-Z] [win] [^linux] [a-zA-Z]{4} [a-zA-Z]{4,6} [a-zA-Z]{4,}.{4} [a-zA-Z]* [a-zA-Z]+ [a-zA-Z]{4} | [0-9]{4} \([0-9]{2,3}\) \w+ \d+ [01][0-9]:[0-5][0-9][ap]m [0-9]{2,4}-[0,9]{3,4}-[0-9]{3,4} \(?[0-9]{2,3}\)?-[0-9]{7}

資料驗證 Web 控制項 CustomValidator CustomValidator <asp:CustomValidator id=“control name” runat=“server” ControlToValidate=“ID of the control that you want to validate” Display=“Static/Dynamic/None” ErrorMessage=“Error Message” onServerValidate=“Server Validate Event” Text=“error message displayed by the control” />

資料驗證 Web 控制項 CustomValidator CustomValidator Example : See Text Book p. 377