Caching When Filling Panels With Content?

Jan 7, 2010

I'm creating a group of surveys that query Salesforce ([URL] CRM) to generate survey questions dynamically.

The survey layouts are determined by a record type that gets passed in the QueryString. The page queries Salesforce and aggregates the questions/fields it should be using. Then it creates questions and adds them to a panel.

When I open one survey, things look great, and they work as designed. But on opening a separate survey, of a different type, the questions from the first survey are still in the questions panel, as if they are cached somewhere.

To see what I mean, open "Survey 1". Then open "Survey 2" in a new tab. Now re-open "Survey 1", but this time do it in a new tab. Compare the first "Survey 1" to the second "Survey 1", and you'll see that the second "Survey 1" has the questions from "Survey 2" added into it.

Is there something - or a way that - I should be clearing variables, public variables, sessions, or page/panel caches on every page load?

I define the array where the fields/questions are aggregated like this:

ASP Code:

public partial class _Default : System.Web.UI.Page
{
private static ArrayList field_names_use = new ArrayList { };

View 3 Replies


Similar Messages:

Hiding All Panels On A Web Content Form Within A Master Page

May 7, 2010

I'm trying to hide all panels on a page, when a button click occurs.

This is on a web content form, within a master page.

The contentplageholder is named: MainContent

So I have:

foreach (Control c in Page.Form.FindControl("MainContent").Controls) {
if (c is Panel) {
c.Visible = false;
}
}

This never find any panels. The panels are within an Update Panel, and I tried

foreach(Control c in updatePanel.Controls) { }

and this didn't work either. I also tried :

foreach(Control c in Page.Controls) { }

and that didn't work either.

View 2 Replies

AJAX :: Collapsible Panels - Map Doesn't Show Up Properly Within Container When Content Panel Extended

Jun 11, 2010

I have implemented a collapsible panel which works properly. It collapse and it extends the content panel when the link corresponding to the information panel is clicked. Within the content panel I have an HTML table control containing several rows and columns. Within one of these columns I have added a container (a <DIV> tag) holding a Google map. Here is the issue:

The map does not properly show up within the container when the content panel is extended. It appears to be shifted to the left, not centered as it should be. Therefore, any attempt to place a point mark on the map (centering the map over that point mark) is unsuccessful since the map doesn't show properly in the container so the point mark is not visible. Even if I drag the map with the mouse within the container, it always reposition at a bad location. If I comment out the extender, leaving the panel as is, the maps shows properly within its container. It is the collapsible panel extender which makes the layout to be incorrect.

View 2 Replies

Mvc Site Is Not Caching Content Or Script Files?

Mar 18, 2010

My asp mvc site is not caching content or script files. How do I get it to cache such?

View 1 Replies

State Management :: Partial Page Caching (user Control Caching) And Button Events?

Jun 14, 2010

I have a page with a number of user controls, In one of my user controls I have a button event. I turn on output cache for the user control that has the button and vary by control using the ID property of a hidden field control in the user control. whenever I turn on the output cache my button event doesn't fire.

View 2 Replies

WCF / ASMX :: Implement Caching Using System.Web.Caching?

May 15, 2010

how to implement caching in wcf service using System.Web.Caching

View 2 Replies

Filling A Dropdownlist Using LINQ To SQL?

Feb 2, 2010

how do i fill a dropdown list from code behind using LINQ to SQL.

View 7 Replies

Filling Datatable Using Datareader?

Nov 3, 2010

see i want to fill datatable using datareader.

i have created object like this

SqlDataReader dr=cmd.ExecuteReader();
if(dr.HasRows)
{
}

View 2 Replies

Filling The Rest Of The Page With CSS?

Feb 22, 2010

I have three Divs on the page and they are absolute positioned. Lets call them leftDiv,middleDiv,rightDiv and middleDiv width is 900px which is okay but the left and right divs should fill the remaining the left and right parts respectively no matter what screen size is.

The reason why I use absolute positioning is because it is the only way to use height:100% to fill the page.

So how can I fill the remaining parts?

Of course these divs separate page into three pieces according to their names imply.

View 3 Replies

C# - Filling An Arraylist From A Datareader?

Mar 15, 2011

I have a problem with how to fill an array list from a data reader

string queryDTL = " SELECT * FROM tbl1 ";
connection.Connect();
cmd = new OracleCommand(queryDTL, connection.getConnection());
dr_DTL = qcmd2.ExecuteReader();
ArrayList RecordsInfo = new ArrayList();
while (dr_DTL.Read())
{
RecordsInfo = dr_DTL["number"].ToString();
}

The problem is the datareader contain alot of info other than the number but I don't know how to put them in their correct position.

View 3 Replies

C# - System.outofmemoryexception When Filling DataAdapter?

Feb 23, 2011

I have to pull 150K records from DB. I am using da.Fill(ds,"Query") and its throwing system.outofmemoryexception.

Dim daGrid As New SqlDataAdapter(sqlcmd_q)
daGrid.Fill(dsGrid, "Query")
daGrid.Dispose()

I need this datatable only. I cannot use XML. because I need assign this to MSChartControl to display ScotterPlot.

View 2 Replies

Configuration :: Temp Folder Filling Up?

Aug 16, 2010

We have a client with a SBS 2003 server, very standard setup.

The ms.netframeworkv2.0.50727 emporary asp.net files oot folder is filling up with 590kb folders at the rate of around 6 per min.!

They seem to point at a sage CRM package (installed on the server) but Sage say its a problem with IIS and not them!

View 1 Replies

MVC :: Filling Dropdownlist With Static Data?

Feb 10, 2010

i have html.dropdownlist in my form and i need to fill that with static data.

for example a list of months.

how can i fill dropdownlist.

View 6 Replies

C# - Filling Dataset With Thousands Of Records?

Mar 15, 2011

I am using oracle as back end. In database there is a table with 5000 records and 160 columns. i want to display all these records in gridview(in asp.net, c#). But it takes more than 10 minutes to fill the dataset.

View 4 Replies

One Dropdownlist Filling Another And Displaying Results?

Feb 23, 2010

I have 3 tables:

SUPPLIER
Id (PK)
Name
City (FK)
State (FK)

CITY
Id (PK)
Name
State (FK)

STATE
Shortname (PK)
Name

1) I'd like to fill 1 dropdownlist with the STATE.Name and the other dropdownlist with the CITY.Name based on the STATE chosen, show up the cities, and after the city is chosen, the SUPPLIERS are shown.

2) Is it ok to make a foreign key field for State inside the City table ?

