博客
关于我
asp.net 4.5 练习~test5-2
阅读量:304 次
发布时间:2019-03-03

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

    
WebForm1
密码提示问题:
请任选一项
我的出生地
我的母亲的名字
我的父亲的名字
Label
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace test5_2{    public partial class WebForm1 : System.Web.UI.Page    {        protected void Page_Load(object sender, EventArgs e)        {            Label2.Text = "答案:";        }        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)        {            switch (DropDownList1.SelectedValue)            {                case "1":                    Label2.Text = DropDownList1.Items[DropDownList1.SelectedIndex].Text + ":";                    break;                case "2":                    Label2.Text = DropDownList1.Items[DropDownList1.SelectedIndex].Text + ":";                    break;                case "3":                    Label2.Text = DropDownList1.Items[DropDownList1.SelectedIndex].Text + ":";                    break;            }        }    }}

转载地址:http://nyrm.baihongyu.com/

你可能感兴趣的文章
phpexcel中文手册
查看>>
PHPExcel导入导出 若在thinkPHP3.2中使用(无论实例还是静态调用(如new classname或classname::function)都必须加反斜杠,因3.2就命名空间,如/c...
查看>>
phpize及其用法
查看>>
phpMailer发送邮件
查看>>
PHPMailer发送邮件
查看>>
phpmailer发送邮件,可以带附件
查看>>
phpmailer的用法
查看>>
phpMQTT
查看>>
phpmyadmin 安装
查看>>
phpmyadmin导出数据库出现Fatal error: Cannot 'break' 2 levels in D:\phpstudy\WWW\phpMyAdmin
查看>>
phpmyadmin数据库建表及插入
查看>>
phpnow配置
查看>>
phprpc简单使用
查看>>
phpspider中当爬虫获取数据时如何去掉广告
查看>>
phpstorm 2016.3.3 激活
查看>>
phpstorm中Xdebug的使用
查看>>
phpstorm中使用svn版本控制器
查看>>
PHPStorm使用git
查看>>
PHPstorm最常用的快捷键,提高开发效率
查看>>
Redis五种数据结构
查看>>