Page object has an “IsPostBack” property, which can be checked to know t the page is posted back.
What is the use of @ Register directives?
@Register directive informs the compiler of any custom server control added to the page.
What is the use of Smart Navigation property?
It’s a feature provided by ASP.NET to prevent flickering and redrawing when the page is posted back.
What is AppSetting Section in “Web.Config” file?
Web.config file defines configuration for a web project. Using “AppSetting” section, we can define user-defined values. Example below is a “Connection String” section, which will be used throughout the project for database connection.\
<add key="ConnectionString" value="server=xyz;pwd=www;database=testi
Where is View State information stored?
In HTML Hidden Fields.
How can we create custom controls in ASP.NET?
User controls are created using .ASCX in ASP.NET. After .ASCX file is created you need to two things in order that the ASCX can be used in project:.
- Register the ASCX control in page using the <percentage@ Register directive.Example
<%@ Register tag prefix="Accounting" Tag name="footer" Src="Footer.ascx" %>
- Now to use the above accounting footer in page you can use the below directive.
<Accounting: footer runat="server" />See following video on implementing ASP.NET Forms Authentication: -
Click and see here for more stuffs step by step learning ASP.NET.