Hi Friends, in this article I will explain about the some
interview questions on ASP.NET.I already explained Interview Questions on SQL SERVER Part I | Interview Questions and Answers on SQL SERVER Part I ,Interview Questions in VB.NET, .NET Framework.,Interview Questions and ASP.NET interview Questions .
In Page_Load event all controls are
loaded.In Page_Init event ,controls are accessed but view state is not fully
loaded in the Page_Init event.
______________________________________
How can we identify that the Page is Post Back?
How can we identify that the Page is Post Back?
In ASP.NET we have IsPostBack property,this can be used to
check the page is post backed or not.
if (!IsPostBack)
{
//Call when page loading first time
}
if (IsPostBack)
{
//Call when page loading second or
higher time
}
|
When the page is calling first time then the IsPostBack property is set to false otherwise it
will be true.
_________________________________________
What is the lifespan for
items stored in ViewState?
The lifespan of the ViewState is based on the life of
the current page.This includes postbacks .
The items stored in ViewState live
until the lifetime of the current page expires including the postbacks to the
same page.
How information about
the user's locale can be accessed?
The user’s locale information can be accessed by using
the System.Web.UI.Page.Culture property.
_________________________________________________________
What is the difference
between SQL notification and SQL invalidation?
The
SQL cache notification generates notifications when the data of a database
changes, on which your cache item depends. The SQL cache invalidation makes a
cached item invalid when the data stored in a SQL server database changes.
"If you like my
blog or articles, you can appreciate by leaving your comments or Liking my
Facebook page Aspdotnet-kishore, following on Google+ Aspdotnet-Kishore, Twitter on AspdotnetKishore, Linked in Aspdotnet-Kishore, stumbling my posts on stumble upon and subscribing on RSSfeed Aspdotnet-Kishore for free updates directly to your Email
inbox . Watch my blog for more articles."
No comments:
Post a Comment