The process in
which a Web page sends data back to the same page on the server.
Just call
SetNoStore on the HttpCachePolicy object exposed through the Response object’s
Cache property, as demonstrated here:
SetNoStore works
by returning a Cache-Control: private, no-store header in the HTTP response. In
this example, it prevents caching of a Web page that shows the current time.
VSDISCO files are
DISCO files that support dynamic discovery of Web services. If you place the
following VSDISCO file in a directory on your Web server, for example, it
returns references to all ASMX and DISCO files in the host
directory and any subdirectories not noted in elements:
·
<DYNAMICDISCOVERY
xmlns="urn:schemas-dynamicdiscovery:disco.2000-03-17">
<DYNAMICDISCOVERY
xmlns="urn:schemas-dynamicdiscovery:disco.2000-03-17">
ControlToValidate property and Text property.
System.Web.UI.Page
The CLR computes actual permissions at runtime based on code group
membership and the calling chain of the code.
Authentication
happens first. You verify user’s identity based on credentials. Authorization
is making sure the user only gets access to the resources he has credentials
for.
A code group is a
set of assemblies that share a security context.
Using
System.Security.Permissions;
[assembly:FileDialogPermissionAttribute(SecurityAction.RequestMinimum, Unrestricted=true)].
[assembly:FileDialogPermissionAttribute(SecurityAction.RequestMinimum, Unrestricted=true)].
You can request
permission to do something and you can demand certain permissions from other
apps. You can also refuse permissions so that your app is not inadvertently
used to destroy some data.
Code security is
the approach of using permissions and permission sets for a given code to run.
The admin, for example, can disable running executables off the Internet or
restrict access to corporate database to only few applications. Role-based
security most of the time involves the code running with the privileges of the
current user. This way the code cannot supposedly do more harm than mess up a
single user account. There’s no better, or 100% thumbs-up approach, depending
on the nature of deployment, both code-based and role-based security could be
implemented to an extent.
Displaying a
drop-down list requires a template column in the grid. Typically, the
ItemTemplate contains a control such as a data-bound Label control to show the
current value of a field in the record. You then add a drop-down list to the
EditItemTemplate. In Visual Studio, you can add a template column in the
Property builder for the grid, and then use standard template editing to remove
the default TextBox control from the EditItemTemplate and drag a DropDownList
control into it instead. Alternatively, you can add the template column in HTML
view. After you have created the template column with the drop-down list in it,
there are two tasks. The first is to populate the list. The second is to
preselect the appropriate item in the list — for example, if a book’s genre is
set to “fiction,” when the drop-down list displays, you often want “fiction” to
be preselected.
Using pagination
option in DataGrid control. We have to set the number of records for a page,
then it takes care of pagination by itself.
Client side
validation is done by default. Server side validation is also possible. We can
switch off the client side and server side can be done.
We can Validate
the controls in an ASP.NET page by using special validation controls that are
meant for this. We have Range Validator, Email Validator.
The cursor
position is maintained when the page gets refreshed due to the server side
validation and the page gets refreshed.
A language should
comply with the Common Language Runtime standard to become a .NET language. In
.NET, code is compiled to Microsoft Intermediate Language (MSIL for short).
This is called as Managed Code. This Managed code is run in .NET environment.
So after compilation to this IL the language is not a barrier. A code can call
or use a function written in another language.
Sun left the
implementation of a specific garbage collector up to the JRE developer, so
their performance varies widely, depending on whose JRE you’re using. Microsoft
standardized on their garbage collection.
The CLI (Common
Language Infrastructure) is the definiton of the fundamentals of the .NET
framework - the Common Type System (CTS), metadata, the Virtual Execution
Environment (VES) and its use of intermediate language (IL), and the support of
multiple programming languages via the Common Language Specification (CLS). The
CLI is documented through ECMA
The CLR (Common
Language Runtime) is Microsoft’s primary implementation of the CLI. Microsoft
also have a shared source implementation known as ROTOR, for educational
purposes, as well as the .NET Compact Framework for mobile devices.
Non-Microsoft CLI implementations include Mono and DotGNU Portable.NET.
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