1) Can someone please point me to an example of ASP.NET to store cached pages and session on hard disk.
2) Also, I never tried this but is it possible to save Application variables to disk?
View Complete Post
I want to store employee name,designation and department in session variable andretrieve in another page how to do this.
Hello, i am building an N-tier application now i want to store Data(like XmlNode) that is common to all users ..
now i thought using Application to hold the data but my data lays in the BLL tier which is an Class Library project and i can't store any datain there for example :
HttpApplication MyApp=new HttpApplication();
My question is what is the best way to store Data (not small data like user name etc..) is it Application? orCache?
i would like a small example within a ClassLibrary project...
We are developing an application which has tabbed views for user input. We need to "cache" the data entered in one tab while the user is filling up other tab. Though "Form Caching" is not allowed.
Please let me know the following:
When I first implemented forms authentication I consulted an article
that told me to store the user's custom IPrincipal object in the cache. Is
this wrong? Should I have stored it in the session?
Is it possible to store a user control in session?? I have a menu user control and depending on the user's permissions and the current page, different item may show up. For one page, the menu can contain almost 50 items and I want to cache that user control so I don't have to recreate it everytime (I turn viewstate off to reduce page size). Output caching is out of the question since this should be session based. Any ideas?
I have a ajax tab and when I click on mune and creat new tab I want to store previous tab in session in order to use it again .in other words i want to create Dynamic tab.
I worte a code but it doesn t work.would sombody please help me?
function OnChanged(sender, args)
<form id="form1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" RenderMode="Block" >
<table id="table1" class="style1" >
<asp:PlaceHolder ID="PlaceHolder1" runat="
What are the options for handling file uploads to reduce the memory footprint? Is there a way to upload in chunks? Is there a way to stream upload directly to disk instead of loading entire file in server memory?
I need to store more than 4k of bytes in my SQLCE 4 database. How can I do that with the ASP.NET Web Pages 1.0?
1: The Microsoft.Data provider fails when I try to populate a parameter with more than 4k bytes.2: Referencing SqlServerCe assembly and using SqlCeConnection/SqlCeCommand/SqlCeParameter throws exception: SQL Server Compact is not intended for ASP.NET development.
How can I somehow map the generic DbType, which does not have NText as an option, to the ntext column in my database? (SqlCeParameter supports DbSqlType, which has ntext, but see problem #2)
Hi to all,
I have some things that I want to know. I am right now using a free asp.net webhosting ("somee.com"). The problem is that when I am visiting a page, there's a tendency that values stored in my session variables are lost. Therefore, it causes an error when the requested page is loaded.
1. I am thinking of using sessionState mode="SqlServer". Will it solve my problem?
Actualy Im working on it but Im having problems when connecting to the sql database.
2. Is that a problem in the webhost?
3. Do free webhosting sites provide allow session state in the sql server?. Because ive tried it locally into my computer and error say's i should intall the ASP.NET Session State SQL Server version 2.0 or above.
I have a web application in which i need to logout the user if he clicks the logout button or even if he closes his browser window. On Logout button click, i am doing session.Abandon(), but how to go about his browser window close.
Can anybody help with a code sample.
is there any way to find out the reason for session expiry?
In my live site session time out with in 5 min only.how can i get the default i.e 20 min time . below webconfig file give below
<?xml version="1.0"?><!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --><configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup,
I am creating a simple shopping cart using a datatable that is passed into a session object. I have a small mini cart that displays the total number of items in the cart as well as the running total - this is displayed in a web control. When the web control starts up I run a try/catch to see if the session object exists, if it doesn't I create the datatable for the cart and store it in the session. I then have a datalist control that contains all the information for my products including an "add to cart" button. When the page loads everything looks fine. If I click on an "add to cart" button nothing happens to the session information. If I click on it again, the session information updates - displaying only one item is in the cart and then counts up correctly there after. Additionally, after adding an item, if I select a different item in the list, the same issue occurs. I am not sure why this is happeing, if anyone can give me an idea I would appreciate it.