This is purely my lack of understanding, but I everything I have read so far has not really clicked yet, so I thought I would just come out and ask. As a simplified example I have a master page with a RadAjaxManager control and two ContentPlaceHolder area declared. I have a content page that defines content for the two ContentPlaceHolders like so.
and a very simple iterate algorithm on click
If I comment out the Page_Load contents. the iterator works as expected with full page post backs. However, with the AddAjaxSetting() method being called I always receive the exception Object reference not set to an instance of an object. on that line. Button1 has a non null value, TextBox1 has a non null value, and RadAjaxManagerProxy1 has a non null value. What is the piece I am missing here?
Thanks for your time.
| <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolderMain" Runat="Server"> |
| <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> |
| </telerik:RadAjaxManagerProxy> |
| <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> |
| </asp:Content> |
| <asp:Content ID="content5" ContentPlaceHolderID="ContentPlaceHolderRight" runat="server"> |
| <asp:TextBox ID="TextBox1" runat="server" Text="0"></asp:TextBox> |
| </asp:Content> |
and a very simple iterate algorithm on click
| protected void Page_Load(object sender, EventArgs e) |
| { |
| this.RadAjaxManagerProxy1.AjaxSettings.AddAjaxSetting(Button1, TextBox1, null); |
| } |
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| this.TextBox1.Text = (int.Parse(this.TextBox1.Text) + 1).ToString(); |
| } |
If I comment out the Page_Load contents. the iterator works as expected with full page post backs. However, with the AddAjaxSetting() method being called I always receive the exception Object reference not set to an instance of an object. on that line. Button1 has a non null value, TextBox1 has a non null value, and RadAjaxManagerProxy1 has a non null value. What is the piece I am missing here?
Thanks for your time.