还是很困惑 [英] still puzzled

查看:96
本文介绍了还是很困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我双击下拉列表框,看到代码进入下拉列表的

selected_index事件。并且它仍然没有启动。


谢谢

解决方案

您是否将autopostback设置为true?


丹尼尔 <所以***** @ yahoo.com>在消息中写道

news:e%*************** @ tk2msftngp13.phx.gbl ...

我双击在下拉列表框中,看到代码进入下拉列表中的selected_index事件。它仍然没有启动。

谢谢




查看Sub Routine是否已连线参加活动(在程序声明结束时你应该看到一个句柄条款。看看这是否指向正确的控制器


HT


Trevor Benedict

MCSD


是的,我这样做


Public Sub cboProReference_SelectedIndexChanged(ByVal sender)作为

System.Object,ByVal e As System.EventArgs)处理

cboProReference.SelectedIndexChanged


......


我仍​​然使autopostback =" true"

OnSelectedIndexChanged =" cboProReference_SelectedInxChanged"



Trevor Benedict R< tr ******** @ yahoo.com>写在留言中

新闻:0A ********** ************************ @ microsof t.com ...

查看Sub Routine是否连接到事件(在程序结束时
声明你应该看到一个句柄条款。看看这是否指向

正确的控制。
HTH
Trevor Benedict R
MCSD



I double click on the dropdownlist box and see the code goes into that
selected_index event of the dropdownlist. And it still not fire up.

Thanks

解决方案

Do you have autopostback set to true?

"Daniel" <so*****@yahoo.com> wrote in message
news:e%***************@tk2msftngp13.phx.gbl...

I double click on the dropdownlist box and see the code goes into that
selected_index event of the dropdownlist. And it still not fire up.

Thanks




See if the Sub Routine is wired to the Event (at the end of the Procedure Declaration you should see a Handles Clause. See if this is pointing to the correct Control

HT

Trevor Benedict
MCSD


Yes, i do

Public Sub cboProReference_SelectedIndexChanged(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
cboProReference.SelectedIndexChanged

......

and i still make the autopostback="true"
OnSelectedIndexChanged="cboProReference_SelectedIn dexChanged"


"Trevor Benedict R" <tr********@yahoo.com> wrote in message
news:0A**********************************@microsof t.com...

See if the Sub Routine is wired to the Event (at the end of the Procedure Declaration you should see a Handles Clause. See if this is pointing to the
correct Control.
HTH

Trevor Benedict R
MCSD



这篇关于还是很困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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