Tuesday 31 January 2012

Versions of Silverlight

Silverlight 1.0

This is the first release of Silverlight technology in 2007.Originally this release was called WPF/E, which stands for Windows Presentation Foundation/ Everywhere. This release consists of the core presentation framework, which is responsible for UI, interactivity and user input, basic UI controls, graphics and animation, media playback and DOM integration.
The Major drawback of this release is not supporting managed code, which means you can't use .NET supported programming languages for manipulating GUI elements. This was managed by scripting programming languages like Java Script (Only interpretation no compilation), which is hard for non Java Script programmers.

Difference Between silverlignt and wpf

Silverlight and WPF


S.No.
Silverlight
WPF
Definition
The Silverlight is Microsoft's latest development platform for building next-generation Web client applications.
The Windows Presentation Foundation (WPF) is Microsoft's latest development platform for building next-generation Windows client applications.
Subset of
Silverlight is generally considered to be a subset of WPF and is a XAML-based technology that runs within the sandbox of browser plug-in.
WPF is generally considered to be a subset of .NET Framework and is a XMAL based technology.
GUI
Silverlight will be used in development of  Rich Internet Application (RIA) for web client users
WPF will be used in development of Rich Windows Graphical User Interface(GUI) for windows client users

Some Important info about silverlight

Silverlight executes in the client browser.  What does it means. It means:
  • Silverlight applications need to be hosted on a web server
  • Silverlight does NOT need to be hosted in IIS, any web server will do
  • Silverlight does NOT need ASP.NET on the server
  • Silverlight applications cannot access databases without an intermediary (like a web service, WCF service)
  • Silverlight applications cannot access server-side classes or variables without an intermediary (like a web service, WCF service)

What is silverlight?

  • Silverlight is a web browser plug-in.
  • Plug-in is small in size and self-in self-contained.It can be installed on demand.
  • Plug-in runs in all popular browsers, including Microsoft Internet Explorer, Mozilla Firefox, Apple Safari, Opera.
  • Silverlight is a plug-in similar to Flash in a sense. It won't run and use any machine resources until you hit a Page that contains Silverlight application.
  • Pug-in runs cross-browser , cross-platform that exposes a programming framework and features that are a subset of the .NET Framework and Windows Presentation Foundation (WPF)
  • Silverlight is a powerful development platform for creating rich media applications and business applications for the Web, desktop, and mobile devices 

Monday 16 January 2012

What is Sessions?


Web is Stateless, which means a new instance of the web page class is re-created each time the page is posted to the server. As we all know HTTP is a stateless protocol, it can't hold the client information on page. If user inserts some information, and move to the next page, that data will be lost and user would not able to retrieve the information. So what we need? we need to store information. Session provides that facility to store information on server memory. It can support any type of object to store along with our custom object. For every client Session data store separately, means session data is stored as per client basis. Have a look at the following diagram.

Wednesday 11 January 2012

Interfaces and Abstract Class Between Differences

Feature Interface Abstract class
Multiple inheritance A class may inherit several interfaces. A class may inherit only one abstract class.
Default implementation An interface cannot provide any code, just the signature. An abstract class can provide complete, default code and/or just the details that have to be overridden.

Monday 2 January 2012

How can we upload large files in asp.net

Default size is 4MB set already set machine config but you can override it and increase the size:-

<system.web>
  <httpRuntime executionTimeout="240" maxRequestLength="20480" />
</system.web>
 

Sunday 1 January 2012

Disable right click on website using javascript


 
Write this code on javacript to disabling right click:-
 

<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e)
{
  if(event.button==2)
   {
     alert(status);
     return false; 
   }
}
</script>