C# - Trying To Implement The Cache (ouput) But It Is Not Working Fine?

Mar 11, 2010

in my application i trying to implement the cache (ouput) but it is not working fine,that is it is every time getting from cache only this is my code.

<%@ OutputCache VaryByParam ="none"
Location="Client" Duration="10" %>.

Code:

protected void btn_Click(object sender, EventArgs e)
{
DataView dtv;
dtv = (DataView [code].....

View 2 Replies


Similar Messages:

C# - Cache.SetMaxAge Not Working Under IIS, Works Fine Under VS Dev Srv?

Jan 7, 2011

I'm trying to add a "max-age" header to my response. It works fine on my Visual Studio Development Server, but as soon as I move the app to IIS (tried both IIS express locally and IIS on the server) - the header disappears.

My code:Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetMaxAge(new TimeSpan(1, 0, 0, 0));

VS Dev server response (all works just fine):

HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Fri, 07 Jan 2011 14:55:04 GMT[code]......

View 1 Replies

C# - Implement System.Web.Caching.Cache Object In A Controller To Cache Specific Query?

Mar 29, 2010

Is it correct to implement my caching object like this in my controller :

[code]....

And I Use it like this :

[code]....

View 1 Replies

Web Forms :: Created Java Script Calendar Working Fine In Ie6 But Not Working In Firefox

Aug 13, 2010

I created a one Java script calender. Its working fine in ie6 but its not working in firefox. I'm new to this java script so kindly give your suggestion as soon as possible.

Page
Language="C#"
AutoEventWireup="true"
CodeFile="Default.aspx.cs"
Inherits="_Default" %>@
Register
Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI"
TagPrefix="asp" %>
DOCTYPE
html
PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN".......................

View 1 Replies

AJAX :: Drag And Drop Is Not Working In Chrome And Safari But It Is Working Fine IE And Firefox

Nov 19, 2010

After the implementation of ajax drag and drop, we have observed that which is working fine in IE and Firefox and not in chrome and safari, In Google chrome and Safari when we try to drag a module, the page getting scrolling to the top of the page.

View 1 Replies

Visual Studio :: Javascript Debugger Is Not Working On Mozilla Firefox But Working Fine On IE8?

Jan 15, 2011

I am using vs2008 pro. my problem is that javascript debugger is not working on mozila firefox but working fine on IE8.

View 1 Replies

Web Forms :: Url Rewriting Not Working On Live Server In Asp.net But Locally Working Fine

Feb 23, 2010

Url rewriting not working on live server in asp.net but locally working fine. but locally it's not case sensitive.

View 1 Replies

Configuration :: Application Is Working Fine In Local Environment But Not Working After Push Code In Live

Aug 19, 2010

My application is working fine in local environment but not working after push code in live. My locale environment and hosting environment both are having same configuration. Same app working fine 2 month before but in different domain but same hosting server.

how to check the both config / any possible to run debug mode in hosting server please let me know. below code used in all page for checking user session status but when I click on any link page redirect to login.aspx I think session got timeout. I don't know why session got time frequently, but this issue not happening in local environment (desktop).

[Code]....
[Code]....

View 6 Replies

Can Implement Cache Using Mvc

Jul 22, 2010

need to write Cache Methods in my asp.net mvc project.. I created one Class called CacheHelper.cs file.. Mainly In my appliction I am using three types GetData() ( getting data from cache)Add() ( Add data to the Cache) Refresh() ( Refresh data) or Flush()

View 4 Replies

Web Forms :: Application Is Working Fine In IE6 But Not IE 7 And Above?

Mar 30, 2010

I have developed a web application, it is working fine without any issues in IE5 and IE6. However it is not getting executed in IE7 properly. The look of the web application was changed and doesn't look as it need to be in IE7. And one more issue is I will be using PopUp windows in the page. When I try to open the PopUp window they were not getting opened. I have checked if the PopUp blocker was blocked, the pop up blocker settings was Okay.. I have cross checked the code it was fine.

"How to solve these sort of issues that occur with IE7 or above"

View 3 Replies

Implement Cache Solution For Site?

Nov 15, 2010

I'm working on a public site that soon will not longer be 100% public. Paid users will be able to access 100% of the features while "anonymous" users will access a reduced version. The problem is that anonymous users and paid users will access the same pages, but they'll see different things. I wonder about how to keep using cache for all pages. I have to 100% sure that I show the correct content for each type of user. Will be extremely bad to show a cached version of the paid site to an anonymous user (and the other way around). Preferably, without adding anything to the url to differentiate user type.

View 2 Replies

Functionality Is Working Fine But The Application Is Becoming Very Slow?

Sep 13, 2010

I have one ASP.NET Application (VS.NET 2005). In that i have one scenario where i have to display 500 records per page (Not less than that bcoz this is client requirement to display 500 records per page) in the Gridview. This functionality is working fine but the application is becoming very slow.Can anybody tell me the solution for increasing performance in this case ?

View 2 Replies

Unable To Work In Mozilla But Working Fine In IE?

May 20, 2010

At page level I have set EnableEventValidation="false" and at Page_load below code is written:

Code:
grdMaster.Attributes.Add("OnClick", String.Format("{1};this.disabled = true;document.getElementById('lblProgress').innerHTML='Generating...It will take approx 30 Mins.'; {0};", ClientScript.GetPostBackEventReference(grdMaster, ""), ""));
Above coding is fine in IE but it does not work in Mozilla.
What could be the reason?and what is the solution on this?

View 9 Replies

Working Fine In PC And Page Is Opening From Browser But Not From Other PC?

Sep 20, 2010

I have an asp.net project both in .net 2005 and 2008.It is working fine in my PC and page is opening from browser but not from other PC.I can able to connect the other pc's,ping it sure there is no connection problem with pc.I think should be in IIS or sharing from my PC.I need both in .net 2005 and 2008.

View 2 Replies

C# - Form Submit Not Working In Firefox But Works Fine In IE?

May 28, 2010

I want to submit my parent page when I click on submit button of the child page. In my child page I've written my code as

[code]....

it is working fine in IE but not working in Firefox. What could be the alternate method for this?

View 1 Replies

Web Forms :: Asp Menu Working Fine In The Dev Environment But Not On Server

Sep 17, 2010

I am sorry to be asking what is probably a really stupid question, but i have a problem with my asp menu, when i run it on my dev machine(thru vs2010) it works perfectly, all the menu's are displayed correctly with the correct child items in the correct order but when i publish it to the server all the menu items become flat and take up the whole page. I am populating the menu using a reentrant function as follows to call the function and add the menus i am using

Dim childMenuItems As List(Of MenuItem) = CreateMenuLevel(0, uniquemenulist)
childMenuItems.ForEach(Sub(n) NavigationMenu.Items.Add(n))
Public Function CreateMenuLevel(ByVal parentId As Integer, ByVal menulist As List(Of MenuList)) As List(Of MenuItem)
Dim menuItems As New List(Of MenuItem)
For Each menuListItem As MenuList In menulist.Where(Function(n) n.ParentId = parentId)
Dim MenuItem As New MenuItem
If (Not String.IsNullOrEmpty(menuListItem.PagePath)) Then
MenuItem.NavigateUrl = menuListItem.PagePath
End If
MenuItem.Text = menuListItem.MenuName
MenuItem.Selectable = True
MenuItem.Enabled = True
menuItems.Add(MenuItem)
Dim childMenuItems As List(Of MenuItem) = createMenuLevel(menuListItem.MenuId, menulist)
childMenuItems.ForEach(Sub(n) MenuItem.ChildItems.Add(n))
Next
Return menuItems
End Function

now as i say this all works fine in the dev environment so i dont think its a coding issue unless i am missing something mad.

server 2003 x64
iis 6.0
asp 4.0.303.19
relevant .net 4 framework packs installed
dev environment
visual studio 2010

am using the same browser for to check both dev and server

View 2 Replies

Security :: Win Authentication Working Fine On Chrome / Mozilla But Not On IE?

Jun 29, 2010

I have created a we app. using win authentication. When type the server ip addres in chrome I get the login window and it works just fine with my organizations credentials, however when doing the same using Internet Explorer I have to login with the server credentials as my account is not valid.

View 1 Replies

Web Forms :: TextChanged Event Working Fine In Windows But Not In Web?

Apr 8, 2010

I am building a simple application in Windows as well as in Web.I have two textboxes . Whatever I write in textbox1 should simultaneously be written(or copied) in textbox2-It should copy in textbox2 alphabet by alphabet OR each number by number as I write it down in textbox1It (TextChanged event) works fine in Windows application but in Web application it is not working.

View 10 Replies

Forms Data Controls :: How To Remove The Separator Row It Is Not Working Fine

Jan 6, 2010

I have a gridview with has lots of fields. There are buttons which have CommandArgument set and which are being accessed in the RowCommand of the GridView.I am also adding a separator row with the following code.

[Code]....

After adding this separator row. I am not able to get the CommandArgument. All the values which I am declaring in the Aspx with "Eval" are Null when I access them in RowCommand. If I remove the separator row it is working fine.
[Code]....
[Code]....

View 6 Replies

Aspx Page Giving 404 On HTTPS While Working Fine On HTTP

Mar 17, 2011

Other pages (aspx) are working fine on both http/https, only ashx gives response 404 on https, I used firefox firebug to investigate it.

I have two same virtual directory on IIS, one is mapped for https where this ashx is not working.

I guess some kind of mapping is missing for https on server, not sure where this kind of mapping is stored?

View 1 Replies

Security :: GoDaddy - The UserID/Password Is Working Fine - But The Profile Isn't?

Jan 29, 2010

I got the login to work fine- go to [URL]if you want to give it a try. Here is the thing. The profile functionality doesn't work. It draws from the same set of files, it used the same connection string as the users, it work on my local machine, but blows up on GoDaddy because it cannot find the file, and when it tries to create it. The file it uses for the profile, aspnet_Profiles, is on there along with the rest of the membership files. The connection string is not defined individually. Why is it finding the user files, but not the profile file.

Here are the files

aspnet_Applications
aspnet_Memberships
aspnet_Paths
aspnet_PersonalizationAllUsers
aspnet_PersonalizationPerUser
aspnet_Profile
aspnet_Roles
aspnet_SchemaVersions
aspnet_Users
aspnet_UserInRoles
aspnet_WebEvents_Events

Here is the Wec.config

[Code]....

Here is the Profile User Control

[Code]....

Here is the profile wrapper

[Code]....

View 3 Replies

Web Forms :: When The Page Is Loading First Time It Is Working Fine With Out Any Error?

Jan 18, 2010

last from the few days I am getting the following error in my production server("Index was outside the bounds of the array".).The follwoing error is coming in the webpartclass before adding the usercontrol to webpart.Strangely when the page is loading first time it is working fine with out any error.After 5,6 clicks in my page the above error is coming. It is working fine in my local machine and in development server.

The problem is only in production server.

base.CreateChildControls(); OTBTWorkshop = (UserControl)Page.LoadControl(@"~/_layouts/UserControls/tets/teest.ascx"); this.Controls.Add(OTBTWorkshop);

View 2 Replies

IIS Configuration :: Website Working Fine On Local But Does Not Work On Server

Jan 4, 2013

In my site on every load some session is made through url and single page(say xyz.aspx) is call every time and on the basis of url we create session. When i click on a href tag , page start reloading ,url we created is accurate but data doesn't change every time, means some time it show data on first click, but some time after 3 or 4 click.

I say problem is weird because when i run this on my local server there is no problem, when i run this on my project (visual studio) there is no problem , but when i up this project on my online server it show this kind of error but not every time .

I use data caching to fill dataset. There is no problem in this website since we created this (more than 1 year) and we don't made any change on this page but suddenly it starts showing this kind of error so what kind of error this is.

View 1 Replies

AJAX Control Work Fine On Local Host But Not Working On Server?

Oct 11, 2010

I am Working on a asp.net web site. i am using visual studio.net 2008.

i use some ajax control. for my web site. i use update panel on my web pages.

when i run my web site on local host ajax control work fine but as i upload the site on server. these control are not working at all.

tell me what will i do in my web site to run the AJAX control on server side.

View 1 Replies

Forms Data Controls :: Export To Excel Is Working Fine But On Clicking Twice?

Feb 1, 2011

I used following code to export data to excel but when on click-1 nothing happens, on click-2 it exports fine.

due to this when user wants to go back by clicking browsers back button he clicks two times to go back. Sometimes after one click the browser back button got diabled.

[Code]....

[Code]....

View 15 Replies







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