Friday, July 2, 2010

Well, I am an MVP now!! and I am proud of it.

Microsoft has given me biggest surprise of my life. Microsoft has awarded me as Microsoft Most Valuable Professional Award. This is one of the proudest movement of my life. Today i got an email and i could not believe that i have done that.

Mvp

Dear Jalpesh Vadgama,
Congratulations! We are pleased to present you with the 2010 Microsoft® MVP Award! This award is given to exceptional technical community leaders who actively share their high quality, real world expertise with others. We appreciate your outstanding contributions in Visual C# technical communities during the past year.
The Microsoft MVP Award provides us the unique opportunity to celebrate and honor your significant contributions and say "Thank you for your technical leadership."

It’s all because of the my readers for this blog. Thank you very much once again. Without you all this was not going to happen.

From following link you can find list of all newly announced for 2010.

http://blogs.technet.com/b/southasiamvp/archive/2010/07/01/new-mvps-announced-july-2010.aspx

On this occasion once again i would like to thank Microsoft For recognizing my effort toward community and i would also like to thank each and every people,my organization and community supported me and guide me and encourage me to achieve this.

Technorati Tags: ,,,
Shout it
Share:
Wednesday, June 23, 2010

Range Operator in Linq.

Linq is almost providing all the functionalities and i have found one another great operator called range operator which will return a sequence of integer number from start point to number of count. Here is the signature of range operator in Linq.
public static IEnumerable<int> Range(int start, int count)
Here the Start means the starting integer of the sequence and count means the number of sequence you want from starting integer. Let’s take a simple example for that where will print 5 to 9 sequence with the help of range operator. Here is the code for that.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace ConsoleApplication1
{
class Program
{
    static void Main(string[] args)
    {
        var RangeResult = Enumerable.Range(5, 5);
        Console.WriteLine("Range Result");
        foreach (int num in RangeResult)
        {
            Console.WriteLine(num);
        }
    }

}
}
And here is the output for that as expected.

LinqOperators
Hope this will help you..

Technorati Tags: ,,
Shout it
kick it on DotNetKicks.com
Share:
Tuesday, June 22, 2010

Persisting row selection in data bound control like GridView,ListView

Some times we need show large amount of data like hundred of rows but its very difficult to show that in a single web page so we are using the paging mechanism of inbuilt data bound control of .NET Framework like GridView and ListView. But in paging of data bound control its very hard to remember the row selection like suppose you have selected a row in page 1 and then you goto the page2 and return back to page1 the selected row will not be there. So to do that thing you have right custom coding for that. In Microsoft .NET Framework 4.0 there is one property called EnablePersistedSelection which will automatically do that task. It will first introduced on dynamic data support in .NET Framework 3.5 sp1 but its bye default supported by default in .NET Framework 4.0 it self. In earlier version of .net framework the selection was based on row index now its will be based data key for data bound controls. Here is the code for that.

<asp:GridView id="PersitantGridView" runat="server" EnablePersistedSelection="true">
</asp:GridView>
Its based on datakey so now you go to page1 and selected third row and then go to the page 2 and selected second row and now you again go to first page and you will have third row selected. That’s it.. Hope this will help you..

Technorati Tags: ,,
Shout it
kick it on DotNetKicks.com
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews