事件调用的回发问题 [英] postback problem for event call

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

问题描述

我有网络应用程序...一个页面项目库存有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[^].

Inside TextChanged Event of textbox1, set focus on textbox2 like...
textbox2.Focus();


这篇关于事件调用的回发问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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