WebFlyPostBackManager - Updating WebInput.Text

5 replies. Last post: November 25, 2009 2:02 AM by Julia Wijaya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Alex HMember
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.

 

All times are GMT -5. The time now is 2:08 AM.
Previous Next