Dot Net Int Qstns
Dot Net Int Qstns
Dot Net Int Qstns
Global Theme
A Global theme is a theme that is applied to all the web sites on a web server
and includes property settings, and graphics. This theme allows us to maintain all
the websites on the same web server and define the same style for all the web
pages of the web sites.
10. How can you identify that the page is posted back?
Answer:
There is a property, named as “IsPostBack” property. You can check it to know
that the page is post backed or not.
11. What is the full form of ADO?
Answer:
The full form of ADO is ActiveX Data Object.
12. What is Click Once?
Answer: ClickOnce is a new deployment technology that allows you to create
and publish self-updating applications that can be installed and run with minimal
user interaction.
BEST 36 Cognos Framework Manager Interview Questions
13. What is Ajax in ASP.NET?
Answer: Ajax stands for Asynchronous JavaScript and XML; in other words,
Ajax is the combination of various technologies such as JavaScript, CSS,
XHTML, DOM, etc.
AJAX allows web pages to be updated asynchronously by exchanging small
amounts of data with the server behind the scenes. This means that it is possible
to update parts of a web page, without reloading the entire page.
We can also define Ajax is a combination of client-side technologies that
provides asynchronous communication between the user interface and the web
server so that partial page rendering occurs instead of complete page postback.
With AJAX, when a user clicks a button, you can use JavaScript and DHTML to
immediately update the UI, and spawn an asynchronous request to the server to
fetch results.
When the response is generated, you can then use JavaScript and CSS to
update your UI accordingly without refreshing the entire page. While this is
happening, the form on the user’s screen doesn’t flash, blink, disappear, or stall.
The power of AJAX lies in its ability to communicate with the server
asynchronously, using an XMLHttpRequest object without requiring a browser
refresh.
The following actions will be taken place when a user changes a control that has
the AutoPostBack property set to true:
On the client-side, the JavaScript _doPostBack function is invoked, and the page
is resubmitted to the server.
ASP.NET re-creates the Page object using the .aspx file.
ASP.NET retrieves state information from the hidden view state field and updates
the controls accordingly.
The Page. The load event is fired.
The appropriate change event is fired for the control. (If more than one control
has been changed, the order of change events is undetermined.)
The Page.PreRender event fires and the page is rendered (transformed from a
set of objects to an HTML page).
Finally, Page. Unload event is fired.
The new page is sent to the client.
Setting the theme at the page level: the Theme attribute is added to the page
directive of the page.
Setting the theme at the site level: to set the theme for the entire website you can
set the theme in the web.config of the website. Open the web.config file and
locate the element and add the theme attribute to it:
Setting the theme programmatically at runtime: here the theme is set at runtime
through coding. It should be applied earlier in the page’s life cycle ie.
Page_PreInit event should be handled for setting the theme. The better option is
to apply this to the Base page class of the site as every page in the site inherits
from this class.
Page.Theme = Theme1;
Uses of Themes
Since themes can contain CSS files, images, and skins, you can change colors,
fonts, positioning, and images simply by applying the desired themes.
You can have as many themes as you want and you can switch between them
by setting a single attribute in the web.config file or an individual apex page. Also,
you can switch between themes programmatically.
Setting the themes programmatically, you are offering your users a quick and
easy way to change the page to their likings.
Themes allow you to improve the usability of your site by giving users with vision
problems the option to select a high contrast theme with large font size.
Footer…
We can see the execution path of the page and application using the debug
statement.
We can access and manipulate trace messages programmatically.
We can see the most recent tracing of the data.
Tracing can be done with the following 2 types.
Page Level: When the trace output is displayed on the page and for the page-
level tracing we need to set the property of tracing at the page level.
Data binding allows you to take the results of properties, collection, method calls,
and database queries and integrate them with your ASP.NET code. You can
combine data binding with Web control rendering to relieve much of the
programming burden surrounding Web control creation. You can also use data
binding with ADO.NET and Web controls to populate control contents from SQL
select statements or stored procedures.
The <%#, which instructs ASP.NET to evaluate the expression. The difference
between data binding tags and regular code insertion tags <% and %> becomes
apparent when the expression is evaluated. Expressions within the data binding
tags are evaluated only when the DataBind method in the Page objects or Web
control is called.
Data Bind Control can display data in the connected and disconnected model.
Server-Side Validation:
When validation occurs on the server, then it is known as Server-Side Validation.
Server-Side Validation is a secure form of validation. The main advantage of
Server-Side Validation is if the user somehow bypasses the Client-Side
Validation, we can still catch the problem on server-side.
RegularExpressionValidator Control
CustomFieldValidator Control
ValidationSummary
In traditional Web programming, all information that is associated with the page,
along with the controls on the page, would be lost with each roundtrip.
The Microsoft ASP.NET framework includes several options to help you preserve
data on both a per-page basis and an application-wide basis.
These options can be broadly divided into the following two categories:
Hidden fields
View state
Cookies
Query strings
Server-Side State Management
There are situations where you need to store the state information on the server-
side.
Application state
Session state
State Management
oth, debug and release builds.
Source: Exforsys.
1. Default Constructor
2. Parameterized Constructor
3. Copy Constructor
4. Static Constructor