Distributed
Computing Environment/Remote Procedure Calls (DEC/RPC), Microsoft Distributed
Component Object Model (DCOM), Common Object Request Broker Architecture
(CORBA), and Java Remote Method Invocation (RMI).
Initialize an
instance of AppSettingsReader class. Call the GetValue method of
AppSettingsReader class, passing in the name of the property and the type
expected. Assign the result to the appropriate variable.
ErrorProvider
control is used in Windows Forms application. It is like Validation Control for
ASP.NET pages. ErrorProvider control is used to provide validations in Windows
forms and display user friendly messages to the user if the validation
fails. E.g. if we went to validate the textBox1 should be empty, then we
can validate as below
1). You need to
place the errorprovide control on the form
it check the textBox1 is empty . If it is empty, then a message Please enter your name is displayed.
private void textBox1_Validating(object
sender,System.ComponentModel.CancelEventArgs e)
{
ValidateName();
}
private bool ValidateName()
{
bool bStatus = true;
if (textBox1.Text == "")
{
errorProvider1.SetError (textBox1,"Please enter your Name");
bStatus = false;
}
else
errorProvider1.SetError (textBox1,"");
return bStatus;
}
it check the textBox1 is empty . If it is empty, then a message Please enter your name is displayed.
The Debug.Write call won’t be compiled when the
DEBUGsymbol is not defined (when doing a release build). Trace.Write calls will
be compiled. Debug.Write is for information you want only in debug builds,
Trace.Write is for when you want it in release build as well.
There
are 5 transactions types that can be used with COM+. Whenever an object is
registered with COM+ it has to abide either to these 5 transaction types.
Disabled:
- There is no transaction. COM+ does not provide transaction support for this
component.
Not Supported: - Component does not support transactions. Hence
even if the calling component in the hierarchy is transaction enabled this
component will not participate in the transaction.
Supported: - Components with transaction type supported will be a part of the
transaction if the calling component has an active transaction.
If the calling component is not transaction enabled this component will not start a new transaction.
If the calling component is not transaction enabled this component will not start a new transaction.
Required:
- Components with this attribute require a transaction i.e. either the calling
should have a transaction in place else this component will start a new
transaction.
Required
New: - Components enabled with this
transaction type always require a new transaction. Components with required new
transaction type instantiate a new transaction for themselves every time.
The purpose of
Canonical XML is to define a standard format for an XML document. Canonical XML
is a very strict XML syntax, which lets documents in canonical XML be compared
directly.
Using this strict syntax makes it easier to see whether two XML documents are the same. For example, a section of text in one document might read Black & White, whereas the same section of text might read Black & White in another document, and even in another. If you compare those three documents byte by byte, they’ll be different. But if you write them all in canonical XML, which specifies every aspect of the syntax you can use, these three documents would all have the same version of this text (which would be Black & White) and could be compared without problem. This Comparison is especially critical when xml documents are digitally signed. The digital signal may be interpreted in different way and the document may be rejected.
Using this strict syntax makes it easier to see whether two XML documents are the same. For example, a section of text in one document might read Black & White, whereas the same section of text might read Black & White in another document, and even in another. If you compare those three documents byte by byte, they’ll be different. But if you write them all in canonical XML, which specifies every aspect of the syntax you can use, these three documents would all have the same version of this text (which would be Black & White) and could be compared without problem. This Comparison is especially critical when xml documents are digitally signed. The digital signal may be interpreted in different way and the document may be rejected.
The Microsoft
.NET Compact Framework is designed to run on mobile devices such as mobile
phones, Personal Digital Assistants (PDAs), and embedded devices. The easiest
way to develop and test a Smart Device Application is to use an emulator.
These devices are divided into two main divisions:
1) Those that are directly supported by .NET (Pocket PCs, i-Mode phones, and WAP devices)
2) Those that are not (Palm OS and J2ME-powered devices).
These devices are divided into two main divisions:
1) Those that are directly supported by .NET (Pocket PCs, i-Mode phones, and WAP devices)
2) Those that are not (Palm OS and J2ME-powered devices).
Windows service
is a application that runs in the background. It is equivalent to a NT service.
The executable created is not a Windows application, and hence you can’t just click and run it . it needs to be installed as a service, VB.Net has a facility where we can add an installer to our program and then use a utility to install the service. Where as this is not the case with standard exe
The executable created is not a Windows application, and hence you can’t just click and run it . it needs to be installed as a service, VB.Net has a facility where we can add an installer to our program and then use a utility to install the service. Where as this is not the case with standard exe
The Repeater class
is not derived from the WebControl class, like the DataGrid and DataList.
Therefore, the Repeater lacks the stylistic properties common to both the
DataGrid and DataList. What this boils down to is that if you want to format
the data displayed in the Repeater, you must do so in the HTML markup. The
Repeater control provides the maximum amount of flexibility over the HTML
produced. Whereas the DataGrid wraps the DataSource contents in an HTML <
table >, and the DataList wraps the contents in either an HTML < table
> or < span > tags (depending on the DataList’s RepeatLayout
property), the Repeater adds absolutely no HTML content other than what you
explicitly specify in the templates. While using Repeater control, If we wanted
to display the employee names in a bold font we’d have to alter the
“ItemTemplate” to include an HTML bold tag, Whereas with the DataGrid or
DataList, we could have made the text appear in a bold font by setting the
control’s ItemStyle-Font-Bold property to True. The Repeater’s lack of
stylistic properties can drastically add to the development time metric. For
example, imagine that you decide to use the Repeater to display data that needs
to be bold, centered, and displayed in a particular font-face with a particular
background color. While all this can be specified using a few HTML tags, these
tags will quickly clutter the Repeater’s templates. Such clutter makes it much
harder to change the look at a later date. Along with its increased development
time, the Repeater also lacks any built-in functionality to assist in
supporting paging, editing, or editing of data. Due to this lack of
feature-support, the Repeater scores poorly on the usability scale.
However, The Repeater’s performance is slightly better than that of the DataList’s, and is more noticeably better than that of the DataGrid’s. Following figure shows the number of requests per second the Repeater could handle versus the DataGrid and DataList
However, The Repeater’s performance is slightly better than that of the DataList’s, and is more noticeably better than that of the DataGrid’s. Following figure shows the number of requests per second the Repeater could handle versus the DataGrid and DataList
Read All Questions :-asp.net interview questions part-(1 to 8)
You have gain more knowledge
Visit Daily
best of luck !
No comments:
Post a Comment