3) Is it better to create new fields STATE and CITY inside SUPPLIER ?

View 8 Replies

AJAX :: CalendarExtender Not Filling In Textbox?

Jun 9, 2010

I have the following calendarextender connected to a text box (TextBoxDate). When I choose a new date, I can see that the textbox is updated. However, when I call the text box in a vb script, run when I click a button, the text box is null. The script worked fine when I would enter the date by hand. The failure began when I added the calendarextender.

<asp:TextBox ID="TextBoxDate" runat="server" style="text-align: center" Width="93px"></asp:TextBox>
<asp:CalendarExtender ID="CalendarExtender1" runat="server"
PopupButtonID="TextBoxDate" TargetControlID="TextBoxDate"
FirstDayOfWeek="Monday">
</asp:CalendarExtender>

View 3 Replies

Filling Dropdown List From Database

Apr 1, 2010

i am trying to fill a dropdown list from the data base, but could not figure , how to code for it..

View 3 Replies

AJAX :: Filling HtmlTable Row By Row And Updating?

Feb 8, 2010

I have a website, where I load some info into 6 table rows.

Every row loads a different thing and it lasts a different amount of time.

Loading of the whole table takes a lot of time (5-15 secs), so What I would like to do is to load every row with an AJAX UpdatePanel (or 6 UpdatePanels) like this:

When the loading of one row's data is finished, the table row is displayed with the data.

Then row by row finish loading and are displayed too.

View 1 Replies

Web Forms :: Filling RadioButtonList Using ObjectDataSource?

May 10, 2010

I´m filling a RadioButtonList using a ObjectDataSource. I would like that when I post back the page, the RadioButtonList has not rebind to the ObjectDataSource in order to keep the RadioButtonList selected value.

View 2 Replies

C# - Filling GridView On Some Button Click In MVC?

Jul 23, 2010

I am working on some project which is in classic ASP.NET, but I need to migarate that into MVCRight Now I am having a page with one button and gridview which get fill on clicking the button. Gridview has the functionality like EDIT, DELETE, Paging, OnRowCommand Event. How should I perform this page through MVC. I know gridview can't be used in MVC, so what's the alternative of that.

View 3 Replies

Filling Data In FormView From Different Tables?

Mar 13, 2010

I am using a FormView in an online quiz page for displaying the questions and RadioButtons (for answers) http://stackoverflow.com/questions/2438219/online-quiz-using-asp-dot-netNow, I need to pick the questions according to a TestID and a particular Set of that Test. The testid and the set_number would be passed using Session variables.I'm having 3 testIDs and 3 Sets per TestID and, thus, am using 9 tables to store the Questions, the Options and the correct answer.I need help on how to set the FormView so that it extracts the questions from a particular table only. Do I need to use a StoredProcedure ? If yes, how?PS: If I use only one table to store all the questions from each Set and for each TestID, I can do that, but I'd prefer using separate tables.UpdateSOLVED myself[CLOSED]

View 1 Replies

ADO.NET :: Very Slow In Getting A Datatable From Filling An Adapter ?

Nov 2, 2010

what i have is the following code.

[code]...

View 2 Replies

JQuery :: Filling The Dialog On Ajax Call?

Aug 13, 2010

I have a requirement where i need to show the list of data in a jquery dialog once a some link is clicked .I can easily collect the data that has to be shown in the dialog on page load and display the data in the dialog.I will place those data in a hidden div and simply pop it up when the user clicks on the link.But my requirement is that there has to be jquery ajax get when the users clicks on the link and that content should be displayed in the jquery dialog.How can i achieve that.

View 4 Replies

C# - Dropdownlist Filling Throws Error With Null Value?

Sep 28, 2010

I have some code which fills a dropdownlist:

pn.DataSource = Datatbl.Tables["datalist"];
pn.DataValueField = "partnumber";
pn.DataTextField = "partnumber";
pn.DataBind();
pn.Items.Insert(0, "");
pn.SelectedValue = ligne["pn"].ToString();


and when the value in the Database in null (""), it throws this error: ArgumentOutOfRangeException: 'pn' has a SelectedValue which is invalid because it does not exist in the list of items. Parameter name: value

View 2 Replies

Merging / Filling Pdf Form File With Xml Data?

Apr 9, 2010

Let's say I have a pdf form file available at website which is filled by the users and submitted to the server. On the server side (Asp.Net) I would like to merge the data that I receive in xml format with the empty pdf form that was filled and save it.

As I have found there are several possible ways of doing it:

Using pdf form created by adobe acrobat and filling it with itextsharp. Using pdf form created by adobe acrobat and filling it with FDF Toolkit .net (which seems to be using itextsharp internally) Usd pdfkt to fill the form. Use pdf form file created with adobe livecycle and merge the data by using Form Data Integration Service

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved