Đang chuẩn bị liên kết để tải về tài liệu:
ASP.NET 4 Unleased - p 17

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Using the Validation Controls LISTING 3.5 ShowValidationGroups.aspx void btnLogin_Click(Object sender, EventArgs e) { if (Page.IsValid) lblLoginResult.Text = “Log in successful!”; } void btnRegister_Click(Object sender, EventArgs e) { if (Page.IsValid) lblRegisterResult.Text = “Registration successful!”; } html { background-color:silver; } .column { float:left; width:300px; margin-left:10px; background-color:white; border:solid 1px black; padding:10px; } Show Validation Groups From the Library of Wow! eBook Overview of the Validation. | 134 CHAPTER 3 Using the Validation Controls LISTING 3.5 ShowValidationGroups.aspx @ Page Language C DOCTYPE html PUBLIC - W3C DTD XHTML 1.0 Transitional EN http www.w3.org TR xhtml1 DTD xhtml1-transitional.dtd script runat server void btnLogin_Click Object sender EventArgs e if Page.IsValid lblLoginResult.Text Log in successful void btnRegister_Click Object sender EventArgs e if Page.IsValid lblRegisterResult.Text Registration successful script html xmlns http www.w3.org 1999 xhtml head id Head1 runat server style type text css html background-color silver .column float left width 3O0px margin-left 10px background-color white border solid 1px black padding 10px style title Show Validation Groups title head body form id form1 runat server div class column From the Library of Wow eBook Overview of the Validation Controls 135 fieldset legend Login legend P Please log in to our Website. p asp Label id lblUserName Text User Name AssociatedControlID txtUserName Runat server br asp TextBox id txtUserName Runat server asp RequiredFieldValidator id reqUserName ControlToValidate txtUserName Text Required ValidationGroup LoginGroup Runat server br br asp Label id lblPassword Text Password AssociatedControlID txtPassword Runat server br asp TextBox id txtPassword TextMode Password Runat server asp RequiredFieldValidator id reqPassword ControlToValidate txtPassword Text Required ValidationGroup LoginGroup Runat server br br asp Button id btnLogin Text Login ValidationGroup LoginGroup Runat server OnClick btnLogin_Click 3 From the Library of Wow eBook 136 CHAPTER 3 Using the Validation Controls fieldset asp Label id lblLoginResult Runat server div div class column fieldset legend Register legend P If you do not have a User Name please register at our Website. p asp Label id lblFirstName Text First Name AssociatedControlID txtFirstName Runat server br asp TextBox id txtFirstName Runat server asp RequiredFieldValidator id reqFirstName ControlToValidate txtFirstName Text Required .

TÀI LIỆU LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.