asp.net 4.5 练习~test5-8
发布日期:2021-05-06 21:15:38 浏览次数:13 分类:技术文章

本文共 898 字,大约阅读时间需要 2 分钟。

webform1.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="test5_8.WebForm1" %>
修改密码
原密码:
新密码:
确认密码:

webform1.aspx.cs

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace test5_8{    public partial class WebForm1 : System.Web.UI.Page    {        protected void Page_Load(object sender, EventArgs e)        {            UnobtrusiveValidationMode = System.Web.UI.UnobtrusiveValidationMode.None;        }        protected void Button1_Click(object sender, EventArgs e)        {            if (TextBox1.Text == TextBox2.Text)            {                Label1.Text = "密码修改成功";            }        }    }}

 

上一篇:asp.net 4.5 练习~test5-9
下一篇:asp.net 4.5 练习~test5-7

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2025年03月31日 12时22分26秒