想要在C#中使用inputbox [英] want to use inputbox in c#

查看:111
本文介绍了想要在C#中使用inputbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先我使用dropdownlist作为登录页面中的位置
现在,
我想在页面本身中显示所有位置,单击位置后应询问密码
所以我应该使用输入框吗?
请建议...

firstly am using dropdownlist for the location in login page
now,
i want to display all the location in page itself and after clicking on location it should ask for password
so should i use inputbox???
plz suggest...

tnx in advance!!!

推荐答案

protected void Page_Load(object sender, EventArgs e)
{
        DropDownList1.AutoPostBack = true;
        TextBox1.Enabled = false;
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
       TextBox1.Enabled = true;
}


这篇关于想要在C#中使用inputbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