Security model of Internet Information Services for ASP.NET

0 comments
IIS has its own security configuration and even for any request reaching the ASP.NET runtime, IIS verifies the request with it's own security configuration. So the first gatekeeper in the ASP.NET security pipeline is actually IIS. So let us understand those security mechanisms which IIS implements:

Database Binding with Accordion Control

0 comments
This article demonstrates how to bind an Accordion Control with a database in ASP.Net using Ajax.

We are assuming that you have already completed the installation of the Ajax Toolkit as well as have a basic understanding of coding.

Hosting Mobile WebSite Under IIS

0 comments
First we have to create a mobile web application. For how to create a mobile web site see my previous article Developing Mobile Pages.

What is Foreground or Background Thread

0 comments
Threading is a concept we all understand and most of us would have implemented them in real world applications. Here is one more explanation of inner level detail on threads - that is Foreground and Background threads.

Pop Search Form Control in Silverlight

0 comments
Silverlight is a new and powerful browser plug-in that works with Mac OS, Windows and Linux. It helps you create rich web application that is safe, secure and scalable cross-platform. This article will use Visual Studio 2008 to create Silverlight pop search form control.
System Requirement

Use of Stopwatch Class in C#

0 comments

Using the following line a new stopwatch object will be created:
System.Diagnostics.Stopwatch myStopWatch = newSystem.Diagnostics.Stopwatch();
The "Start" method will start the stopwatch:

Resource Management In Silverligt 3

0 comments
The files required for any Application to run other than project related files are called resources. It can be a text file or image file or any other file. In this article, we will be seeing how images can be accessed in various ways in a Silverlight application.

Splash Screen in Silverlight 3 Application

0 comments
If a Silverlight application is small, it will be downloaded quickly and appear in the browser. If a Silverlight application is large, it may take a few seconds to download. As long as your application takes longer than 500 milliseconds to download, Silverlight will show an animated splash screen.

InitParams in Silverlight

0 comments
If you are developing a Silverlight Application, and you need to pass some parameters inside – for example a key and value pair then we can pass the key value pair from the aspx page itself. We will see how we can do this in Silverlight.

Scene Order (Layer Order) in XAML Silverlight

0 comments
XAML is fully based on composition of object scenes. Every XAML page has a parent/top most container (like UserControl/Canvas/Page etc) and it may have zero or more children elements (like Grid/Rectange/Ellipse etc). Look at the example below:

Plane Projection in Silverlight 3

0 comments
In this article we will see Projection in Silverlight, which describe how to transform an object in 3-D space using perspective transforms. In this article we will use Plane Projection, which represents a perspective transform (a 3-D-like effect) on an object.

File Uplalod from Silver Light application to server location using WCF

0 comments
This article will explain, How to upload a file from SilverLight client to server location using WCF.
To achieve above task, follow the below steps. Assume, that Reader has a basic concept of

Hello Program in Silverlight using Expression Blend & Visual Studio

0 comments
Install Expression Studio (it includes Blend, Encoder, Design, Web applications) for Visual Studio so that we can start developing Silverlight by using either Visual Studio or Expression Blend. Finally, what we have here is, Expression Blend adds the features to existing Visual Studio.Creating "Hello" Program using Expression Blend

Let's start Expression Blend; you will get the following splash screen at first.

Blend1.gif

This screen loads all necessarily program files to memory for building Silverlight Application. After a couple of seconds, you will get the following screen.

Blend2.gif

In this screenshot, look at the items in the red circle.

Projects

This tab lets us open any recently used projects from a list, create a new project or open any existing projects.

Help

This tab lets us open the User Guide by visiting online tutorials or web communities.

Samples

This tab provides sample projects developed by Expression Blend development team from Microsoft or somebody else.

Now, let's click on the "New Project" option; you will get the following screen.

Blend3.gif

As marked in screenshot.

Project Types

In the above screenshot, look at the red rectangle. There are two project type options available; Silverlight and WPF. Here are some major differences between them.

Silverlight and WPF (Windows Presentation Foundation) are two different products from Microsoft, but they have lots of overlap. WPF is a Microsoft technology meant for developing enhanced graphics applications for desktop platform. In addition, WPF applications can be hosted on web browsers which offer rich graphics features for web applications, but it is limited to Operating Systems. Web Browser Applications (WBA), developed on WPF technology uses XAML (read as Zameel) to host user interface for browser applications. XAML stands for eXtended Application Markup Language which is a new declarative programming model from Microsoft. XAML files are hosted as discrete files in the Web server, but are downloaded to the browsers and converted to user interface by the .NET runtime in the client browsers. WPF runs on .NET runtime and developers can take advantage of the rich .NET Framework and WPF libraries to build really cool windows applications. WPF supports 3-D graphics, complex animations, hardware acceleration etc.

Creating nice tab feature in Silverlight

0 comments
This article uses cool animation in silverlight to create a tab bar like look. Create two custom button controls in the sample for the two tabs you see in the picture above. 

SelectedValue and SelectedValuePath in Silverlight 4

0 comments
In this article we will see about SelectedValue and SelectedValuePath while Binding. This feature is added in Silverlight 4.

Busy Indicator Control In Silverlight 3

0 comments
Busy Indicator is a control that is added in Silverlight 3 Toolkit November 2009 Release. In this article we will see how to use it.

Tweak Theme in Silverlight 3

0 comments
In this article we will see how we can reduce Silverlight application's xap size. As you know themes are provided by Silverlight Toolkit. But if you include multiple themes your application would be too big.C:\Program Files\Microsoft SDKs\Silverlight\v3.0\Toolkit\Jul09\Themes
Now suppose you need a theme style from Shiny Red a Shiny Blue for two different Buttons.

Open the related xaml in Visual Studio IDE.

Search for Button and you will be navigated to Button Style.

Copy the Button Style to your App.xaml.

Don't forget to copy the namespaces too.

xmlns
:vsm="clr-namespace:System.Windows;assembly=System.Windows"
Give a x:Key value to the Style in our case BlueStyle and RedStyle.

Copy the StaticResource constants and change the key appropriately. (You have change it carefully where you are using it.)

Here is the Xaml for the blue theme style buttons.

<
Application.Resources>        <!--Shiny Blue Color Constants-->        <Color x:Key="NormalBrushGradientBlue1">#FFBAE4FF</Color>        <Color x:Key="NormalBrushGradientBlue2">#FF398FDF</Color>        <Color x:Key="NormalBrushGradientBlue3">#FF006DD4</Color>        <Color x:Key="NormalBrushGradientBlue4">#FF0A3E69</Color>

Control focus and Default button in ASP.net

0 comments
Setting focus to a control is simple known one for most of us. A focus means the control is going to receive the input from the user. If you type something, the typed stuff goes into the control which currently on focus.