473,661 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Refresh my WebPage ?

Hi All,

How may I refresh my page, for exemple, when the user click a
WebControls.But ton on my form ? (Or on another frame ?)

Thx for your help !
Nov 18 '05 #1
4 1445
Yes, I will define my question...

I have a webpage with 3 frames.
- A header on the top (The header never change) (Frame 1)
- A Content frame (This frame contents menus with link on the left side of
the screen) (Frame 2)
- A Main Frame. (Frame 3)

First, I have a Login page (In the Main Frame) . When the user is logged
properly (with a user name) , I "read" his Full Name and his Application
Permissions from my Database. I Change the label.text in my Frame 2
(Content) and I hide some "Link" based on user's permissions.

My problem is that even if I change the label.text property and the
Link.Visible property on my Frame 2 (Content), the change to the properties
are not "visible" until the user click on the Refresh button of his
browser...

I would like to Refresh the "Content" frame when the user click the logon
button...

I understand that the "Main" frame is refreshed, but what about the others
frames ???
Also... If the Session.End event if fired, I want to be able to hide every
link on the Content Frame... How may I access the "content" frame from the
Event ???

Thx a lot for helping me...

Eddie

"Kikoz" <an*******@disc ussions.microso ft.com> wrote in message
news:F8******** *************** ***********@mic rosoft.com...
Hi,

Every click on Button control will initiate a PostBack unless your button listens to some client event like "onclick='retur n false;'". It means your
page will be refreshed anyway. You probably need to define your question
with more details.
Regards.

Nov 18 '05 #2
hate to say this but lose the frames and use controls. Life will be MUCH
easier for you

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Eddie" <ma************ *@videotron.ca> wrote in message
news:uN******** ******@TK2MSFTN GP09.phx.gbl...
Yes, I will define my question...

I have a webpage with 3 frames.
- A header on the top (The header never change) (Frame 1)
- A Content frame (This frame contents menus with link on the left side of
the screen) (Frame 2)
- A Main Frame. (Frame 3)

First, I have a Login page (In the Main Frame) . When the user is logged
properly (with a user name) , I "read" his Full Name and his Application
Permissions from my Database. I Change the label.text in my Frame 2
(Content) and I hide some "Link" based on user's permissions.

My problem is that even if I change the label.text property and the
Link.Visible property on my Frame 2 (Content), the change to the properties are not "visible" until the user click on the Refresh button of his
browser...

I would like to Refresh the "Content" frame when the user click the logon
button...

I understand that the "Main" frame is refreshed, but what about the others
frames ???
Also... If the Session.End event if fired, I want to be able to hide every
link on the Content Frame... How may I access the "content" frame from the
Event ???

Thx a lot for helping me...

Eddie

"Kikoz" <an*******@disc ussions.microso ft.com> wrote in message
news:F8******** *************** ***********@mic rosoft.com...
Hi,

Every click on Button control will initiate a PostBack unless your
button listens to some client event like "onclick='retur n false;'". It means your
page will be refreshed anyway. You probably need to define your question
with more details.

Regards.


Nov 18 '05 #3
Totally agree with Curt_C on this one. Lose your frames, man!! You'll end up with cleaner application with less bugs/problems/headaches/sleepless nights :) You need those frames only to have your header and links always visible even if the Main page has a lot of things with huge scroll bar, right? Well, believe us: no one of your visitors cares about that! Your header can be a simple include file if it's static or user control if it contains some logic. Your links got to be a user control or even server control if you need to reuse it in other projects. Creation of user control is far easier than maintaining jscripts that would take care of refreshing your frames. C# events will help your classes to communicate with one another during request life. There is no other way to do what you want other than client scripting simply because your frames are different requests with separate life cycles. They are three separate instanses of three separate classes as far as iis concerns. And you can control the flow of your logic only by talking to DOM in visitor's browser.
Nov 18 '05 #4
Okay... I beleive you ! :o)
How may I Create a Server Control ?
"Kikoz" <an*******@disc ussions.microso ft.com> wrote in message
news:C7******** *************** ***********@mic rosoft.com...
Totally agree with Curt_C on this one. Lose your frames, man!! You'll end

up with cleaner application with less bugs/problems/headaches/sleepless
nights :) You need those frames only to have your header and links always
visible even if the Main page has a lot of things with huge scroll bar,
right? Well, believe us: no one of your visitors cares about that! Your
header can be a simple include file if it's static or user control if it
contains some logic. Your links got to be a user control or even server
control if you need to reuse it in other projects. Creation of user control
is far easier than maintaining jscripts that would take care of refreshing
your frames. C# events will help your classes to communicate with one
another during request life. There is no other way to do what you want other
than client scripting simply because your frames are different requests with
separate life cycles. They are three separate instanses of three separate
classes as far as iis concerns. And you can control the flow of your logic
only by talking to DOM in visitor's browser.
Nov 18 '05 #5

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

Similar topics

2
7293
by: kp. | last post by:
I am writing a very short HTML code such that i can refresh a third party webpage. A sample of it is as follow: <html> <head> <meta http-equiv="no-cache"> <META HTTP-EQUIV="refresh" CONTENT="5"> <title>Refresh Page</title> </head> <FRAMESET cols="100%">
1
1435
by: Jack Nation | last post by:
I have one webpage with a javascript game that will not respond with a context menu when I right-click my mouse on it. However, when I open View and select "Refresh", the page will refresh. All other webpages work OK. Incidentally, when I hit the F5 key, or go to View and select "Refresh", the page will refresh. What am I missing? -- Jack Nation http://www.cedarnet.org/jnation
1
3357
by: ppatel | last post by:
Problem I have a problem with web image button control click event. The click event does not get trigger until it has not been clicked once or page refresh occures(which is fine). When click event fires first time it executes code associate with click event(As I expected). the problem is when you refresh page it fires a click event automatically. I looked around many posts and did not find any topics about this problem. Infact the same...
3
10023
by: Sameer | last post by:
I have a webpage that has a link button. This link button on click opens up a new page. This is what is happening: 1. Load the web page. 2. Click on the link. 3. Refresh the web-page. Result: The webpage gets refreshed and the link buttons onClick event is fired.
4
3146
by: batista | last post by:
Hello All, my prob. is that i have a web server, and i want it to send fresh data,whenver it is available(from sum other source), to a webpage. Now i used refresh, but i want to use an alternative. I heard that refresh is called pull scheme, and the one i'm looking for is caled push scheme.
2
9920
by: Bruno | last post by:
Hi ... I have a webpage popup (lets call it POPUP) which refreshes the opener window (this one we call PARENT) when we close it, saying we want to save data. For this, we use top.oWndOpener.refresh();
1
2072
by: rockdale | last post by:
Hi, all I am coding a asp.net application as user data entry and report interface. We also have another C#.net appplication (a server) does some other stuff, my webserver can send and receive message with the C#.net server application. Now the C#.net server application group want me to refresh my webpage to show the real time status when I receive a message from them. I do not think I can do that (correct me if I am wrong). On webserver...
10
2725
by: Bill Nguyen | last post by:
I would like to be able to get an active browser window to refresh the URL (reload) every 5 minutes. Is it possible in VB.NET? Thanks Bill
3
3582
by: lezzo | last post by:
Hi Guys, I am new to this forum and find very interesting. I need your help in one of the script. I got a MySQL table bid_amount, and i want that if some new data comes in this table and where the table data is shown on webpage, that webpage need to be auto refresh. To make it more easy to understand
0
8428
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
8341
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
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
8630
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...
1
6181
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
5650
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();...
0
4177
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...
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1740
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.