473,382 Members | 1,165 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

How to not cache a particular web form?

I have a popup window, which consist of a combobox. And, the combobox's item
collection is filled by records in database. Whereas, when I close the popup
window and add more records into the database, then open that popup window
again, but the combobox won't show those new records. I suspect that the
content of the popup window is being cached and won't refresh. Is that so?

Please help...thanks.

FYI, following is my page_load code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim strAdomdConnectionString As String

Try
If Not Me.IsPostBack Then
Me.btnOK.Attributes.Add("onclick", "Done('" &
txtConnectionString.Text & "');")

FillDatabaseCombobox()

With mdtsAnalysisDB.Tables(0).Rows(cboDatabase.Selected Index)
strAdomdConnectionString =
BuildAdomdConnectionString(CStr(.Item("ServerName" )),
CStr(.Item("AnalysisDBName")), CStr(.Item("UserName")),
CStr(.Item("Password")))
End With

FillCubeCombox(strAdomdConnectionString)
End If

Catch ex As Exception
Throw New ApplicationException(ex.Message.ToString)
End Try
End Sub

Nov 19 '05 #1
2 1076
Your suspicion seems reasonable. You can add the following directive to the
top of the ASPX page:

<%@ OutputCache Location="none" %>

-HTH
"Chrysan" <Ch*****@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
I have a popup window, which consist of a combobox. And, the combobox's
item
collection is filled by records in database. Whereas, when I close the
popup
window and add more records into the database, then open that popup window
again, but the combobox won't show those new records. I suspect that the
content of the popup window is being cached and won't refresh. Is that so?

Please help...thanks.

FYI, following is my page_load code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim strAdomdConnectionString As String

Try
If Not Me.IsPostBack Then
Me.btnOK.Attributes.Add("onclick", "Done('" &
txtConnectionString.Text & "');")

FillDatabaseCombobox()

With
mdtsAnalysisDB.Tables(0).Rows(cboDatabase.Selected Index)
strAdomdConnectionString =
BuildAdomdConnectionString(CStr(.Item("ServerName" )),
CStr(.Item("AnalysisDBName")), CStr(.Item("UserName")),
CStr(.Item("Password")))
End With

FillCubeCombox(strAdomdConnectionString)
End If

Catch ex As Exception
Throw New ApplicationException(ex.Message.ToString)
End Try
End Sub

Nov 19 '05 #2
Thanks a lot...it works.

"Felipe" wrote:
Your suspicion seems reasonable. You can add the following directive to the
top of the ASPX page:

<%@ OutputCache Location="none" %>

-HTH
"Chrysan" <Ch*****@discussions.microsoft.com> wrote in message
news:79**********************************@microsof t.com...
I have a popup window, which consist of a combobox. And, the combobox's
item
collection is filled by records in database. Whereas, when I close the
popup
window and add more records into the database, then open that popup window
again, but the combobox won't show those new records. I suspect that the
content of the popup window is being cached and won't refresh. Is that so?

Please help...thanks.

FYI, following is my page_load code:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim strAdomdConnectionString As String

Try
If Not Me.IsPostBack Then
Me.btnOK.Attributes.Add("onclick", "Done('" &
txtConnectionString.Text & "');")

FillDatabaseCombobox()

With
mdtsAnalysisDB.Tables(0).Rows(cboDatabase.Selected Index)
strAdomdConnectionString =
BuildAdomdConnectionString(CStr(.Item("ServerName" )),
CStr(.Item("AnalysisDBName")), CStr(.Item("UserName")),
CStr(.Item("Password")))
End With

FillCubeCombox(strAdomdConnectionString)
End If

Catch ex As Exception
Throw New ApplicationException(ex.Message.ToString)
End Try
End Sub


Nov 19 '05 #3

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

Similar topics

7
by: C Elson | last post by:
I was hoping someone can help me out. I've searched the pages here and on numerous sites and cannot find an answer that works. I'm trying this code RC4 Encryption/Decryption...
4
by: Daren | last post by:
Hi all, I need to update the cache of a third party asp.net application when a user makes a change to a particular table in a SQL Server database (so the changes appear immediately in the...
4
by: Guadala Harry | last post by:
Is there any way for one Session to remove and update objects in another Session? I seriously doubt it, but thought I'd ask. Here's why: I have some data that is unique per user (or per session -...
26
by: Ed L. | last post by:
Here's some of my current notions on pgsql performance tuning strictly as it relates to pgsql tuning parameters in the context of a dedicated linux or hpux server. I'm particularly focusing on...
10
by: Josselin | last post by:
(Mac 10.4.6 , Firefox/1.5.0.3 Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; fr; rv:1.8.0.3) Gecko/20060426 ) I am trying to setup a Reusable Image Cache in JS ( as per...
11
by: EagleRed | last post by:
I am writing an ASP.NET 2.0 application that uses master pages. I have some pages that must not be cached on the client. In ASP.NET 1.1 I achieved this using metatags: <meta...
3
by: wardemon | last post by:
Hi All, I have a aspx page named: ImageProcess.aspx that creates a thumbnail version of an image by passing the ImagePath, width, and height. The ImagePath is taken from a table from a database,...
5
by: J055 | last post by:
Hi The following code works on my develeopment machine using the VS web server. When I run the application on 2 other Windows 2003/IIS 6 servers no caching seems to take place at all. Can...
2
by: =?Utf-8?B?UmJydA==?= | last post by:
I am developing a IIS 6.0 / ASP.NET 2.0 database driven web site that will be used for an in-house application with less than 1,000 potential users and which will probably never have more than a...
19
by: Andrus | last post by:
I need to repeatedly execute same queries which returns single entity by id, like: Customer cust = (from c in db.Customers where c.CustomerID=="AIRBU" select c).SingleOrDefault(); DLinq...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.