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, 12150👍, 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...
2007-10-23, 7870👍, 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, 6414👍, 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, 6404👍, 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, 5880👍, 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, 5475👍, 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, 5422👍, 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 contain...
2007-10-23, 5134👍, 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, 5090👍, 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 vari...
2007-10-23, 5003👍, 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, 4987👍, 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, 4916👍, 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_SqlCacheRegisterT...
2007-10-23, 4855👍, 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 seria...
2007-10-23, 4853👍, 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, 4829👍, 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. ã <m...
2007-10-23, 4760👍, 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, 4753👍, 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, 4750👍, 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, 4732👍, 0💬

What are the precautions you will take in order that SQLSERVER
What are the precautions you will take in order that SQLSERVER Mode work properly ? Following are the things to remember so that SQLSERVER Mode works properly :- ã SQLSERVER mode session data is stored in a different process so you must ensure that your objects are serializable. ã IIS metabase (\...
2007-10-23, 4719👍, 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, 4694👍, 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, 4670👍, 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 _ (Server.MapPath(“announcement. txt”))announcement = file.ReadToE...
2007-10-23, 4668👍, 0💬

How can you use Hidden frames to cache client data
How can you use Hidden frames to cache client data ? This technique is implemented by creating a Hidden frame in page which will contain your data to be cached. <FRAMESET cols="100%,*,*"> <FRAMESET rows="100%"> <FRAME src="data_of_frame1.html">& ;lt;/FRAMESET><FRAME sr...
2007-10-23, 4663👍, 0💬

1 2 >   Sort: Date