Latest Development Blogs
Forum Topics Post
Browse By Tag
I have a Label control which i want to update wih other intersoft controls. But it seems that the Non-intersoft controls are not getting updated after Flypostback. Can you please tell me how can i achive this??
Please see my attached sample. Sometimes, it requires more settings for non-inetrsoft controls such as ASP.Net control.
Can you please explain me what you are doing in this sample you provided?
Sure. I write back (update) the label after choose an Item in WebCombo. It works well by using WebFlyPostBackManager. If you have a trouble, please provide a simple runable sample that replicates the issue. I will try to modify and make it work for you.
This method does not seem to work when we're on WebGrid UpdateRow event.
I have attached a modified sample for you to look at. Real-life situation is I need to update a total when users update a value in the grid. I cannot use the Grid's total/aggregate feature. They are not suitable for the purpose I am trying to achieve.
You will need to have additional code before set the text label. Hope this helps.
Thank you. It does help.
I tried removing WebFlyPostbackManager and the listener, and this code piece that you gave for the earlier example and it still worked.
'.AspNetAjaxSettings.CreatedAtRuntime = True
'.AspNetAjaxSettings.UpdateControlScripts = True
'.AspNetAjaxSettings.UpdateControlStyles = True
Can you tell me what is the role of WebFlyPostbackManager and the aspnetajaxsettings here? Do I need them?
WebGrid has Ajax mechanism itself. Please remember that WebFlyPostBackManager has similiar functionality with AjaxUpdatePanel. One of its function is to prevent the page FullPostBack in UI and persist all the updates with it.However, in WebGrid, if you only use FlyPostBack process in the WebGrid, using WebGrid ClientAction might be enough. In this scenario, the page also does not require FullPostBack at all.You also don't need AspNetAjaxSettings all the time. This only additional settings to ensure missing styles and scripts during the update. It also would help some update states.If the changes can persist well without those settings, you can comment out the code.
Discover WebUI Studio® 2012
Get Started with WebUI Studio®
WebUI Studio® Edition
For ASP.NET Development
For Silverlight Development
For WPF Development
Learn More About ClientUI