in

ASPXWizard.net

.net and Ajax Community
All Tags » C# (RSS)

Browse by Tags

  • ASP.NET MVC handle exceptions

    /* You can also find more posts on my technical blog , and follow me at twitter @minalabib */ ASP.NET MVC has a cool and neat way to catch and handle exceptions, I will show here a quick review for handling exceptions in MVC framework and I will present small addition I added too. The main idea here...
    Posted to Mina Labib (Weblog) by minalabib on 02-24-2010
  • Extending Cache to Get Or Insert data

    In current project I was planning to build caching functionality to keep some shared and not frequently changed data, I figured out that I will be using a lot of Cache[string Key], Cache.Get(), and/or Cache.Insert() methods. and that means I have to check if the data is in the cache already and if not...
    Posted to Mina Labib (Weblog) by minalabib on 12-15-2009
  • Adding web reference in class library – ASP.NET MVC

      It is change in .NET 3.5 using ASP.NET MVC you can’t find ‘Add Web Reference’ option in right click context menu inside a class library (if you do not have web references in your class library). But I found how to add .NET 2.0 based web reference through adding Service Reference, I quoted the...
    Posted to Mina Labib (Weblog) by minalabib on 11-06-2009
  • Generic editable GridView - ASP.NET MVC

    The goal is to build editable data grid in a project uses ASP.NET MVC 1.0, it is know that ASP.NET MVC does not use controls with ( runat=”server” ) attribute, which means I can’t use regular DataGrid or GridView in my code. and HTMLHelper class in ASP.NET MVC does provide such HTML component. So, there...
    Posted to Mina Labib (Weblog) by minalabib on 11-06-2009
  • Run time (Dynamic) attributes in C#

    In the current project I was concerned to build generic user control, accept generic collection and paint collection elements details in HTML table and allow editing functionality for specific columns. The challenge is to detect the editable properties in the collection elements in the run time without...
    Posted to Mina Labib (Weblog) by minalabib on 11-06-2009
  • Webclient downloading content/files from an Https (SSL)

    i was using the webclient object to download files from a website and my application worked fine. my client decided to add an SSL certeficate to the website and has required me to change my code to request the file through https instead of http all i had to do was change the URL to have https:// instead...
    Posted to .net Wand (Weblog) by amir.magdy on 10-05-2009
  • Yield in c#

    i've been trying to explain the keyword yield to a friend of mine for more than an hour and he did not get it. but finally when i typed in this example he finally did 1: class enu :IEnumerable 2: { 3: public IEnumerator GetEnumerator() 4: { 5: yield return 1; 6: yield return 2; 7: yield return 3;...
    Posted to .net Wand (Weblog) by amir.magdy on 02-25-2008
  • Delegates to LINQ [passing logic as a parameter] (part I)

    it's normal to pass data to a function just thow in a parameter of the type of data you want to pass and ur set public int add ( int i, int u ){ return i+u; } now think in a different way, u now want to build a set of operations that the user can choose from now what you need is to build a function...
    Posted to .net Wand (Weblog) by amir.magdy on 02-08-2008
  • Have u ever needed to extend a string? [Extension Methods]

    well it's not inheritable by default so you can not extend it. that used to be the case before c# 3.0 now you can specify all the functionality that you need in an Extension Method. problem lies in that the extension method needs to access the instance of the object you are extending well, it goes...
    Posted to .net Wand (Weblog) by amir.magdy on 12-27-2007
  • Object and Collection Initializers

    well also one of the nicest features in c# 3.0 is the object initializers well we used to do this 1: Employee emp = new Employee(); 2: emp.FirstName= "Amir" ; 3: emp.LastName= "Magdy" ; 4: emp.Title = "Mr." ; i actually hated writing this previous snippet now in c# 3.0 we...
    Posted to .net Wand (Weblog) by amir.magdy on 12-26-2007
Page 1 of 2 (11 items) 1 2 Next >
ASPXWizard.net some rights reserved 2005-2007
Powered by Community Server (Non-Commercial Edition), by Telligent Systems