Code for resizing your images before saving them in C#

19. August 2014

Code for resizing your images before saving them in C#

Here is the link to that page http://www.codeproject.com/Tips/552141/Csharp-Image-resize-convert-and-save

C# , ,

Login.DestinationPageUrl does not work for me

4. July 2013

Login.DestinationPageUrl does not work for me

 Whenever i try to login , this control redirects to the page requested on the first place after logging in even though i have mentioned which page to open after user is logged in . Following is the solution to this :

protected void Login1_LoggedIn(object sender, EventArgs e) 

{ 

  Response.Redirect(ResolveClientUrl(Login1.DestinationPageUrl));

}

ASP.NET, C# ,

How can I sort List<T> based on properties of T ?

28. February 2013

A very good answer to this problem is provided on this blog post .

http://stackoverflow.com/questions/605189/how-can-i-sort-listt-based-on-properties-of-t

 

_list.Sort((a,b)=> String.Compare(a.Name,b.Name));

 

_list.Sort((a,b)=> a.SomethingInteger.CompareTo(b.SomethingInteger));

C# ,

StackOverflowException thrown in C#

8. February 2013

I was getting a stackOverFlowException in my program , i found out that i have called my function in its own definition body , actually i had a similar name function in other class and i forgot to call that function with its own instance and hence this exception was thrown . 

C#

How to implement IValueConverter Interface and using it in xaml

7. February 2013

Nice msdn article for this topic :- http://msdn.microsoft.com/en-us/library/system.windows.data.ivalueconverter(v=vs.100).aspx

C#