How to create Session Timeout alert box and Redirect to Login.aspx page in ASP.NET


ASP.NET allows you to save values by using session state, which is an instance of the System.Web.SessionState.HttpSessionState class, for each active Web Application session. If different users are using your application, each user session will have a different session state. You can use session state to accomplish the following tasks:
  1. Uniquely identify browser or client-device requests and map them to an individual session instance on the server.
  2. Store session-sepcific data on the server for user across multiple browser or client-device requests within the same session.
  3. Raise appropriate session management events. In addition, you can write application code that make use of these event.
So, here is how you can redirect a user who's session time is out. Copy the JavaScript and HTML code in you application.



    

Copy this HTML code in your application.

How to make your Web Application Performance Faster.


Hi, following are the most important thinks to note for Web Application performance:

1. Make fewer HTTP requests
              Decreasing the number of components on a page reduces the number of HTTP requests required to render the page, resulting in faster page loads. Some ways to reduce the number of components include: combine files, combine multiple scripts into one script, combine multiple CSS files into one style sheet, and use CSS Sprites and image maps.

2. Content Delivery Network (CDN)
            User proximity to web servers impacts response times. Deploying content across multiple geographically dispersed servers helps users perceive that pages are loading faster.

3. Add Expires headers
           Web pages are becoming increasingly complex with more scripts, style sheets, images, and Flash on them. A first-time visit to a page may require several HTTP requests to load all the components. By using Expires headers these components become cacheable, which avoids unnecessary HTTP requests on subsequent page views. Expires headers are most often associated with images, but they can and should be used on all page components including scripts, style sheets, and Flash.

4. Compress components with gzip
            Compression reduces response times by reducing the size of the HTTP response. Gzip is the most popular and effective compression method currently available and generally reduces the response size by about 70%. Approximately 90% of today's Internet traffic travels through browsers that claim to support gzip.

5. Grade A on Put CSS at top
            Moving style sheets to the document HEAD element helps pages appear to load quicker since this allows pages to render progressively.

6. Put JavaScript at bottom
            JavaScript scripts block parallel downloads; that is, when a script is downloading, the browser will not start any other downloads. To help the page load faster, move scripts to the bottom of the page if they are deferrable.

7. Avoid CSS expressions
            CSS expressions (supported in IE beginning with Version 5) are a powerful, and dangerous, way to dynamically set CSS properties. These expressions are evaluated frequently: when the page is rendered and resized, when the page is scrolled, and even when the user moves the mouse over the page. These frequent evaluations degrade the user experience.

8. Make JavaScript and CSS external
            Using external JavaScript and CSS files generally produces faster pages because the files are cached by the browser. JavaScript and CSS that are inline in HTML documents get downloaded each time the HTML document is requested. This reduces the number of HTTP requests but increases the HTML document size. On the other hand, if the JavaScript and CSS are in external files cached by the browser, the HTML document size is reduced without increasing the number of HTTP requests.

9. Reduce DNS lookups
            The Domain Name System (DNS) maps host-names to IP addresses, just like phone-books map people's names to their phone numbers. When you type URL www.yahoo.com into the browser, the browser contacts a DNS resolver that returns the server's IP address. DNS has a cost; typically it takes 20 to 120 milliseconds for it to look up the IP address for a host-name. The browser cannot download anything from the host until the look-up completes.

10. Minify JavaScript and CSS
            Minification removes unnecessary characters from a file to reduce its size, thereby improving load times. When a file is minified, comments and unneeded white space characters (space, newline, and tab) are removed. This improves response time since the size of the download files is reduced.

11. Avoid URL redirects
            URL redirects are made using HTTP status codes 301 and 302. They tell the browser to go to another location. Inserting a redirect between the user and the final HTML document delays everything on the page since nothing on the page can be rendered and no components can be downloaded until the HTML document arrives.

12.Remove duplicate JavaScript and CSS
            Duplicate JavaScript and CSS files hurt performance by creating unnecessary HTTP requests (IE only) and wasted JavaScript execution (IE and Firefox). In IE, if an external script is included twice and is not cacheable, it generates two HTTP requests during page loading. Even if the script is cacheable, extra HTTP requests occur when the user reloads the page. In both IE and Firefox, duplicate JavaScript scripts cause wasted time evaluating the same scripts more than once. This redundant script execution happens regardless of whether the script is cacheable.

13. Configure entity tags (ETags)
            Entity tags (ETags) are a mechanism web servers and the browser use to determine whether a component in the browser's cache matches one on the origin server. Since ETags are typically constructed using attributes that make them unique to a specific server hosting a site, the tags will not match when a browser gets the original component from one server and later tries to validate that component on a different server.

14. Make AJAX cacheable
            One of AJAX's benefits is it provides instantaneous feedback to the user because it requests information asynchronously from the backend web server. However, using AJAX does not guarantee the user will not wait for the asynchronous JavaScript and XML responses to return. Optimizing AJAX responses is important to improve performance, and making the responses cacheable is the best way to optimize them.

15. GET for AJAX requests
            When using the XMLHttpRequest object, the browser implements POST in two steps: (1) send the headers, and (2) send the data. It is better to use GET instead of POST since GET sends the headers and the data together (unless there are many cookies). IE's maximum URL length is 2 KB, so if you are sending more than this amount of data you may not be able to use GET.

16. Reduce the number of DOM elements
            A complex page means more bytes to download, and it also means slower DOM access in JavaScript. Reduce the number of DOM elements on the page to improve performance.

17. Avoid HTTP 404 (Not Found) error
            Making an HTTP request and receiving a 404 (Not Found) error is expensive and degrades the user experience. Some sites have helpful 404 messages (for example, "Did you mean ...?"), which may assist the user, but server resources are still wasted.

18. Reduce cookie size
            HTTP cookies are used for authentication, personalization, and other purposes. Cookie information is exchanged in the HTTP headers between web servers and the browser, so keeping the cookie size small minimizes the impact on response time.

19. Use cookie-free domains
            When the browser requests a static image and sends cookies with the request, the server ignores the cookies. These cookies are unnecessary network traffic. To workaround this problem, make sure that static components are requested with cookie-free requests by creating a subdomain and hosting them there.
20. Avoid AlphaImageLoader filter
            The IE-proprietary AlphaImageLoader filter attempts to fix a problem with semi-transparent true color PNG files in IE versions less than Version 7. However, this filter blocks rendering and freezes the browser while the image is being downloaded. Additionally, it increases memory consumption. The problem is further multiplied because it is applied per element, not per image.

21. Do not scale images in HTML
            Web page designers sometimes set image dimensions by using the width and height attributes of the HTML image element. Avoid doing this since it can result in images being larger than needed. For example, if your page requires image myimg.jpg which has dimensions 240x720 but displays it with dimensions 120x360 using the width and height attributes, then the browser will download an image that is larger than necessary.

22. Make favicon small and cacheable
            A favicon is an icon associated with a web page; this icon resides in the favicon.ico file in the server's root. Since the browser requests this file, it needs to be present; if it is missing, the browser returns a 404 error (see "Avoid HTTP 404 (Not Found) error" above). Since favicon.ico resides in the server's root, each time the browser requests this file, the cookies for the server's root are sent. Making the favicon small and reducing the cookie size for the server's root cookies improves performance for retrieving the favicon. Making favicon.ico cacheable avoids frequent requests for it.

What is .NET Framework?


If the interview ask you this question just say this,
Microsoft introduce the .NET framework with the intention of bridging the gap in interoperability between application. This framework aims at integrating various programming languages and services. It is design to make significant improvements int the code reuse, code specialization, resource management, multi-language, development. It is a platform which enables you to create robust and scalable applications. The .NET framework consists of Common Langauage Runtime(CLR), Common Language Specification(CLS), and the Just-In-Time Compiler.

.NET Architecture


Just print this image in you mind. The above image explains the .NET Architecture. It will be easy for you to explain the .NET Framework with this image.

What are the different version of Microsoft .NET Framework?



Microsoft .NET Framework has come long way since .NET Framework 1.0 to .NET Framework 4.0. Microsoft has first launched its Framework version with .NET 1.0 followed by .NET 1.1, .NET 2.0, .NET 3.0, .NET 3.5 and last but not the least .NET 4.0. The .NET Framework 1.1 version had Common Language Runtime (CLR), Web Services and ASP.NET. Then in .NET Framework 2.0, Microsoft enhance the framework with ADO.NET, Cache Dependency, Generics, Globalization, Partial Classes, DPAPI C Data and Protection API, AJAX.

      Moving further to .NET Framework 3.0 came Windows Communication Foundation, Windows Presentation Foundation, Windows WorkFlow Foundation. In simple words .NET 3.0 = .NET 2.0 + WCF + WCS + WF + WPF. .NET Framework 3.0 was more enhanced in .NET Framework 3.5 and add some more Windows Communication Foundation, Windows Presentation Foundation, Windows WorkFlow Foundation, LINQ, AJAX, & New Windows Service Standards.

The New .NET Framework 4.0 a boom in the market. Programmer try to learn and find who easily they can develop the application. This Framework has the following features,
  1. Application Compatibility and Deployment.
  2. Core New Features and Improvements.
  3. Managed Extensibility Framework
  4. Parallel Computing.
  5. Networking.
  6. Web.
  7. Client.
  8. Data.
  9. Windows Communication Foundation.
  10.  Windows Presentation Foundation.
  11. Windows Workflow Foundation.



I have even come across the latest 2010 survey report by Scott Hanselman Blog,

What are the new features of .NET Framework 4.0


 One more new Framework for Microsoft .NET namely .NET Framework 4.0. So, What's New in the .NET Framework 4? I think Microsoft has the answer. Here what they say, The .NET Framework is an integral Windows component that supports building and running the next generation of applications and Web services. The key components of the .NET Framework are the common language runtime (CLR) and the .NET Framework class library, which includes ADO.NET, ASP.NET, Windows Forms, and Windows Presentation Foundation (WPF). The .NET Framework provides a managed execution environment, simplified development and deployment, and integration with a wide variety of programming languages. The .NET Framework 4 introduces an improved security model. As per my reserch I have found the following new feathers for Microsoft .NET Framework 4.0,

  1. Application Compatibility and Deployment.
  2. Core New Features and Improvements.
  3. Managed Extensibility Framework
  4. Parallel Computing.
  5. Networking.
  6. Web.
  7. Client.
  8. Data.
  9. Windows Communication Foundation.
  10.  Windows Presentation Foundation.
  11. Windows Workflow Foundation.
This is one more big top to complete.
You can find more information here

What is Deserialization in ASP.NET?


As a programmer you may need to restore the object or data into its original form. This process of restoring the object or data to its original state is called Deserialization 

Source Code:

What is Serialization in ASP.NET?


As a programmer you will often need to send objects to another location, you may also need to convert them to an appropriate format. So, what will you do? One of the solution is Serialization. The .NET Framework 2.0 provides built-in classes to convert data to formats that are portable, or easy to transport to another location. This process of converting data into a portable format is called Serialization.

Download Free Complete Sample project on Microsoft .NET, Warehouse Management System, along with Documentation & Source Code.


You can download complete Warehouse Management System project for you reference. This project contains Documention and Source Code. Documentation has all the screen shorts of the project. This is very much helpful of new programmer in Microsoft .NET and also to Engineering Final year student in there final year project. Before downloading you can read the abstract,

Project: Warehouse Management System

Abstract:

The Warehouse Management System (WMS) mainly deals with automating the tasks of maintaining and transacting the goods. In the Warehouse Management System, inventory management is the key process. This process includes activities such as maintenance of stock details, ordering and receiving items, maintenance of receipts and items etc. It is a tedious job to maintain all these details manually. Hence, we opted to automate the Warehouse Management System.

Warehouse Management System automates the job of warehouse system.

It mainly includes five members:
Administrator
Sub-Location In-charge
Retailer
Supplier
Customer

Download Complete Project Now..!

Sample resume format for Microsoft .NET with 2+ year of experience.



                                              Reference Here:           
 

Candidate Name
Ph:  +91- 9999999999

 

 
Objective: (Explain your goal here)
                      Seeking a challenging career in the field of Development of applications and producing innovative yet practical solutions to challenging problems, which would utilize my knowledge and adding continuous value to my career in multiple dimensions.                 

Professional Summary: (Explain briefly about your experience here)

§         Tell your total experience. Ex: Having 2+ years of experience in the field of Software Development using Microsoft .NET Technologies.
§         Tell about your strength Ex: Proven ability at Programming, Implementation, and Project Conceptualization of Client-Server systems.
§         Technology you know like Expert in Ex C#, ASP.NET etc..,
§         Add what you have learned in your project.
§         Tell you domain experience Ex: Functional domain experience involves Academic Solutions and E – Commerce Web Application.

Work Experience: (Mention your company name and total exp. here)

