·
What is datagrid?
o
The
DataGrid Web server control is a powerful tool for displaying information from
a data source. It is easy to use; you can display editable data in a
professional-looking grid by setting only a few properties. At the same time,
the grid has a sophisticated object model that provides you with great
flexibility in how you display the data.
·
34. How do
you hide the columns?
o
One
way to have columns appear dynamically is to create them at design time, and
then to hide or show them as needed. You can do this by setting a column’s
“Visible” property.
·
35. What are
different types of directives in .NET?
o
@Page
·
@Control
·
@Import
·
@Implements
·
@Register
·
@Assembly
·
@OutputCache
·
@Reference
·
36. What data
type does the RangeValidator control support?
o
Integer
·
String.
·
Date.
·
37. What is
cookies?
o
Cookies
are small pieces of text, stored on the client’s computer to be used only by
the website setting the cookies. This allows webapplications to save
information for the user, and then re-use it on each page if needed
·
38. How many
classes can a single .NET DLL contain?
o
It
can contain many classes.
·
39. What
methods are fired during the page load?
§ Init() - when the page is
instantiated.
§ Load() - when the page is loaded into
server memory.
§ PreRender() - the brief moment before
the page is displayed to the user as HTML.
§ Unload() - when page finishes loading.
·
40. What is
the difference between Value Types and Reference Types?
o
Value
Types uses Stack to store the data.
·
where
as Reference type uses the Heap to store the data.
·
What
is the difference between Server-side scripting and Client-side scripting?
o
Server
side scripting means that all the script will be executed by the server and
interpreted as needed. ASP doesn't have some of the functionality like sockets,
uploading, etc.
·
Client
side scripting means that the script will be executed immediately in the
browser such as form field validation, clock, email validation, etc. Client
side scripting is usually done in VBScript or JavaScript.
·
42. How do
you create a permanent cookie?
o
Permanent
cookies are available until a specified expiration date, and are stored on the
hard disk.So Set the 'Expires' property any value greater than
DataTime.MinValue with respect to the current datetime. If u want the cookie
which never expires set its Expires property equal to DateTime.maxValue.
·
43. Which
method do you use to redirect the user to another page without performing a
round trip to the client?
o
Server.Transfer
·
Server.Execute.
·
44. Which
method do you use to redirect the user to another page without performing a
round trip to the client?
o
Server.transfer
·
45. What tag
do you use to add a hyperlink column to the DataGrid?
o
<
asp:HyperLinkColumn > < / asp:HyperLinkColumn>
·
46. What is
web.config file?
o
Web.config
file is the configuration file for the Asp.net web application. There is one
web.config file for one asp.net application which configures the particular
application. Web.config file is written in XML with specific tags having
specific meanings.It includes databa which includes connections,Session
States,Error Handling,Security etc.
·
47. What is
the difference between in-proc and out-of-proc?
o
An
Inproc is one which runs in the same process area as that of the client giving
tha advantage of speed but the disadvantage of stability becoz if it crashes it
takes the client application also with it.
·
Outproc
is one which works outside the clients memory thus giving stability to the
client, but we have to compromise a bit on speed.
·
How
many languages .NET is supporting now?
o
When
.NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl,
etc. The site DotNetLanguages.Net says 44 languages are supported.
·
50. What is
smart navigation?
o
The
cursor position is maintained when the page gets refreshed due to the server
side validation and the page gets refreshed.
·
51. How do
you validate the controls in an ASP .NET page?
o
Using
special validation controls that are meant for this. We have Range Validator,
Email Validator
·
52. How do
you turn off cookies for one page in your site?
o
Use
Cookie.Discard property, Gets or sets the discard flag set by the server. When
true, this property instructs the client application not to save the Cookie on
the user's hard disk when a session ends.
·
53. Which two
properties are on every validation control?
o
We
have two common properties for every validation controls:
·
Control to Validate
·
Error Message
·
54. Which
control would you use if you needed to make sure the values in two different
controls matched?
o
CompareValidator
is used to ensure that two fields are identical.
·
55. What is
the difference between HTTP-Post and HTTP-Get?
o
The
GET method creates a query string and appends it to the script's URL on the
server that handles the request.
·
The
POST method creates a name/value pairs that are passed in the body of the HTTP
request message.
·
56. What is
strong-typing versus weak-typing?
o
Strong
typing implies that the types of variables involved in operations are
associated to the variable, checked at compile-time, and require explicit
conversion
·
Weak
typing implies that they are associated to the value, checked at run-time, and
are implicitly converted as required.
·
What
is boxing and unboxing?
No comments:
Post a Comment