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 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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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 -...
|
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...
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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...
|
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...
| |