1 2 >   Sort: Rank

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, 4751👍, 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, 5882👍, 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, 7879👍, 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, 4858👍, 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, 6408👍, 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, 4830👍, 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, 4919👍, 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, 4990👍, 0💬

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, 12153👍, 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, 5479👍, 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, 5138👍, 0💬

What are benefits and limitations of using Cookies
What are benefits and limitations of using Cookies? Following are benefits of using cookies for state management :- ã No server resources are required as they are stored in client. ã They are light weight and simple to use Following are limitation of using cookies :- ã Most browsers place a 409...
2007-10-23, 4661👍, 0💬

What are benefits and limitations of using Hidden frames
What are benefits and limitations of using Hidden frames? Following are the benefits of using hidden frames: ã You can cache more than one data field. ã The ability to cache and access data items stored in different hidden forms. ã The ability to access JScriptR variable values stored in differ...
2007-10-23, 4484👍, 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, 4666👍, 0💬

What are benefits and Limitation of using Viewstate for state
What are benefits and Limitation of using Viewstate for state management? Following are the benefits of using Viewstate :- ã No server resources are required because state is in a structure in the page code. ã Simplicity. ã States are retained automatically. ã The values in view state are has...
2007-10-23, 4609👍, 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, 4735👍, 0💬

What is ViewState
What is ViewState ? Viewstate is a built-in structure for automatically retaining values amongst the multiple requests for the same page. The viewstate is internally maintained as a hidden field on the page but is hashed, providing greater security than developer-implemented hidden fields do.
2007-10-23, 4646👍, 0💬

What are benefits and Limitation of using Hidden fields
What are benefits and Limitation of using Hidden fields ? Following are the benefits of using Hidden fields :- ã They are simple to implement. ã As data is cached on client side they work with Web Farms. ã All browsers support hidden field. ã No server resources are required. Following are li...
2007-10-23, 4614👍, 0💬

What are the other ways you can maintain state ?
What are the other ways you can maintain state ? Other than session variables you can use the following technique to store state : ? Hidden fields ? View state ? Hidden frames ? Cookies ? Query strings
2007-10-23, 4574👍, 0💬

Where do you specify session state mode in ASP.NET
Where do you specify session state mode in ASP.NET ? <sessionState mode=”SQLServer” stateConnectionString=”tcpip=1 92.168.1.1:42424"sqlConnectionString=”data source=192.168.1.1; Integrated Security=SSPI” cookieless=”false” timeout=”20" /> Above is sample session state mode specified for SQ...
2007-10-23, 4616👍, 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, 4723👍, 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, 4761👍, 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, 6415👍, 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, 4858👍, 0💬

1 2 >   Sort: Rank