Master Page and Update Panel problem
Posted on 2007-10-03
Good morning Experts,
I have a Master page with a script mgr on it and a Content page with an Update Panel.
On the Master page i have a textbox (ID = txtSearchByNumber)
and a imagebutton (ID= ibtnSearchByQuote) .
I expose the textbox.text property on the master page as QuoteNumber.
I registered the imagebutton click event like this: ScriptManager1.RegisterAsyncPostBackControl(ibtnSearchByQuote)
I have this tag on the Content page: <%@ mastertype virtualpath="~/Quote.master" %>
In the Page Load of the Content page, I am able to get the value of the textbox from the Master Page by
I run a Select statement using the Master.QuoteNumber value in my where clause. All seems well. All the textboxes are set with the proper values when I step throug the code behind of the Content page.
Problem is that the Master Page seems to load again and the changes are wiped out