iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
using System; using System.Collections; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Xml.Linq; using ISNet.WebUI; using ISNet.WebUI.WebDesktop; namespace MDSPortal.Web.Partner { public partial class FlyDemo : System.Web.UI.Page { WebFlyPostBackListener listener = null; protected void Page_Load(object sender, EventArgs e) { listener = new WebFlyPostBackListener(this); } [WebFlyPostBackMethod()] public void Demo2() { ListBox1.Items.Add(new ListItem("Success!", "0")); WebInput1.Text = "Success!"; WebFlyPostBackManager1.ClientAction.UpdateViewState(); //WebFlyPostBackManager1.ClientAction.RenderControl(ListBox1); WebFlyPostBackManager1.ClientAction.RenderControl(WebInput1); } } }
As always, thank you in advance.
Hi Alex,
To get the value of WebInput, you need to set PostHiddenFields and PostInputContols properties to true in WebButton>>FlyPostBackSettings.
Hope this help.
Regards,
Julia
RenderControl can only be use for asp.net control (i.e ASP Button, Asp Textbox). But in Intersoft's control, you need to use RequiresUiRefresh. Here is the modified code:
public void Demo2()
{
ListBox1.Items.Add(new ListItem("Success!", "0"));
WebInput1.Text = "Success!";
WebFlyPostBackManager1.ClientAction.RenderControl(ListBox1);
WebInput1.RequiresUIRefresh = true;
}
Hope this can help.
Thank you for your reply.
Your example demonstrates how to update the property of a Intersoft Control.
However, I still expreience problems if I'm trying to ACCESS the value of an Intersoft Control.
Suppose on a WebButton_Clicked FlyPostBack, I wish to write the value of WebInput.Text to a database. Currently, I am unable to do so..... All attempt at doing this result in an empty string being stored to the databse, despite the WebInput control clearly having a Text value.
Is there a special way to do this using FlyPostBackManager?
Julia,
Yes that helps greatly... thank you.
How is one supposed to know this? I'm unable to find a clear document outlining the fundamentals of each control. Sure, I see the Method and Property list of FlyPostBackManager and WebButton, but the description of each Method/Property isn't always descriptive enough to learn what you stated above?
Glad to hear the solution helps
I will inform our documentation team regarding your valuable feedback. Currently, our control's documentation is keep improving to provide our customer with complete description regarding our control. For now, if you have question regarding our controls, you can always ask here in the forum. We will try to provide you the best solution.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname