Forcing a page to refresh from a user control

D

damiensawyer

Hello all,

I have a master page that hosts an ASCX control and a
contentplaceholder. The control displays a list of document headings.
When the user clicks on a heading, I wish to redirect to the 'display
note' page (which loads into the content placeholder on the master
page).

The issue is, that when they then click another heading, the page
doesn't seem to redirect (I'm guessing because the browser is already
at that URL), the page_load event doesn't fire and the document doesn't
update.

Any tips how to get around this?

I've tried getting a reference to the page using the following (which
works)
Dim oPage As Page =
CType(Me.Page.Master.FindControl("ContentPlaceHolder1"),
ContentPlaceHolder).BindingContainer.Page

I thought that, if I could get a page reference to 'display note' and
strongly type it then I could call a method on it to do the page
update... however, when I try and create a reference to the class by
including
<%@ Register Src="../Forms/frmDisplayNote.aspx" TagName="frmDisplay"
TagPrefix="fm" %>

I get 'circular reference' errors (I'm guessing because frmDisplayNote
has a reference to the master_page which in turn has a reference to my
control.

Can someone point me towards to the best way to do this?

Thanks very much for your help.


Damien Sawyer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top