这样也报错,不运行?

jinglong5061 2008-01-14 03:30:14
protected void Page_Load(object sender, EventArgs e)
{
if(!Page.IsPostBack)
{
DropDownList2.Enabled = false;
Button1.Enabled = false;
}
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
DropDownList2.Enabled = true;
}
protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
{
Button1.Enabled = true;
}

运行完PAGA_LOAD,随便怎么点DROPDOWNLIST1,,,DropDownList1_SelectedIndexChanged这个都不运行.
...全文
126 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
panw520 2008-01-16
  • 打赏
  • 举报
回复
DropDownList 里面怎么会有Onfocus事件呢,你不会在javascript中写呀
yilanwuyu123 2008-01-16
  • 打赏
  • 举报
回复
事件里面找不到 就在ddl.focus()里弄
jinglong5061 2008-01-16
  • 打赏
  • 举报
回复
DropDownList 里有ONFOCUS事件.怎么我找不到呢`!~?
Senior碎催 2008-01-16
  • 打赏
  • 举报
回复
倒 手可真快...... 5楼的 设置ddl1的onfocus事件就可以了
jinglong5061 2008-01-15
  • 打赏
  • 举报
回复
DropDownList1 必须改变后才可以点击 DropDownList2,可不可以是只要鼠标到了DropDownList1.TEXT里面就开启DropDownList2呢?
bird1983 2008-01-14
  • 打赏
  • 举报
回复
DropDownList1的autopostback设为true 正解
cc_net 2008-01-14
  • 打赏
  • 举报
回复
ASP.NET 和 WINFORM不一样,要回传
yuexiaxiaochongzi 2008-01-14
  • 打赏
  • 举报
回复
DropDownList1的autopostback设为true
jinglong5061 2008-01-14
  • 打赏
  • 举报
回复
删除事件后,重新双击进去也还是一样..DropDownList2不可选..

110,502

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