473,804 Members | 2,008 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Forcing a page to refresh from a user control

Hello all,

I have a master page that hosts an ASCX control and a
contentplacehol der. 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.M aster.FindContr ol("ContentPlac eHolder1"),
ContentPlaceHol der).BindingCon tainer.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="frmDis play"
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

Feb 15 '06 #1
0 1142

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
12928
by: Scott | last post by:
I have a clickable graph that resides on page 1. If user clicks a data point on the graph, the page runs again yeilding a 2nd graph that shows a more detailed graph. Problem is, I have a recordset table on the 2nd graph page and because the user gets to it by clicking the graph, the page doesn't properly post to render the recordset table. I can click "Refresh" on 2nd page and table displays fine. Is there an ASP refresh command that...
4
9136
by: Stephajn Craig | last post by:
I have one page that may take a while to process on the server, and I'd like to implement a please wait message on this page when it posts back to the server and does its business. The page is an ASP.NET webform that contains a Web User Control. The Web User Control is doing all of the work posting. How can I inform the user of what is happening at the server while the data from this web user control is being processed? --
1
1320
by: Philip Townsend | last post by:
I have a user control which displays the contents of a shopping cart. I wnat it to update everytime an item is added or deleted from the cart. I have created a button which edits a Session object, then I want the usercontrol to display the contents of the session object. Problem: The user control will not update until it is refreshed. Is there any way to force the user control to refresh? *** Sent via Developersdex...
5
2425
by: Dan | last post by:
We have a simple site. It's a frameset with two frames a left and a right. The left frame is essentially a list of records from a database (using a server-side repeater control). When you click on one of the items in the left frame, it targets the right frame and displays a form prefilled with information for the item you clicked. The problem is the left frame's list just shows the names of the items, and the name of the item is...
2
3560
by: Earl Teigrob | last post by:
I have run into a situation where I need to run the !IsPostBack code under one circumstance, even if it is a postback. Something that may complicate matters more is that this is a double postback event. I have a filemanager type application that allows me to dynamically create a new folder on the web server. After the new folder is created, I need to reread the directory and display all the current folders in this directory to the user....
3
7428
by: Prince | last post by:
How can I refresh a page from the code behind pages? I know Server.Transfer("<same page>") works. However, I am refreshing a page from a Button within a user control which has it's own code behind page. I don't know the name of the page of the user control. Within the user control code behind, I'm looking for something like, this.Parent.Parent.Refresh();
0
3169
by: Chris Ericoli | last post by:
Hi, I am working with an 'in session' ado dataset with an asp.net application. My dataset is comprised of two tables, one of which maintains a few calculated datacolumns. For some reason these datacolumns do not trigger their expression when other columns from which the expressions are derived are updated. Below is a basic example of what I am doing. User enters values into an asp.net form and clicks a button. Retrieve dataset from...
3
9569
by: MyWebTV | last post by:
how to refresh an indiviual user control without refresh entrire page
2
2147
by: jeanray | last post by:
I have a site made entirely with AJAX, base PhP and MySQL, so the is only one page (index.php). The user goes through various selections and an image is formed (on the server), then sent back to the client to show the updated image (SAME IMAGE NAME) It did not work "all the time" (IE7). I realised that the first image was stored in the cache and that, when the new image came, the image displayed was the one from the user's CACHE! Easy...
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10595
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.