How to not cache a particular web form?

G

Guest

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.SelectedIndex)
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
 
F

Felipe

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

<%@ OutputCache Location="none" %>

-HTH
 
G

Guest

Thanks a lot...it works.

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

<%@ OutputCache Location="none" %>

-HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top