禁用控制而不回发 [英] Disable control without postback

查看:65
本文介绍了禁用控制而不回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在没有

回发的情况下更改下拉列表的启用属性,具体取决于另一个下拉列表中的选择?


选择Case ddlReport .SelectedValue


案例利润


ddlFormat.Enabled =真


案例& ;试算表


ddlFormat.Enabled = False


结束选择

Is there any way to change the enabled property of a dropdownlist without a
postback, depending on the selection in another dropdownlist?

Select Case ddlReport.SelectedValue

Case "Profit"

ddlFormat.Enabled = True

Case "Trial Balance"

ddlFormat.Enabled = False

End Select

推荐答案

Geoff,
Geoff,
有没有办法在没有
回发的情况下更改下拉列表的启用属性,具体取决于另一个选择下拉列表?
Is there any way to change the enabled property of a dropdownlist without
a
postback, depending on the selection in another dropdownlist?







Cor



No

Cor


" Cor Ligthert" <无************ @ planet.nl> schrieb:
"Cor Ligthert" <no************@planet.nl> schrieb:
有没有办法在没有
回发的情况下更改下拉列表的启用属性,具体取决于另一个下拉列表中的选择?
Is there any way to change the enabled property of a dropdownlist without
a
postback, depending on the selection in another dropdownlist?





No




我认为可以使用

禁用另一个控件没有回发的JScript / VBScript,但这里有点偏离主题。


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>



I assume that it''s possible to disable another control using
JScript/VBScript without a postback, but that''s slightly off-topic here.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Geoff,

这听起来像是在谈论ASP.NET。


正如Herfried所说。如果你想在服务器方面做,那么你需要回复
。如果您不想要回发,那么您将不得不使用JavaScript或VBScript进行客户端




有关客户端JavaScript的帮助&安培; VBScript你可能想问这个

在大厅里在microsoft.public.dotnet.framework.aspnet

新闻组之一。


希望这有帮助

Jay

" Geoff" < CB **** @ earthlink.net>在留言中写道

news:6l *************** @ newsread3.news.pas.earthlin k.net ...
Geoff,
It sounds like you are talking ASP.NET.

As Herfried suggests. If you want to do it server side, then you need to do
a postback. If you don''t want a postback, then you will have to do it client
side with JavaScript or VBScript.

For help with client side JavaScript & VBScript you may want to ask this
"down the hall" in one of the microsoft.public.dotnet.framework.aspnet
newsgroups.

Hope this helps
Jay

"Geoff" <cb****@earthlink.net> wrote in message
news:6l***************@newsread3.news.pas.earthlin k.net...
有没有办法在没有
回发的情况下更改下拉列表的启用属性,具体取决于另一个下拉列表中的选择?

选择Case ddlReport.SelectedValue

案例利润

ddlFormat.Enabled =真

案例试算平衡

ddlFormat.Enabled = False

结束选择
Is there any way to change the enabled property of a dropdownlist without
a
postback, depending on the selection in another dropdownlist?

Select Case ddlReport.SelectedValue

Case "Profit"

ddlFormat.Enabled = True

Case "Trial Balance"

ddlFormat.Enabled = False

End Select



这篇关于禁用控制而不回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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