1 2 >   Sort: Date

What is cross page posting
What is cross page posting? By default, button controls in ASP.NET pages post back to the same page that contains the button, where you can write an event handler for the post. In most cases this is the desired behavior, but occasionaly you will also want to be able to post to another page in your a...
2007-10-23, 11344👍, 0💬

Enable ASP.NET polling using “web.config” file
Enable ASP.NET polling using “web.config” file Now that all our database side is configured in order to get the SQL Cache working in the ASP.NET side we need to do some configuration in the web.config file. We need to set two attributes in the gweb.configh file:- ć Set gEnabledh attribute to tr...
2007-10-23, 6797👍, 0💬

How do we enable SQL Cache Dependency in ASP.NET 2.0
How do we enable SQL Cache Dependency in ASP.NET 2.0? Below are the broader steps to enable a SQL Cache Dependency:- • Enable notifications for the database. • Enable notifications for individual tables. • Enable ASP.NET polling using “web.config” file • Finally use the Cache dependency object in ...
2007-10-23, 5592👍, 0💬

Is Session_End event supported in all session modes
Is Session_End event supported in all session modes ? Session_End event occurs only in “Inproc mode”.”State Server” and “SQL SERVER” do not have Session_End event.
2007-10-23, 5504👍, 0💬

What is Post Cache substitution
What is Post Cache substitution? Post cache substitution is used when we want to cache the whole page but also need some dynamic region inside that cached page. Some examples like QuoteoftheDay, RandomPhotos, and AdRotator etc. are examples where we can implement Post Cache Substitution. Post-cache ...
2007-10-23, 5232👍, 0💬

How can get access to cache object
How can get access to cache object ? The Cache object is defined in the System.Web.Caching namespace. You can get a reference to the Cache object by using the Cache property of the HttpContext class in the System.Web namespace or by using the Cache property of the Page object.
2007-10-23, 5033👍, 0💬

What is Absolute and Sliding expiration
What is Absolute and Sliding expiration? Absolute Expiration allows you to specify the duration of the cache, starting from the time the cache is activated. The following example shows that the cache has a cache dependency specified, as well as an expiration time of one minute. Cache.Insert("announc...
2007-10-23, 4935👍, 0💬

What is Cache Callback in Cache
What is Cache Callback in Cache ? Cache object is dependent on its dependencies example file based, time based etc...Cache items remove the object when cache dependencies change.ASP.NET provides capability to execute a callback method when that item is removed from cache.
2007-10-23, 4678👍, 0💬

What is Query String and What are benefits and limitations of using
What is Query String and What are benefits and limitations of using Query Strings? A query string is information sent to the server appended to the end of a page URL. Following are the benefits of using query string for state management:- ć No server resources are required. The query string containin...
2007-10-23, 4586👍, 0💬

How do we access viewstate value of this page in the next page
How do we access viewstate value of this page in the next page ? View state is page specific; it contains information about controls embedded on the particular page. ASP.NET 2.0 resolves this by embedding a hidden input field name, __POSTBACK . This field is embedded only when there is an IButtonCon...
2007-10-23, 4551👍, 0💬

Can you compare ASP.NET sessions with classic ASP
Can you compare ASP.NET sessions with classic ASP? ASP.NET session caches per user session state. It basically uses gHttpSessionStateh class. Following are the limitations in classic ASP sessions :- ć ASP session state is dependent on IIS process very heavily. So if IIS restarts ASP session variabl...
2007-10-23, 4446👍, 0💬

Can we post and access view state in another application
Can we post and access view state in another application? You can post back to any page and pages in another application, too. But if you are posting pages to another application, the PreviousPage property will return null. This is a significant restriction, as it means that if you want to use the v...
2007-10-23, 4436👍, 0💬

Which various modes of storing ASP.NET session
Which various modes of storing ASP.NET session ? InProc:- In this mode Session state is stored in the memory space of the Aspnet_wp.exe process. This is the default setting. If the IIS reboots or web application restarts then session state is lost. ć StateServer:-In this mode Session state is seriali...
2007-10-23, 4375👍, 0💬

Enabling notification for individual tables
Enabling notification for individual tables Once the necessary stored procedure and tables are created then we have to notify saying which table needs to be enabled for notifications. That can be achieved by two ways:- ć aspnet_regsql -et -E -d Northwind -t Products ć Exec spNet_SqlCacheRegisterTableS.. .
2007-10-23, 4349👍, 0💬

What are the precautions you will take in order that StateServer Mode
What are the precautions you will take in order that StateServer Mode work properly ? Following are the things to remember so that StateServer Mode works properly :- ć StateServer mode session data is stored in a different process so you must ensure that your objects are serializable. ć <machin...
2007-10-23, 4322👍, 0💬

What is SQL Cache Dependency in ASP.NET 2.0
What is SQL Cache Dependency in ASP.NET 2.0? SQL cache dependencies is a new feature in ASP.NET 2.0 which can automatically invalidate a cached data object (such as a Dataset) when the related data is modified in the database. So for instance if you have a dataset which is tied up to a database tabl...
2007-10-23, 4320👍, 0💬

What are dependencies in cache and types of dependencies
What are dependencies in cache and types of dependencies ? When you add an item to the cache, you can define dependency relationships that can force that item to be removed from the cache under specific activities of dependenci es.Example if the cache object is dependent on file and when the file da...
2007-10-23, 4317👍, 0💬

Does the performance for viewstate vary according to User controls
Does the performance for viewstate vary according to User controls ? Performance of viewstate varies depending on the type of server control to which it is applied. Label, TextBox, CheckBox, RadioButton, and HyperLink are server controls that perform well with ViewState. DropDownList, ListBox, DataG...
2007-10-23, 4287👍, 0💬

How will implement Page Fragment Caching
How will implement Page Fragment Caching ? Page fragment caching involves the caching of a fragment of the page, rather than the entire page. When portions of the page are need to be dynamically created for each user request this is best method as compared to page caching. You can wrap Web Forms use...
2007-10-23, 4287👍, 0💬

Why do we need methods to be static for Post Cache substitution
Why do we need methods to be static for Post Cache substitution? ASP.NET should be able to call this method even when there isn't an instance of your page class available. When your page is served from the cache, the page object isn't created. So ASP.NET skips the page life cycle when the page is co...
2007-10-23, 4279👍, 0💬

P)Can you show a simple code showing file dependency in cache
P)Can you show a simple code showing file dependency in cache ? Partial Class Default_aspx Public Sub displayAnnouncement() Dim announcement As String If Cache(“announcement”) Is Nothing Then Dim file As New _ System.IO.StreamReader _ announcement = file.ReadToE...
2007-10-23, 4275👍, 0💬

What’s the difference between Cache object and application object
What’s the difference between Cache object and application object ? The main difference between the Cache and Application objects is that the Cache object provides cache-specific features, such as dependencies and expiration policies.
2007-10-23, 4253👍, 0💬

What is scavenging
What is scavenging ? When server running your ASP.NET application runs low on memory resources, items are removed from cache depending on cache item priority. Cache item priority is set when you add item to cache. By setting the cache item priority controls the items scavenging are removed first.
2007-10-23, 4247👍, 0💬

How can you cache different version of same page using ASP.NET
How can you cache different version of same page using ASP.NET cache object ? Output cache functionality is achieved by using “OutputCache” attribute on ASP.NET page header. Below is the syntax <%@ OutputCache Duration="20" Location="Server" VaryByParam="state" VaryByCustom="minorversion" Var...
2007-10-23, 4239👍, 0💬

1 2 >   Sort: Date