Community Blogs

Browse by Tags

Related Posts

  • Ensure Proper Closure & Disposal Of A DataReader

    Most of the time, we create programs that use DataReaders (weather they are on ASP.NET or Winforms). They're fast, easy to use but sometimes, they fill out our connections pool and withour proper care, they can cause problems to our users. There are some blog posts around this issue and many questions in the forums, so I'll try to make it as simple as possible so you'll find it attractive to use, because in the end, there is no magic here, just a nice tip. The solution: Use the DataReader within the scope of a using clause. How? Take a look at this sample: Regular Programming In general, programmers tend to use DataReaders like this: SqlConnection connection = new SqlConnection ( "connection string" ); SqlCommand cmd =...


  • Visualizing data (plotting functions of two independent variables)

    First off this post doesn’t contain that much textual substance, for more read the previous post I made, also the graphing library I am using is F# for Visualization . While it is possible to plot these functions by hand in the very, very (emphasis on very, e.g. a plane) simple cases anything other than that almost certainly requires some form of professional mathematical package, or in this case a plotting library. I have only used F# for Visualization (now uses WPF not DirectX) on my home machine which is (briefly): 2.4GHz Core 2 Duo, 4GB RAM, NVidia 7900 GS 256MB.   I found the performance of the 3D plotting really quite good. Note: there is no point to the below graph, I just wanted to see if using somewhat over zealous input ranges...
    Posted Jun 22 2008, 07:37 AM by ASP.NET Weblogs
    Filed under: , ,


  • SQl server reporting services versions, Visual Studio versions and asp.net versions. Gotcha.

    Reports are not my favorite part of an application. But to may an end user the reports are the most valuable parts of the system. They are a well presented and clear overview of hours, even days, of work behind the keyboard. So taking good care of the reports is important. A part of my personal dislike is caused by the tools. Crystal Reports was a sheer nightmare. MS Sql Reporting services (RS) is far better but is still a little pale compared to the rest of my toolset. Visual Studio 2008 looks like the ultimate environment. In case you are working on an .net 2.0 project that's just a project setting. Net 1.x is a different story, I have a virtual machine to handle that. Alas for reporting services it's a different game. At the moment...


  • Visualising data

    I tend to use Octave for maths based stuff, including visualizing the plotting of functions and so on. Anyway to my point, I have found that GNU Plot as great a tool it is to be somewhat linear in its way of thinking when rendering the (2D) graph - as an example if you devise a function with inputs that should produce (if by hand) a very nice curved plot then the chances are that GNU Plot will eradicate that expected curve and leave you with something very jagged. Note: I'm not sure if there is an option somewhere in either Octave or GNU Plot to basically say "hey! throw the smooth curves in!!" so I apologise beforehand if such an option exists. This has really started to annoy me this last week, so I started to think of alternatives...
    Posted Jun 03 2008, 06:49 PM by ASP.NET Weblogs
    Filed under: , ,


  • nHibernate many-to-many collections. (OR mapping is not one table one class)

    Mapping collections in nHibernate is at first sight quite confusing. There are loads and loads of possibilities. The official documentation is somewhat academic. This is good because, once you have got it, it is a clear reference. But it is bad because the style does not always help to get it; especially when the docs start saying The previous sections are pretty confusing and try to clarify things with some short examples. Thank goodness there are more resources. Especially parts of an article nHibernate made simple by David Veeneman gave me some "aha-erlebnisse". Here I will recap parts of what I have learned and used for one of my own projects. I have picked this part as well because it does a great job in showing that OR mapping...


  • Nhibernate and medium trust

    Being sick of all the hassles it took to keep my own server up and running I've moved it to a public hoster . Which does offer asp.net hosting but like many others code is only given medium trust . My site was using nHibernate. That does have serious problems under this trust level. I've been investigating and experimenting to get it up and running. Alas without success. Nevertheless a summary of what I've done. As most web references on this subject are either vague or not specific enough this can help get a better overview. Or perhaps somebody can point me to something I have overlooked. Medium trust restricts the permissions given to your code. When googling a lot of the links mention the error message That assembly does not allow...


  • إصدارة أولية من ASP.NET Dynamic Data أصبحت متوفرة

    قبل بضعة أشهر قمنا بإصدار امتدادات العرض لـ ASP.Net 3.5 التي احتوت مجموعة من المزايا الجديدة التي سوف يتم إصداراها فيما بعد خلال هذه السنة (تطويرات على ASP.NET AJAX ،ASP.NET MVC،دعم لـASP.NET SilverLight، و ASP.NET Dynamic Data ) الـ دعم ASP.NET Dynamic Data خلال الإصدارة الأولية تلكقد  قدمت نظرة أولية إلى ميزات رائعة وجديدة تسمح لك ببناء المواقع المعتمدة على البيانات Data driven  بسرعة، والتي تعمل باستخدام كائنات LINQ to SQL  و LINQ to Entities. إن ASP.NET Dynamic Data support يسمح بشكل اتوماتيكي بإنشاء صفحات كاملة المهام لإدخال البيانات وإصدارا التقارير بالاعتماد على معلوماتك الابتدائية -meta data- عن مقاربة الكائنات إلى العلاقات ORM أي  -Object Relation mapping-. بالإضافة إلى دعم إنشاء الصفحات بشكل ديناميكي ، فإنها تسمح...


  • ASP.NET Dynamic Data Preview Available

    A few months ago we released an ASP.NET 3.5 Extensions Preview that contained a bunch of new features that will be shipping later this year (including ASP.NET AJAX Improvements, ASP.NET MVC, ASP.NET Silverlight Support, and ASP.NET Dynamic Data). The ASP.NET Dynamic Data support within that preview provided a first look at a cool new feature that enables you to quickly build data driven web-sites that work against a LINQ to SQL or LINQ to Entities object model.  ASP.NET Dynamic Data allows you to automatically render fully functional data entry and reporting pages that are dynamically constructed from your ORM data model meta-data.  In addition to supporting a dynamic rendering mode, it also allows you to optionally override and customize...


  • New ASP.NET Dynamic Data Support

    The ASP.NET 3.5 Extensions CTP we shipped this past weekend contains a bunch of great new features. One of the cool new features is something we call "ASP.NET Dynamic Data Support".  In a nutshell this enables you to really quickly build data driven web-sites that work against a LINQ to SQL (and in the future LINQ to Entities) object model - and optionally allows you to-do this without having to build any pages manually. The best way to see this in action is to watch David Ebbo's awesome 17 minute screen-cast : You can also follow the steps below to easily get started and use the dynamic data support: Step 1: Create a ASP.NET Dynamic Data Site: Once you have the ASP.NET 3.5 Extensions CTP release installed, you can use VS 2008...


  • Convert HTML tables to a DataSet

    I've just had a requirement to extract some data from a web page and manipulate it before sending it off elsewhere. The data in the web page was all included inside <table> tags, so I wrote a few Regular Expressions to extract this data and place it in a DataSet object. Read More... If you have any comments on this method, or have any other methods you would recommend, please let me know....( read more ) Read More...


Page 1 of 5 (44 items) 1 2 3 4 5 Next >