§         Working as Designation Here in Company Name, Location from Date to till Date.
§         Add working history here

Education:

§         Mention all you’re academic from 10 to Highest Degree.
§         Ex: Bachelor of Computer Science Engineering from College Name Here, Location in the year with %.


Technical Skills: 

§         Microsoft Technologies             : Ex: C#, ASP.NET, MS-SQL.
§         Web Technologies                      : Ex: HTML, JavaScript & XML.
§         Database Technologies              : Ex: Microsoft SQL-Server 2005 & MS-Access 2003.
§         Performance Tool                       : Ex: Visual Studio 2008 & 2005, SQL Server 2005.







Projects Handled

1. Name of the most recent project.
Role                                        :  You’re role in project
Client                                     Name of the client.
Environment                          :  Ex: Microsoft .NET 2.0, MS-Access 2003 & Win XP.
Tools                                       :  Ex: Visual Studio 2008 & Microsoft SQL Server 2005
Team Size                              : Size of your project team. Ex: 5
Description:

Give an abstract of your project. Give a brief explanation 1 or 2 paragraphs will do.

Responsibility:

§         Explain what you have do in the project. Don’t tell you didn’t do anything.
§         Ex: Responsible to develop Administrator Module.
§         Used 3-tier architecture (Presentation Layer, Business Logic Layer and Data Access Layers) for developing application.
§         Involve in designing windows forms.
§         Involve in creating file Setup using Visual Studio 2008.


2. Name of the most recent project.
Role                                        :  You’re role in project
Client                                     Name of the client.
Environment                          :  Ex: Microsoft .NET 2.0, MS-Access 2003 & Win XP.
Tools                                       :  Ex: Visual Studio 2008 & Microsoft SQL Server 2005
Team Size                              : Size of your project team. Ex: 5
Description:

Give an abstract of your project. Give a brief explanation 1 or 2 paragraphs will do.

Responsibility:

§         Explain what you have do in the project. Don’t tell you didn’t do anything.
§         Ex: Responsible to develop Administrator Module.
§         Used 3-tier architecture (Presentation Layer, Business Logic Layer and Data Access Layers) for developing application.
§         Involve in designing windows forms.
§         Involve in creating file Setup using Visual Studio 2008.


3. Name of the most recent project.
Role                                        :  You’re role in project
Client                                     Name of the client.
Environment                          :  Ex: Microsoft .NET 2.0, MS-Access 2003 & Win XP.
Tools                                       :  Ex: Visual Studio 2008 & Microsoft SQL Server 2005
Team Size                              : Size of your project team. Ex: 5
Description:

Give an abstract of your project. Give a brief explanation 1 or 2 paragraphs will do.

Responsibility:

§         Explain what you have do in the project. Don’t tell you didn’t do anything.
§         Ex: Responsible to develop Administrator Module.
§         Used 3-tier architecture (Presentation Layer, Business Logic Layer and Data Access Layers) for developing application.
§         Involve in designing windows forms.
§         Involve in creating file Setup using Visual Studio 2008.




Personal Details:

§         Name                                : You’re Name.
§         Email Address                  : You’re Email Address.
§         Phone                                : 91-9999999999
§         Father Name                    : You’re Father Name.
§         Date of Birth                    : you’re Date of Birth.                       
§         Martial status                  : You know this I do.             
§         Languages known            : You’re Location.
§         Passport No                      : HXXXXXXX.
§         Present address               : You’re Current Address.


You can conclude you resume her if you want or not need

What is the difference between WCF and Web Services?


Let me tell you the definition of two and then explain the main difference.


Windows Communication Foundation(WCF):
       
         WCF stands for Windows Communication Foundation. WCF is a unified programming model for building service oriented application. WCF is the next generation of distributed applications and Web Services. It consist of a runtime and classes in System.ServiceModel namespace.

Web Services:
       
         Web Services are business logic compnents, which provide functionality via the internet using standard protocols such as HTTP. Web Services uses Simple Object Access Protocol (SOAP) in order to expose the business functionality. SOAP defines a standardized format in XML.

Differences:


WCF

Web Services
While WCF Service or a WCF component can be invoked by any protocol (like http, tcp etc.) and any transport type.

Web services can only be invoked by HTTP (traditional webservice with .asmx).

WCF are flexible.

Web Services not are flexible.
WCF service can also maintain state and session.
WCF service can not maintain state and session.

Recent Posts