部分更新页面 [英] Update page partially
本文介绍了部分更新页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过单选按钮单击禁用页面的某些文本框.我已经尝试过使用更新面板及其其他属性,但没有得到结果.如何使之成为可能?请帮助.
I want to disable some of the textboxes of my page on a radio button click. I have tried it with update panel and its other attributes but didnt get result.how can i make it possible? Plz help.
推荐答案
为此,您需要将以下代码写入单击事件方法的单选按钮中.
textbox.Enabled = false;
并且请确保单选按钮中的AutoPsotback属性应为true,所有文本框和单选按钮应位于同一更新面板标签中.
Hi,
For this you need to write below code into the radio button on click event mehtod.
textbox.Enabled = false;
And please makesure AutoPsotback property should be true in radio button and all the textbox and radio button should be in same update panel tag.
这篇关于部分更新页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文