C# 4.0 introduces a new keyword called 'Dynamic'. It can consume any object anything. Let's see some examples for that.dynamic intExample = 1;Response.Write(intExample);dynamic floatExample = 2.5;Response.Write(floatExample);dynamic stringExample = "DotNetJaps";Response.Write(stringExample); It will...
Monday, November 30, 2009
Sunday, November 29, 2009
Simple Insert,Update,View and Delete with LINQ-To-SQL
Today one of my friend asked me about simple insert,update and delete example with LINQ-To-SQL but at that time i was not having any simple example which will show the power of LINQ-To-SQL Example. So i have decided to create one simple example with LINQ-To-SQL and also decide to blog about it. Let's...
Friday, November 20, 2009
ASP.NET 4.0 New Feature- RepeatLayout property for CheckBoxList and RadioButtonList Controls.
ASP.NET 4.0 having many many new features. One of them is the RepeatLayout property for the CheckBoxList and RadioButtonList controls. The property is useful when we need decide how this controls will be render as html when its load in browser . Code Snippet<div> <asp:CheckBoxList ID="checkboxList"...
Saturday, November 14, 2009
C# 4.0 New feature - Named Parameter
Posted by Jalpesh Vadgama |
November 14, 2009 |
.NET4.0, ADO.NET, ASP.NET, C#-4.0, C#.NET |
No comments
C# 4.0 has one new cool features which is the named parameter. Suppose you have so many parameter in function and when you call them its hard to remember the sequence of the code now with the named parameter you can have name of the parameter with value like Parameter:value and one another cool feature...
Visual Studio 2010- New Features Selected Text.
Posted by Jalpesh Vadgama |
November 14, 2009 |
.NET4.0, ASP.NET, ASP.NET-MVC, C#-4.0, C#.NET, VB.NET, VisualStudio |
No comments
I am loving more and more visual studio 2010 for some of the cool things. One of the new feature i have found in visual studio 2010 is the selected text. In the earlier version of visual studio 2010 when we select tax then its not maintaining the highlighted code but with visual studio 2010 it is maintain...
Tuesday, November 10, 2009
Yield statement in C#
Yield statement is one of most interesting statement in the C# 2.0. I have heard about lot of yield statement but today i have learned about yield statement. Yield statement can be used to return multiple object from a method while retaining its state. You can get item in sequence with help of yield.Let...
Sunday, November 8, 2009
C# 4.0 - Optional Parameters
With .net framework 4.0 and C# 4.0 also introduces a new feature called optional parameters it was there in VB since visual basic 6.0. But it is now available in the C# with 4.0 version. Optional parameter will be become very handy when you don't want to pass some parameter and just you need the default...
Saturday, November 7, 2009
New publish setting dialog in visual studio 2010 beta 2.
Those who are working with asp.net will also know about the publishing site to directly with publish dialog. This was introduced with visual studio 2005 and till now it is one of the best way to publish your asp.net site with only required files. Visual studio 2010 is not a exception but the publish...
Visual Studio 2010 New Features:Zooming and highlighting tags.
As i am using visual studio 2010 more and more i loving it more. While working with new Microsoft New Visual Studio 2010 Express edition I have came across about two more cool features zooming feature and another the highlighting start and end tag of particular selected tag. Let see one by one. First...
page_load event firing twice in firefox with asp.net page or user control.
Technorati Tags: ASP.NET,C#.NET,ViewState We are having a very large project in asp.net 3.5. During code review of project we have found that page_load event of one control is firing twice in the firefox browser. After doing some debugging i have found that it's due to one of the link button which...
Friday, November 6, 2009
File upload control is not working with Update panel
We all are using update panel for the Ajax implementation in every site. Nowadays Ajax is almost there in each and every site. Update panel is working fine with the all other controls but when we use the file upload control then its not working fine. I have searched from lots for this and i have found...