在属性窗口asp.net Visual Studio 2010中不显示dropdownlist事件 [英] dropdownlist events does not show in properties window asp.net Visual Studio 2010

查看:127
本文介绍了在属性窗口asp.net Visual Studio 2010中不显示dropdownlist事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近发现下拉列表事件未显示在属性窗口中. 我很失望. 我已经在Visual Studio中讨厌asp.net设计师.它缓慢而充满丑陋的东西. 请帮我.我需要自动生成事件,而不要手工编写.

I recently found that dropdownlist events are not shown in properties window. I was disappointed. I already hate asp.net designer in visual studio. its slow and full with ugly things like this. please help me. I need to generate events automatically not to write it by hand.

推荐答案

如果要创建OnSelectedIndexChanged事件,可以在设计视图中双击DropDownList.

If you want to create OnSelectedIndexChanged Event you can double click your DropDownList in design view.

如果不尝试编写此代码:

if not try writing this :

myDropDownList.SelectedIndexChanged += 

,然后按两次Tab键.因此它将为您创建事件处理程序.那么您需要复制处理程序名称并将其粘贴到控件标记中.

and then press tab 2 times. so it will create event handler for you. then you need to copy your handler name and paste it in your control markup.

这篇关于在属性窗口asp.net Visual Studio 2010中不显示dropdownlist事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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