Notifies all message loops to quit, closes windows opened by them and closes program.
www.codecollege.NET
You can exit using the following 2 static methods,
1. Environment.Exit(returnval)
2. Application.Exit()
www.codecollege.NET
1. Better support to Web standards and Accessibility.
2. Better attribute values(boolean) for controls with Disabled attribute.
3. In-line css support for validation controls.
4. CSS for the Hidden Fields Div Element.
5. CSS and UI related to many other controls
www.codecollege.NET
It is a new attribute which makes the selected row in a gridview persistable between navigation between pages in a gridview.
www.codecollege.NET
It makes client-side script accessing asp.net server controls rendered as html controls.
www.codecollege.NET
It a feature which compresses session states in StateServer and SQL Server modes of session storage.
www.codecollege.NET
XML Document Transform (XDT),is the feature that lets you transform a Web.config file.
www.codecollege.NET
It transforms web.config from development environment to production environment.
www.codecollege.NET
You need make the following change to the web.config ,
<system.web>
<pages controlRenderingCompatibilityVersion="3.0"/>
</system.web>
www.codecollege.NET
It makes your site more user-friendly and your site content more discoverable by search engines.
www.codecollege.NET
It lets you build a provider that in turn lets you write custom code to determine browser capabilities.
www.codecollege.NET
To use the auto-start feature, an IIS administrator sets an application pool in IIS 7.5 to be automatically started by using the following configuration in the
applicationHost.config file:
www.codecollege.NET
It is an feature which can be automatically started by using the configuration in the applicationHost.config file.
www.codecollege.NET
The Microsoft Windows HTTP Services (WinHTTP) Certificate Configuration Tool, WinHttpCertCfg.exe, enables administrators to install and configure client certificates in any
certificate store that can be accessed by the Internet Server Web Application Manager (IWAM) account.
www.codecollege.NET
An HTTP handler that combines multiple CSS, Javascript or URL into one response for faster page load. It can combine, compress and cache response which results in faster page
load and better scalability of web application.
www.codecollege.NET
You should call the finalizer after gc like,
//c#
GC.Collect();
GC.WaitForPendingFinalizers();
www.codecollege.NET
Instead of applying it as comma seperated, apply individually in separate lines,
//c#
[Conditional("TRACE")]
[DebuggerStepThrough]
void MyMethod()
{
}
www.codecollege.NET
Yes. The garbage collector offers no guarantees about the time when an object will be destroyed and its memory reclaimed.
www.codecollege.NET
To view trace details for a specific request
1.Goto to Trace.axd in the root of your application.
For ex: if the URL for your application is http://localhost/myApplication, Goto http://localhost/myApplication/trace.axd to view the trace information for that application.
2.Select the View Details link for the specific request that you want to investigate.
www.codecollege.NET
<configuration>
<system.web>
<trace enabled="true" pageOutput="false" requestLimit="40" localOnly="false"/>
</system.web>
</configuration>
www.codecollege.NET
Enclose Methods and Interfaces in #region blocks so that it can be collapsed or expanded.
www.codecollege.NET
1. Open the command window in Visual Studio
2. Type “immed” To Execute statements
www.codecollege.NET
You can prevent your website from xss using:
1. Validate Input received from your site.
2. Encode Output generated from your site.
www.codecollege.NET
It needs to implement IRequiresSessionState or IReadOnlySessionState in order to use session state.
www.codecollege.NET
you can find the control which did postback using "__EVENTTARGET" with few exceptions.
www.codecollege.NET
Your ASP.NET application should use windows authentication when your users have windows accounts that can be authenticated by a server. The accounts can be local windows accounts or domain accounts.
www.codecollege.NET
You can enforce strong passwords using membership by configuring the attributes minRequiredPasswordLength, minRequiredNonAlphanumericCharacters, and passwordStrengthRegularExpression on your membership provider configuration.
www.codecollege.NET
It is a best practice to place all your user-interface strings in a resource file rather burning them in code.
www.codecollege.NET
[SoapDocumentMethod(OneWay=true)]
[WebMethod()]
public void AOneWayComm()
{
//
}
www.codecollege.NET