Ques
Ques
5 and vs2012
Asp.net fundamental
Standard controls
Webserver controls
State management
Ans:Enableclientscript=false
Ans:ControlToValidate
IndexOutOfRangeException
Valid stage-management
Ans:
Ans:***
Internet Explorer 10 and Windows Store apps using JavaScript support the Application Cache
API (orAppCache), as defined in the HTML5 specification, which allows you to create offline web
applications. AppCache enables webpages to cache (or save) resources locally, including images, script
libraries, style sheets, and so on. In addition, AppCache allows URLs to be served from cached content
using standard Uniform Resource Identifier (URI) notation.
By using AppCache to save resources locally, you improve the performance of a webpage by reducing
the number of requests made to the hosting server; you also enable offline access to cached resources.
To cache resources locally:
1. Create a manifest file that defines the resources you want to save.
2. Reference the manifest file in each webpage designed to use cached resources.
The CACHE: section defines resources that will be stored locally. In this example, three files are
cached.
The FALLBACK: section defines resources to be used when other resources are not available.
For example, this example defines figure2.png as a fallback image for the photos folder. If the
browser cannot access images in the photos folder (because the browser is offline or because
the server cannot be reached), figure2.png will replace the unavailable images in the rendered
markup. As a result, figure2.png will be cached locally.
The NETWORK: section specifies resources to be accessed when there is a network connection.
Resources in this section are not cached. This section allows the use of the wildcard (*)
character to indicate that all other resources should not be cached.
Manifest files can contain any number of these sections and sections can be repeated; however, new
sections must begin with the section header followed by a colon, as shown in the previous example. If
no section header is provided, the CACHE: header is presumed. The following example shows a
simplified manifest.
HTML
In addition, manifest files:
Must be encoded with 8-bit Unicode Transformation Format (UTF-8) character encoding.
Must be served with a text/cache-manifest MIME type.
Must begin with the line "CACHE MANIFEST".
Can contain comments, preceded by the pound sign (#).
8.What are all true about User control and custom control
Ans:***
Limited support for consumers who use a Full visual design tool support for consumers
visual design tool
A separate copy of the control is required in Only a single copy of the control is required, in the
each application global assembly cache
Cannot be added to the Toolbox in Visual Can be added to the Toolbox in Visual Studio
Studio
If page output caching________caching persist a page to load half and create dynamically
Ans:Session.Clear
Options:
Ans:page
Ans:IIS
Ans:Mobile page***
16:How to add reference to a solution
Add reference
17.
Directive
Ans:Refer q.no:2
Ans:***
User control caching in ASP.NET is called fragment caching. It's done by adding an
OutputCache directive to the top of your page: <%@ OutputCache Duration="120"
VaryByParam="None" %>
InProcess mode, which stores session state in memory on the Web server. This is the default.
StateServer mode, which stores session state in a separate process called the ASP.NET state
service. This ensures that session state is preserved if the Web application is restarted and also
makes session state available to multiple Web servers in a Web farm.
SQLServer mode stores session state in a SQL Server database. This ensures that session state
is preserved if the Web application is restarted and also makes session state available to
multiple Web servers in a Web farm.
Custom mode, which enables you to specify a custom storage provider.
Off mode, which disables session state.
Set-2
Item template
Seperator template
ItemTemplateContains the HTML elements and controls to render once for each data item in
the data source.
AlternatingItemTemplateContains the HTML elements and controls to render once for every
other data item in the data source. Typically, this template is used to create a different look for
the alternating items, such as a different background color than the color that is specified in
the ItemTemplate.
HeaderTemplate and FooterTemplateContains the text and controls to render at the
beginning and end of the list, respectively.
SeparatorTemplateContains the elements to render between each item. A typical example
might be a line (using an HR element).
columns are automatically generated using default column types appropriate for the data types
contained in the bound data source.
ASPError Object
Request Object
Response Object
Ans:Span
Ans:Disposed or UNLOAD
9)timer
Optional
1)Default authentication maode
5)Directives in asp.net
6)include directive
7)Asp.net authentication
Hint:show,hide,enable
9)Mobile UI controls
10)Template in repeaters
Hint:items.removeat(),item.removeat(),items.clear(),item.clear()
To disable validation in a specific control
Set the control's CausesValidation property to false.
To disable a validation control
Set the validation control's Enabled property to false.
To disable client-side validation
Set the validation control's EnableClientScript property to false.