Hi,
I have a really simple scenario here where i have a button in a panel of which is then ajaxified with the radajaxmanager as below. The problem i see here is that every second postback a standard (non-asyncronous) postback is occurring as shown by the IsAjaxRequest property being displayed in the alert. Is there something really obvious i am missing here ?
Thanks
Ady
public partial class WebForm2 : System.Web.UI.Page |
{ |
Panel panel; |
Button button; |
protected void Page_Load(object sender, EventArgs e) |
{ |
AddControls(); |
} |
void AddControls() |
{ |
//Create controls |
panel = new Panel(); |
button = new Button { Text = "Update" }; |
//Add event handler |
button.Click += new EventHandler(button_Click); |
//Add controls |
Form.Controls.Add(panel); |
panel.Controls.Add(button); |
//Register with manager |
RadAjaxManager1.AjaxSettings.AddAjaxSetting(panel, button, null); |
} |
void button_Click(object sender, EventArgs e) |
{ |
RadAjaxManager1.Alert(RadAjaxManager1.IsAjaxRequest.ToString()); |
} |
} |