Friday, March 11, 2011

Cool Tips to speed up in Visual Studio 2010-Part1

0 comments
Today many programmer using VS2010 to development purpose for .net development, I would like to discuss here some cool feathers which i know in use it my daily life for development.

Snippets

Snippets is nothing but re-use your source code reduce effort of rewriting every time same code , In vs2010 Shortcut for snippets is CTR + K, X  .

It will display available snippets in VS2010 as follow  , You can move forward with TAB & backward with SHIFT-TAB , & hist enter when you copy  that portion of code to your IDE , this is valid both design side as well as code side.

[caption id="attachment_27" align="alignleft" width="300" caption="snippets"]snippets[/caption]

You can add your own code snippets & edit , delete also from Tools> Code Snippets Manager as per shown below

[caption id="attachment_29" align="alignright" width="300" caption="Code snippets Manager"]Code snippets Manager[/caption]

 

 

 

 

There are also some cool shortcuts to insert particular snippets.

Like to insert property  simply write prop & hit TAB 2 times .

write propfull to insert full property with private member.



Search others snippets on web make your life easier in world of development

We will see some other tips at next...

Enjoy Coding!!

What is silverlight??

0 comments

All of you are get in touch with many websites everyday & you came one type of situation when website ask to install plug in to render website.for Silverlight enabled website same thing will happened.



Silverlight is a new cross-browser, cross-platform implementation of the .NET Framework for building and delivering the next generation of media experiences and Rich Interactive Applications(RIA) for the web.



Generally website page is combination of HTML, CSS , Javascript .

But we can make silverlight application using Xaml.

To read about Silverlight go to http://www.silverlight.net/


To read about  New feathers of Silverlight 4 go to Here


To Play game which are built in Silverlight Visit http://silverlightgames.org/


Very Cool Technology




Introduction to Directshow

2 comments
Directshow is framework provided by Microsoft to develop media application on Window Operating system.

Generally it is built-in C , C++ so we can make wrapper over it & using in higher level language like C# to take advantage of that.

You can also find already built-in wrapper at http://directshownet.sourceforge.net/ to develop media application using C#.

So Enjoy !!

Friday, February 25, 2011

asp.net Validation on DropDownList box

1 comments
Many beginners found problem at the time of to do validation on dropdownlist control.

Let say if in dropdown list items first item is for indicating "select value" follow by others list items. Many developer validate at coding side that if user has selected any items except first value("Select value") but it will do post back & check on server side & resulting take more time.

You can do client validation following way using Rangevalidator

<asp:DropDownList runat="server" ID="ddl1" >
       
<asp:ListItem Value="0" Text="Select value" />
       
<asp:ListItem Value="1" Text="text1" />
       
<asp:ListItem Value="2" Text="text2" />
   
</asp:DropDownList>
   
<asp:RangeValidator ErrorMessage="Please select value" ControlToValidate="ddl1" runat="server"
       
MinimumValue="1" MaximumValue="100000000" Type=Integer />
   
<asp:Button Text="text" runat="server"  /> 

Here you have to use Range validator with dropdown list & set mininmum value greater then 0 & maximum value to set any max value , aslo provide type value of min & max and that is integer

Hello to beginners!!!

0 comments
Hello to everyone,
I am software engineer and working on microsoft technology it good industry from last 2 years,
I am starting this blog to share my knowledge that can be helpful to beginner.
So I'll try my level best to provide you good stuff here

Regards
Arun