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, 4274👍, 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, 5206👍, 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.configh file:- Set gEnabledh attribute to tr...
2007-10-23, 6776👍, 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, 4342👍, 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, 5585👍, 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, 4315👍, 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, 4431👍, 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, 4544👍, 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, 11332👍, 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, 4932👍, 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, 4582👍, 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 4096-byte l...
2007-10-23, 4205👍, 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 different fram...
2007-10-23, 4096👍, 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, 4182👍, 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 hashed, compre...
2007-10-23, 4189👍, 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, 4282👍, 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, 4209👍, 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 limitations o...
2007-10-23, 4206👍, 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, 4128👍, 0💬

Where do you specify session state mode in ASP.NET
Where do you specify session state mode in ASP.NET ? <sessionState mode=SQLServer 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, 4154👍, 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 (\LM\W3...
2007-10-23, 4220👍, 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, 4317👍, 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, 5487👍, 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, 4372👍, 0💬

1 2 >   Sort: Rank