WebFlyPostBackManager - Can't get simple page working

1 reply. Last post: March 30, 2011 12:08 AM by Lili Khiung
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
Jim DresserMember

Ok, I'm just starting to use Intersoft's controls, so I'm sure that this is my error, but I can't figure it out. All I want to do is replace Microsoft's Update Panel with your WebFlypostbackManager. I've looked at the samples and I've read the forum posts, but I still can't get this simple sample working.

What am I doing wrong?  Why won't a <asp:Textbox> update  ??

Thanks,

Jim - Using latest version of your controls, Windows 7, and Visual Studio 2010


<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestFlyBack.aspx.cs" Inherits="MasterController.Filter.TestFlyBack" %>

<%@ Register Assembly="ISNet.WebUI.WebDesktop" Namespace="ISNet.WebUI.WebDesktop" TagPrefix="ISWebDesktop" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<ISWebDesktop:WebFlyPostBackManager ID="uiService" runat="server" BlockPageUIOnBusy="True" EnableUIMode="True" ServiceUrl="TestFlyBack.aspx">
<FlyPostBackSettings PostControlState="true" PostHiddenFields="true" PostInputControls="True" PostViewState="True" />
</ISWebDesktop:WebFlyPostBackManager>

<asp:Button ID="Button_PartLookup" runat="server" Text="Lookup -->" OnClick="Button_PartLookup_Click" />
<br />
<br />
Time =
<asp:TextBox ID="TextBox_Time" runat="server" Width="350"></asp:TextBox><br />
</div>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ISNet.WebUI.WebDesktop;



namespace MasterController.Filter
{
public partial class TestFlyBack : System.Web.UI.Page
{

WebFlyPostBackListener listener = null;

protected void Page_Load(object sender, EventArgs e)
{
// this is the only code needed for the automatic callback feature
listener = new WebFlyPostBackListener(this);

if (!IsPostBack) //set a default value when page loads
{
TextBox_Time.Text = "Initial Time=" + System.DateTime.Now.ToString();
}
}



protected void Button_PartLookup_Click(object sender, EventArgs e)
{
TextBox_Time.Text = "Updated Time=" + System.DateTime.Now.ToString();
}


}
}

All times are GMT -5. The time now is 10:01 AM.
Previous Next