This is a migrated thread and some comments may be shown as answers.

Update controls in default file

1 Answer 21 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Philip Saltskog
Top achievements
Rank 2
Philip Saltskog asked on 12 Sep 2008, 09:38 AM
Hello,

I'm using RadAjaxManager in a usercontrol to update controls. Now I've a placeholder in the parent page that I need to update when a button have been clicked in the usercontrol. Is that possible?

The page is default.aspx and I get the ref to the placeholder like this.

            Dim myPage As _default_Start = MyBase.Page
            Dim litMainText As Literal = myPage.PlaceHolderMain.FindControl("litMainText")
            litMainText.Text = "Test text !!!"
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(imgbLogIn, myPage.PlaceHolderMain, RadAjaxLoadingPanel1)

I get an error here. Any ideas how I can update the control in the page from the control?

/Thanks

1 Answer, 1 is accepted

Sort by
0
Philip Saltskog
Top achievements
Rank 2
answered on 12 Sep 2008, 12:43 PM
Tags
Ajax
Asked by
Philip Saltskog
Top achievements
Rank 2
Answers by
Philip Saltskog
Top achievements
Rank 2
Share this question
or