事件调用的回发问题 [英] postback problem for event call
问题描述
我有网络应用程序...一个页面项目库存有gridview谁有3个文本框...
当我插入第一个文本框的值时,它会计算文本框2和3的值... .calculation函数我把textbox1文本更改事件....
我的问题是当textbox1 autopost返回值为true时,textchang事件调用bt它失去了焦点...插入textbox1的值后我想专注于textbox2 ...
如果我的textbox1 autopostback值为false然后我的textchanged事件没有被调用...给我解决方案...
I have web application...one page item stock have gridview who have 3 textbox...
when i insert value of 1st textbox it calulates the value of textbox 2 and 3....calculation function i put on textbox1 text change event....
My problem is that when textbox1 autopost back value is true that time textchang event call bt it lost focus...after inserting value of textbox1 i want to focus on textbox2...
if i textbox1 autopostback value false then my textchanged event not called...give me solution...
推荐答案
使用 UIElement.Focus方法 [ ^ ]。
内部TextChanged
事件textbox1
,将焦点设置在textbox2
之类...
Use UIElement.Focus Method[^].
InsideTextChanged
Event oftextbox1
, set focus ontextbox2
like...
textbox2.Focus();
这篇关于事件调用的回发问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!