473,508 Members | 2,247 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Refresh expicitly my page

satiss7pwr
41 New Member
hi,i am have wbapplication in wich there so many web pages.My problem is that when i do a changes to a page and run the application and go to that page i have to refresh that page expicitly,every time i have to refresh that page.And also i got the value of previos data on that page ,i got the new data when i refresh the page.
i hope u all understand what i want to say.
thanks in advance
Jan 20 '10 #1
4 1336
sanjib65
102 New Member
Suppose you made a change in your application, say in the Default.aspx you add a button and put some code in the code behind, in that case if you closed the IE before the change, you don't have to refresh page. You'd open up the IE nd get the changed-page.
But if you did the change in your application opening up IE, then you have to refresh the page to get the current page. There is nothing abnormality.
Jan 20 '10 #2
satiss7pwr
41 New Member
this is page that i have to refresh all time .i m fill text box from database value
Expand|Select|Wrap|Line Numbers
  1.  protected void Page_Load(object sender, EventArgs e)
  2.     {
  3.  
  4.         if (!IsPostBack)
  5.         {
  6.             OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=D:\\PMDS\\App_Data\\Doc_App.mdb;");
  7.             OleDbCommand cmd = new OleDbCommand("Select Member_ID,Member_Name,Email_ID from Member_Master where Member_ID=" + Session["mid"] + " ", con);
  8.             OleDbDataReader dr;
  9.             con.Open();
  10.             dr = cmd.ExecuteReader();
  11.  
  12.             while (dr.Read())
  13.             {
  14.  
  15.                 txtmid.Text = dr.GetInt32(0).ToString();
  16.                 txtmname.Text = dr.GetString(1);
  17.                 eid.Text = dr.GetString(2);
  18.             }
  19.             //Response.Redirect("AllProject.aspx");
  20.             con.Close();
  21.         }
  22.  
  23.     }
Jan 21 '10 #3
Frinavale
9,735 Recognized Expert Moderator Expert
I'm really not sure what your problem is...so I'll just give you a generic answer to what I think you're talking about.

Browsers (Internet Explorer, FireFox, Chrome, Safari, etc) cache web page. If you do not specify that the page should be refreshed then it will display the cached version of the web page.

You can change the settings in your browser so that they don't cache pages like this. This is a useful setting especially while developing/testing when there are many changes being made to your server code.

What I don't understand is why your page is still cached when you "run the application". It shouldn't be....but then again I'm not entirely sure what your problem is.

Could you please try to explain the problem again...maybe list some steps that you are doing that cause the problem.

-Frinny
Jan 25 '10 #4
sanjib65
102 New Member
Please try
Expand|Select|Wrap|Line Numbers
  1. protected void Page_Load(object sender, EventArgs e) 
  2.     { 
  3.  
  4.         if (IsPostBack) 
  5.         { 
  6.  
instead of

Expand|Select|Wrap|Line Numbers
  1. protected void Page_Load(object sender, EventArgs e) 
  2.     { 
  3.  
  4.         if (!IsPostBack) 
  5.         { 
  6.  
I hope your problem will be solved.
Jan 25 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
12887
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...
1
10837
by: Marco Maroni | last post by:
How to force image refresh on client browser ? Is ti possible to force the refresh of the same image (tha was changed server-side) to the client, without user press Contrl+F5 in IE ? - Marco
2
23474
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an...
1
3058
by: francois | last post by:
I have a ASPX form with a dropdownlist that makes a post back (to the same page of course, just a normal asp.net postback) That page also has an auto refresh javascript as it needs to refresh its...
9
7708
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...
0
1667
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
3
2085
by: Kevin | last post by:
Hi guys, I want to refresh some pages every 2 seconds. however, these html pages are not in my site, they could be any pages from yahoo.com or msn.com. I can create a page, which redirect to...
10
23384
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? ...
8
9383
by: Jason S | last post by:
Hi, is there any way of getting my VB (6.0) program to automatically 'Refresh' an IE window that might be active (window status not applicable). It needs to be able to determine which active IE...
10
32827
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...
0
7231
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,...
0
7336
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,...
0
7504
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...
1
5059
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...
0
4720
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...
0
3211
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...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
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 ...
0
432
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...

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.