我如何引起回发? [英] How do I cause a Postback?

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

问题描述

我需要在C#中引起回发,我该怎么做?(不能通过按钮或任何其他元素)仅在满足条件的情况下导致回发.

I need to cause a postback in c#, how can i do this? (It can not be through a button or any other element) Just want to cause a postback if a condition is met.

类似

  If(so and so)
      Postback now!
  else
      Do not post back

推荐答案

从注释中看,您似乎正在使用telerik的RadTabs.您可以在选项卡控件上将AutoPostBack设置为true,以便每当用户切换选项卡时都将强制刷新.

From the comments it looks like you are using telerik's RadTabs. You could potentially set AutoPostBack to true on the tab control so that it would force a refresh whenever the user switches tabs.

http://www.telerik.com/help/aspnet/tabstrip/tab_server-side%20events.html

这篇关于我如何引起回发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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