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.Par ent.Refresh();
help anyone?
--Prince 3 7414
"Prince" <pr******@cox.n et> wrote in message
news:11******** *************** *****@phx.gbl.. . 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.Par ent.Refresh();
You have to remember that asp.net attempts to change the model of ASP
applications a little bit. If you are clicking "RUNAT=Serv er" controls, you
already are refreshing the page, in the sense that the page is reloaded
after posting back data to the server and firing whatever events you have
wired up to any user controls. It isn't the lack of refresh that is
maintaining the appearance and state of your page, it is the fact that
asp.net pages preserve the ViewState by default.
What you'd be better off doing is attaching the specific actions (that you
associate with refresh and that you want to have happen) to the button
control you plan to add.
R.
You can attach a javascript to the button to reload the page.
"Richard K Bethell" <so*****@spammi ngisevil.bad> wrote in message
news:uR******** ******@TK2MSFTN GP12.phx.gbl... "Prince" <pr******@cox.n et> wrote in message news:11******** *************** *****@phx.gbl.. . 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.Par ent.Refresh(); You have to remember that asp.net attempts to change the model of ASP applications a little bit. If you are clicking "RUNAT=Serv er" controls,
you already are refreshing the page, in the sense that the page is reloaded after posting back data to the server and firing whatever events you have wired up to any user controls. It isn't the lack of refresh that is maintaining the appearance and state of your page, it is the fact that asp.net pages preserve the ViewState by default.
What you'd be better off doing is attaching the specific actions (that you associate with refresh and that you want to have happen) to the button control you plan to add.
R.
thanks, I'll try both. -----Original Message----- You can attach a javascript to the button to reload the
page. "Richard K Bethell" <so*****@spammi ngisevil.bad> wrote
in messagenews:uR******* *******@TK2MSFT NGP12.phx.gbl.. . "Prince" <pr******@cox.n et> wrote in message news:11******** *************** *****@phx.gbl.. . > 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.Par ent.Refresh(); You have to remember that asp.net attempts to change
the model of ASP applications a little bit. If you are
clicking "RUNAT=Serv er" controls,you already are refreshing the page, in the sense that the
page is reloaded after posting back data to the server and firing
whatever events you have wired up to any user controls. It isn't the lack of
refresh that is maintaining the appearance and state of your page, it
is the fact that asp.net pages preserve the ViewState by default.
What you'd be better off doing is attaching the
specific actions (that you associate with refresh and that you want to have
happen) to the button control you plan to add.
R.
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
by: Lew |
last post by:
Hi all,
I'm trying to create a page that has a user-selectable page auto-refresh
option (IE 5.5). Essentially, it's a page that contains a checkbox, when
the user checks the checkbox, I'd like the page to auto-refresh every 4
seconds....if the user un-checks the checkbox, I'd like to turn off the auto
refresh.
The page is as follows:
|
by: ajay |
last post by:
How to make a web page getting refreshed after a given time interval automatically.
HTML Code plz.
Tx
Ajay
|
by: Alan Z. Scharf |
last post by:
1. I have a chain of six asynch callbacks initiated by a button, and want
the page to refresh at the end of each callback to display
A. Results of a SQLServer query showing cumulative running time, and
B. A progress bar.
2. I have this working with a refresh timer:
<META http-equiv="refresh" content="5">
|
by: Mike |
last post by:
On my web app I allow the user to enable or disable the refreshing of the
page. I notcied that if the browser window is minimized the page does not
refresh, or if it sits a long time without any user interaction(does not
happen often) the page does not refresh. Is this a code issue or just how
refresh works?
| |
by: PK9 |
last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is
actually calling my last onClick event. I thought that asp.net was supposed
to be stateless in that it shouldn't remember that I clicked a button before
the refresh. Here is what is going on:
1) Page Loads
2) User enters some values, clicks the "Save" button
3) The onClick event handler for the save button saves the data to the
database and the page is...
|
by: Fred Nelson |
last post by:
Hi:
I have a VB.NET web application and I need to find a way to cause a page
refresh from within my application.
Does anyone know how to force the browser to refresh the current page?
Thanks very much for your help!
Fred
|
by: phforum |
last post by:
Hi,
I wrote a PHP page for user input the information to search the
database. And the database data will update every second. I want to
set the auto refresh to get the data from database every minute. But
the page always display the dialog box ask me to resend the
information. How to disable this warning message. I using POST and
REQUEST to get the data from user input page.
Thanks all
|
by: Dan |
last post by:
Hi,
i'm not sure to understand the difference between refreshing the pagina by
clicking on 'refresh' in the browser and a postback.
What i think it is:
Suppose a page with a form containing a textbox and a dropdowlist: and a
button to start something n code-behind:
a refresh doesn't send any value back to the server but with a postback, the
values are sent?
But then, which role does Viewstate play in the postback proces?
|
by: =?Utf-8?B?Sm9obg==?= |
last post by:
Hi,
I used the following code to refresh the parent page, and it works very well
(Thanks to Peter Bromberg ").
Response.Write("<script language='javascript' type='text/javascript'{
window.opener.location = 'Default.aspx?Reload=100'; }</script>");
Response.Write("<script language='javascript' type='text/javascript'{
self.close(); }</script>");
|
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...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |