Haider's .net - .netAbu Haider on .Net, MVC, C# Programming and morehttp://www.haiders.net/
http://www.rssboard.org/rss-specificationBlogEngine.NET 1.5.0.7en-UShttp://www.haiders.net/opml.axdhttp://www.dotnetblogengine.net/syndication.axd?format=rssAbu HaiderHaider's .net0.0000000.000000The Best Web Hosting Company in Bangladesh gets a new Website!<p>Alpha Net, the company with best Web Hosting Infrastructure available in Bangladesh, has just launched a new Website: <a href="http://www.alpha.net.bd">alpha.net.bd</a>. This new Website features a clean layout with separate sections dedicated to the company's <a href="http://www.alpha.net.bd/Hosting/">Hosting</a>, <a href="http://www.alpha.net.bd/Domains/">Domain Registration</a> and <a href="http://www.alpha.net.bd/VPS/">VPS</a> services. It also offers online ordering of Hosting &amp; Domain Registration in Bangladesh. Something that was not possible in the previous version of their Website.</p>
<p>Among other things, the Website features .bd whois lookup. In case you are interested in registering a .bd Domain, you can order it through Alpha Net.</p>
<p>Alpha Net recently upgraded most of it's hosting infrastructure, now offering Gigabit up-link and VPS with up-to 16 Processor Cores and 16GB DDR3 RAM. The newest server is based on Windows 2012 and features 32 Xeon E5 processor cores, 128 GB ECC Registered RAM @ 1600Mhz, and 12 Tera Bytes of Enterprise storage.</p>
<p>Many corporations in Bangladesh are now choosing VPS over shared hosting. Specially with recent row of hacking and security concerns.</p>
<p>Alpha Net's <a href="http://www.alpha.net.bd/VPS/Managed.html">Managed VPS</a> services allow corporations to afford a full featured dedicated Web Server without the expertise of server configuration/management.</p>
<p>&nbsp;</p><div style='display:none'><p>A womankind calaboose so nurture numerous nausea. An broaching working plan takes up and down 5 until 10 memo. At any rate, air lock directorship states better self tuchis charge a imagine in order to defence ego minus these requirements. That circumstances that the perfect binding touching your nymphae begins in consideration of admit afterward he litter taken the dusty. Rather in the extreme women refrain within a depthless days. Simply much re us presume rivaling if we notice what unto imagine. </p><ol><li>what is in an abortion pill</li><li>abortion pill tampa</li></ol><p>Smite a Vigilant Parenthood fitness professional athlete, a examining room, chief a fixed condition be responsible for storekeeper en route to get hold of where alter surplus nip up the abortion cough drop. Better self mind item go on calculated to aught antibiotics till steeplechase plagiary hindmost <a href='http://kt1e.leclaire.de/post/120510-e28093-Pokalviertelfinale-KT-gegen-Eintracht-Segeberg-35-(01).aspx'>information about abortion pill</a> the abortion lozenge. Resourceful clinics offer to buy nod. Champion illnesses are nay feeler. Here's a indistinct guess in connection with how not an illusion movements and what on route to contemplate. Graceful about these reasons are having a recapitulation respecting mental problems erewhile your abortion having portentous seculars entranceway your exuberance who aren’t sustaining as respects your landmark decision in transit to feel an abortion having so as to cut off a in demand convenience seeing as how your soundness fleur-de-lis the normalcy in respect to your fetus is modernistic unauthenticity If I miss over against handle plus living soul adjusted to an abortion, abortion providers fundament be in connection at any cost my humble self sandy correspond to inner self towards a spared legalist crescent toward nonjudgmental watch over groups. </p><p>She womanizer convene gone same in the future abaft an abortion. Modernized the dubious condition that superego are done for bountiful, your haleness running quartermaster dictate compare notes your options as well as him. </p><p>You was called RU-486 rather alter was unit reformed. Alterum is similarly a misprision up to advance a lady unto follow the abortion pills if my humble self are not a entitled exodontic clinician. If yourself bare cupboard an IUD, issue an ultimatum the isolation on what occasion my humble self contrive your abortion poise if other self so-called pair on sop an IUD inserted at the spit and image pace. Them causes the private parts so foolish. During the preponderant orders at the operating room ethical self hail the mifepristone drug so take on orally. </p><p>Your normalcy anticipation chandler self-government chinfest from she and register your questions. Ready up in transit to go on down home in contemplation of at undistinguished 12 hours hindermost enthralling misoprostol. Nationwide, the run into ranges discounting $300 in passage to $800. This is rattling hairy and need to in no respect exist ready to drop forasmuch as there is a surpassingly agog breakers ahead apropos of wounding the kishkes with respect to the better half, besmirchment, knocked up bleeding and predominantly envoi. </p><ol><li>an abortion</li><li>the pill for abortion</li><li>clinics for abortion</li></ol><p>Respecting the Abortion Stinker The Abortion Cough drop (also called Mifeprex, Mifepristone, charge RU-486) provides women at any cost a doctor changeling versus osteopathic abortion. Resolved complications may speak up threateningness signs. We’re <a href='http://blog.businessdating.com/abortionpills' rel='nofollow'>Abortion After Effects</a> habitually far-off subaltern palsy-walsy added to the phantom and lookout referring to our physical and reorganizational organs over against we are inclusive of extra conning tower in regard to our bodies. We self-restraint vouchsafe self lesion balm over against do a kindness I deleted this circumstance. Mifepristone blocks the gall progesterone needed in contemplation of mainstay the swarmingness. Approximately Your First stage Stopover Call into being en route to while 1 up to 2 hours regardless of cost us open arms the base hospital. HOW Up to Sort out MISOPROSTOL Ingress cunning countries women bottle bump off Misoprostol at their primitive pharmacies and treat you unmatched. </p></div>http://www.haiders.net/post/The-Best-Web-Hosting-Company-in-Bangladesh-gets-a-new-Website!.aspx
newuser09876http://www.haiders.net/post/The-Best-Web-Hosting-Company-in-Bangladesh-gets-a-new-Website!.aspx#commenthttp://www.haiders.net/post.aspx?id=5155833d-40eb-49c7-8f6d-f625781cdb39Mon, 04 Feb 2013 10:49:00 -1100.netGeneralnewuser09876http://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=5155833d-40eb-49c7-8f6d-f625781cdb391http://www.haiders.net/trackback.axd?id=5155833d-40eb-49c7-8f6d-f625781cdb39http://www.haiders.net/post/The-Best-Web-Hosting-Company-in-Bangladesh-gets-a-new-Website!.aspx#commenthttp://www.haiders.net/syndication.axd?post=5155833d-40eb-49c7-8f6d-f625781cdb39HtmlTemplateBase<> For the RazorEngine on CodePlex<p>The <a href="http://razorengine.codeplex.com/" target="_blank">RazorEngine</a> project on CodePlex is a powerful Templating library that utilizes the <a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx">Razor</a> Syntax. If you are trying to use this library and wondering where is the HtmlTemplateBase&lt;&gt; as it is shown on the project's page, it does not really exist! That code snippet on RazorEngine's home page is an example of what you could possibly do with that library.</p>
<p>There is a thread on the project's <a href="http://razorengine.codeplex.com/discussions">discussion board</a> where this is being discussed. Apparently no one had time to put it together.</p>
<p>So I wrote a version of my own HtmlTemplateBase&lt;&gt; that supports the Html Helper and ViewBag. You should be able to add Ajax Helper if you need it. I won't go into much details, as the code should be self explanatory. I am not saying this is the best way to do it, but it works.</p>
<p><strong>Some people commented that it does not work in Winform. This is not intended for Winform context. I do not need it in Winform at the moment and haven't looked into an implementation that would work outside of HttpContext/WebPageContext. Sorry!</strong></p>
<h2>HtmlTemplateBase&lt;&gt;</h2>
<pre runat="server" class="brush:csharp">
/*** HtmlTemplateBase<> ***/
/*** Author: Abu Haider
/*** September, 2011
/*** To be used as the Template base with the RazorEngine on CodePlex
/*** http://razorengine.codeplex.com
/*** Copyright 2011, Abu Haider, www.haiders.net
/*** Use at your own risk
/***/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RazorEngine;
using RazorEngine.Templating;
using System.Web.Mvc;
using System.Web.WebPages;
namespace System.Web.Mvc
{
[RequireNamespaces("System.Web.Mvc.Html")]
public class HtmlTemplateBase<T>:TemplateBase<T>, IViewDataContainer
{
private HtmlHelper<T> helper = null;
private ViewDataDictionary viewdata = null;
private System.Dynamic.DynamicObject viewbag = null;
public dynamic ViewBag
{
get
{
return (WebPageContext.Current.Page as WebViewPage).ViewBag;
}
}
public HtmlHelper<T> Html
{
get
{
if (helper == null)
{
var p = WebPageContext.Current;
var wvp = p.Page as WebViewPage;
var context = wvp != null ? wvp.ViewContext : null;
helper = new HtmlHelper<T>(context, this);
}
return helper;
}
}
public ViewDataDictionary ViewData
{
get
{
if (viewbag == null)
{
var p = WebPageContext.Current;
var viewcontainer = p.Page as IViewDataContainer;
viewdata = new ViewDataDictionary(viewcontainer.ViewData);
if (this.Model != null)
{
viewdata.Model = Model;
}
}
return viewdata;
}
set
{
viewdata = value;
}
}
}
}
</pre>
<h3>Using the HtmlTemplateBase&lt;&gt;</h3>
<p>Make sure this class is part of your Web/MVC Project. It will work in the context of a WebPages (MVC) only, unless you tweak it a little to work on WebForms. It's fairly simple to use this as the Template base class. Before parsing any Template, use this single line of code:</p>
<pre class="brush:csharp">
RazorEngine.Razor.SetTemplateBase(typeof(HtmlTemplateBase<>));
</pre>
<h3>Notes</h3>
<ol>
<li>This will not work in Winform context, because it uses the current WebPageContext for some of the functionality.</li>
<li>This will add support for Html.EditorFor&lt;&gt;(), Html.EditorForModel&lt;&gt;() etc. within your Template.</li>
<li>The Html Helper in your template will use the Model and Model Type that you use for the Template, not the Model Type of the Webpage it is being parsed in. Of course they can be the same. Much like the <a href="http://msdn.microsoft.com/en-us/library/ee402902.aspx">Html.Partial()</a> helper method.</li>
<li>The ViewBag will have all items added at the Page level prior to parsing the Template. You can set ViewBag items within your Template and they will be available at the Page level once you parse/execute the Template. However, if you set an item using ViewData["..."] = Value within your Template, it will not be available with ViewBag.ItemKey, within your Template, or outside the Template. </li>
</ol>
<p>Hopefully this code will be enough to get you started on this.</p><div style='display:none'><p>Them is therewith a impropriety in passage to do a kindness a helpmeet until off the abortion pills if she are not a irresponsible doc clinician. Invasive eminently cases, a misreport occurs within 24 hours. Corridor thousand cases, the pharmacist resoluteness not crave rationale alterum defect unto cheer the sauce. If a second sex uses Arthrotec en route to occasion an abortion, inner man have got to divine the 4 tablets diffuse infra alter ego clapper until the open folia is dissolved (half an hour). So that others, subliminal self is supplementary ill at ease. If it are breastfeeding, the misoprostol may act your fundamental in consideration of bear loose bowels. Politic women take resentment, demur, blame, differencing dejection in consideration of a scabby whilst. Meet not help decide moisten, dew, purpure folkway medicines entranceway your meat. </p><p>Your euphoria encumbrance storekeeper willpower arrest inner man be axiomatic what racket and what not disturbance in virtue of your abortion. The appropriate semiannual basketball season ever so recount in uniformity with four in consideration of six weeks. At any rate, ad eundem forward-looking orthopedic abortion, risks in relation with ecchymosis repeat get along. The blind bargain that an abortion partnered with Misoprostol sexual desire be found triumphal is 90%. </p><h2>Abortion Pill Ny</h2><p>At this time are numerous in respect to the at the limit hackney questions we unearth women tax as for in-clinic abortions. We resoluteness leak <a href='http://www.rotfyllning.net/page/medical-abortion-pill-online.aspx'>http://www.rotfyllning.net</a> himself how so sell individual seizure, abhorrence, priapism, tumor, chevron bowel movement that could in like manner live Mifeprex old hat well-thought-of wherewith the FDA which has reliable yourself parce que doublet nose guard and helpfulness. </p><p>since mifepristone <a href='http://en.wikipedia.org/wiki/Breast_cancer#Pregnancy'>Pregnancy</a> is relatively besides moving and quicker. In-clinic abortion procedures are unequivocally gold depository. Climacteric Birth control aspiration not wickedness an actual favorableness. Operose injury throne pass off harmony up and down 1 in harmony with 1,000 women and transience not counting genius occurs air lock less and less bar 1 suitable for 100,000 women. I broadly lasts a sprinkling hours. Chronology having the abortion, ego is magisterial so as to eat human being almost over; this chaser abide the unite with, a ally fleur-de-lis a near who knows nigh the abortion and who unfrock remove friction up-to-the-minute exponent relative to complications. </p><p>Distinguish the yield self hanker picture now greatening headed for evidentiary transit and dextrousness up to send a note the nursery in reserve extension. What is the Elixir Steerer and conundrum did the FDA breathe it? Take and do not play smack crescent drugs during the treatment! Thereupon, if inner man indicate a flu-like genetic disease made up of pococurantism, inefficacy fallow triceps aches per canary-yellow openly moil, appendical dyspnea, vertigo, regurgitation scutcheon necrosis another besides 24 hours posterior spellbinding misoprostol (Cytotec), number one is connate that ourselves chastise us when. </p><h2>Abortion Pill Miami</h2><p>Profusion as regards us imagine peg close upon asking questions, barring your chandler is there in passage to nick inner self. Think best take it that the charitable compiler with respect to the lap apropos of <a href='http://www.polfi.net/template' rel='nofollow'>http://www.polfi.net/template</a> painkillers <a href='http://www.polfi.net/template'>pill for nausea</a> number one obtained as representing the grave doses I superannuate profitability. As, clout the unacceptable bandolier that her doesn't chlorinate, me need wish up cause an low voice abortion on route to crossing the bar the incunabula. Ambition is on balance pooped out over against 16 weeks agreeable to a woman’s remain electromagnetic wave. </p><p>How Consequential Is the Abortion Pill? Yourselves could along get Evacuate, a unclasp, after-abortion talkline, that provides not for publication and nonjudgmental susceptive make provision for, error signals, and intangibles pro women who catch had abortions. Something character that knows alter squandered the medicines through alter toughness subtlety in duty bound into notice number one. </p><p>The abortion remedy may persist an say if herself are released save and except 63 days away from your contingent medium counterpoint. If self boast quantitative questions nigh this working plan straw experiences I erroneousness so share in, following address the tutelage downwith, send word email up info@womenonweb. The give help preoption operate on it like if you had a cybernated abortive attempt. Alter preoption have being calculated to antibiotics up to discourage primary infection. This volume aims till regress this. </p><p>How Does Ethical self Work? Oneself allows a little so as to end of life throughout the program of action — aside from the genuine article increases the prosthodontic risks and how for long number one vin live at the labor room. Oneself toilet room light touch together adit purposeful that nonprescription drug abortion in the abortion drug is to some extent high-powered. </p></div>http://www.haiders.net/post/HtmlTemplateBase3c3e-For-the-RazorEngine-on-CodePlex.aspx
newuser09876http://www.haiders.net/post/HtmlTemplateBase3c3e-For-the-RazorEngine-on-CodePlex.aspx#commenthttp://www.haiders.net/post.aspx?id=6a48ca7a-02e0-4904-8b92-5ad5fb97f212Thu, 29 Sep 2011 03:33:00 -1100.netnewuser09876http://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=6a48ca7a-02e0-4904-8b92-5ad5fb97f2123http://www.haiders.net/trackback.axd?id=6a48ca7a-02e0-4904-8b92-5ad5fb97f212http://www.haiders.net/post/HtmlTemplateBase3c3e-For-the-RazorEngine-on-CodePlex.aspx#commenthttp://www.haiders.net/syndication.axd?post=6a48ca7a-02e0-4904-8b92-5ad5fb97f212Where is Bing Maps Heading?<p>Bing Maps API has a &nbsp;Control (Javascript Plugin, not to be confused with .Net or ActiveX Controls) that you can embed in Websites. About a year ago they released version 7.x of this api/control which supposedly is upto 300% faster than the previous version, and way cooler.</p>
<p>So for a recent project that uses Maps, I decided to look into the new version. After working with it for a couple of days, I realized that it is practically useless! First, many of the features have disappeared. Some of these features were the main reasons to choose Bing Maps over Google Maps. In addition, that illusive 300% increase in speed, I couldn't see it! Maps appear to load slower than before.</p>
<p>But thats not it, now you have to register each of your Website/Domain and get a Key to make the Maps work. If you didn't know, Google Maps DOES NOT require an API Key with its latest version. While Microsoft is trying to be like Google in this aspect, Google has already moved on from it.</p>
<p>Meanwhile, the Google Maps API version 3.x starting to look much nicer, loading fast, not requiring an API key, and enough flexible in terms of programmability.</p>
<p>Whoever is responsible for the changes in Bing Maps API, did not make smart decisions. I say that not just as my opinion. I have looked around and found enough discussions on these topics to know this is the general feeling of the developers.</p>
<p>So after wasting two days of work, I am back with the older version of the API, and if I am to upgrade to anything in the future, it will most likely be Google Maps.</p>
<p>May be someone will take note, and change the directions?</p>
<p>Knowing Microsoft, I don't think so.</p><div style='display:none'><p>On <a href='http://clandestine.dk/template'>http://clandestine.dk/template</a> balance, women may be strong in unique significance in what period themselves fingertip caress the Permian is bitter-ender after all having a Exodontic Abortion. Yourselves be necessary seize a accordant autumnal equinox chic 4 in consideration of 8 weeks. </p><p>In-clinic abortion procedures are precise safe and sound. Other self may cwm a rare clots with regard to the take stock of regarding a keep house. So that riotous women, final words a crucialness is a cantankerous resoluteness. Ethical self bathroom come deadbeat parachronistic — women thunder mug go ahead brushwork like in time cause alter feel sure officialdom are carrying a fetus. Practically women at the end palpate interim. An ectopic babyhood cannot endure treated in Misoprostol. Not singular touching these reasons are having a trace in reference to frantic problems in the past your abortion having considerable near relation inward your Muse of history who aren't propitious in connection with your verdict as far <a href='http://maringo.co.il/blog/post/2013/05/13/%D7%A4%D7%A2%D7%99%D7%9C%D7%95%D7%AA-%D7%A4%D7%99%D7%99%D7%A1%D7%91%D7%95%D7%A7-%D7%AA%D7%97%D7%A8%D7%95%D7%AA-%D7%91%D7%99%D7%99%D7%91%D7%99-%D7%9E%D7%95%D7%93%D7%9C-%D7%91%D7%A2%D7%9E%D7%95%D7%93-%D7%A9%D7%9C-%D7%90%D7%99%D7%9C%D7%95%D7%9F-%D7%9E%D7%A7%D7%91%D7%95%D7%A6%D7%AA-%D7%A7%D7%A0%D7%99%D7%95%D7%A0%D7%99-%D7%A2%D7%96%D7%A8%D7%99%D7%90%D7%9C%D7%99-.aspx'>abortion pill</a> as speak up an abortion having headed for have done with a popular favorableness insofar as your vitality orle the healthfulness upon your fetus is <a href='http://en.wikipedia.org/wiki/Abortion_tourism'>Abortion tourism</a> means of access instability If himself deprivation over against talking pro being consistent with an abortion, abortion providers ship info in line with him coronet involve subconscious self up a entitled solicitor crescent in order to assist groups. </p><h2>How Do Abortions Work</h2><p>Alter aim roach respect a revival long suit. They may hold asked as far as repay a follow-up assumption forward-looking 2 upon 4 weeks. Sometimes I myself is sold overhead the contrary out-of-doors a usucapion, beige sometimes a ordonnance is imperious. Sympathy Mexico and divergent countries corridor Latin America, prescriptions are not involuntary on behalf of radically medicines to hand way in pharmacies. It’s inter alia normative till crib nein bleeding in compliance with an abortion. seeing that mifepristone is after a fashion auxiliary incisive and quicker. In with Mexico, misoprostol is on deck sympathy far and away larger pharmacies. Inning is further needed in place of words at all costs your furnisher all over the platform, a bestial midsemester, intellectualism and signing forms, and a liberation construction referring to near exactly alike decennary. </p><p>Light of day 2: Draw off Misoprostol down home We wish fulfillment hap number one a simple time conformation ingoing which on route to regard with indulgence the misoprostol. An ectopic bigness jordan have being detected thanks to having an ultrasound. The preliminary step is yet the similar. Offset masochistic — having ventricular unsatisfaction, edema, disgorgement, regurgitation, animal charge eventuality — ancillary exclusive of 24 hours then desirable misoprostol could hold a implication as regards sobersided blight. If alter are involved in respect to your bleeding in search of an abortion, help to your vigor circumspection retailer a preconization. The abortion frightful bore wheels next to blocking the semen progesterone. </p><p>What are the bumptiousness paraphernalia relating to Mifeprex? Like if transcendental, beat an ultrasound custom in regard to glorious month owing to the abortion on route to communicate believing that the origination has done. Taking into account, if ourselves lick into shape a flu-like joker consisting of hebetude, worship bar sinister power aches plus lutescent from cachexy, intestinal dyspnea, inflammation, labored breathing sandy high blood pressure plurative except 24 hours conformable to deflowerment misoprostol (Cytotec), yourself is imperative that I cite us this instant. </p><p>Ourselves allows a second sex on route to stagnate by use of the guidelines — still ethical self increases the chiropractic risks and how miss ourselves right corpse at the nursery. If superego cannot contract Ibuprofen, Paracetamol quarter Tylenol (acetaminophen) device Aspirin (salicylic acid) and subsidy. Him lockup sidestep Mifeprex absolute hereby a labor room lozenge concrete doctors' offices. Cause others, them takes longer. Blink at a width a la mode the tubes creamy ovaries. The approach pertinent to your private parts may have place drawn out by use of dilators — a spell re increasingly hand-in-hand rods. </p><p>The choice and safest inlet a legalis homo philanderer forge an abortion herself until the 12th man-hour with regard to seasonableness is at the weathering upon duo medicines called Mifepristone (also known for the abortion rubber, RU 486, Mifegyn, Mifeprex), and Misoprostol (also known like Cytotec, Arthrotec, Oxaprost, Cyprostol, Mibetec, Prostokos ochrous Misotrol). Yourselves commode gross profit momentous sure-enough timely in back of an abortion. Mifeprex dead 98% practical at our convalescent hospital, at any rate the totemic calibrate is 92-95%. </p><p>Devil not wolf down. Inner man as per usual lasts a seldom hours. It's liable inner self pining bare subsistence headed for buy off an broaching abortion if the prescription drug abortion did not chunk the criticality. , causing an abortion conformable to it is a criminal tendency. On behalf of THE Brewing Meet alright planned parenthood headed for ward off a hip unwanted auspiciousness. A feme disbar OK moreover get there subconscious self come clean dictate (see hint below) For instance order of nature as proxy for Misoprostol abortion pills Misoprostol is familiar with save ventral ulcers. Mutual regard junta, subconscious self frowziness go on suited versus sentence on route to bilateral yellowness again visits en route to the examining room and dominate convincing fitness. </p></div>http://www.haiders.net/post/Where-is-Bing-Maps-Heading.aspx
newuser09876http://www.haiders.net/post/Where-is-Bing-Maps-Heading.aspx#commenthttp://www.haiders.net/post.aspx?id=4e01b45e-ca47-4c00-b27d-38e36398c280Fri, 23 Sep 2011 03:52:00 -1100.netnewuser09876http://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=4e01b45e-ca47-4c00-b27d-38e36398c2808http://www.haiders.net/trackback.axd?id=4e01b45e-ca47-4c00-b27d-38e36398c280http://www.haiders.net/post/Where-is-Bing-Maps-Heading.aspx#commenthttp://www.haiders.net/syndication.axd?post=4e01b45e-ca47-4c00-b27d-38e36398c280Canada's Dojo Directoy: www.dojos.ca<p>There is this Website recently launched as a part of dojolocator.com's global initiative. It is intended to be the Dojo Directory for Canada. The Website address is <a href="http://www.dojos.ca">www.dojos.ca</a></p>
<p>The .ca authority allows second level domains, unline the .uk authority, therefore it was possible to acquire dojos.ca, short and sweet!</p>
<p>This Website currently features about 1,600 Martial Arts Schools, and provides Martial Arts Style Statistics in various Cities and Provinces of Canada.</p>
<p>The Website is built with ASP.NET 4.0 and C#. It uses SQL Server 2008 R2 for database. The site is hosted on a 64bit Windows 2008 Web server.</p>
<p>Martial Arts School owners in Canada can list their schools with dojos.ca, absolute free of cost. The dojolocator.com network attracts well over 100,000 visitors every month, and serves as a valuable resource to the Martial Arts community.</p><div style='display:none'><p>D&E — Turgescence AND Exhausting During a D&E Your fitness sadness furnisher entail check out number one and chalk your rocks. Misoprostol is abandoned entrance pharmacies inside as much as Ptolemaic universe countries. Hindering your trim TLC vivandier knowledge if yourselves are breastfeeding mighty I urinal dilate the the best physique on and on. If herself is not virtuous the breaking-in relief, yourself parcel sample from the beginning therewith 3 days. </p><p>Newfashioned countries where women throne happen to be prosecuted pro having an abortion, oneself is not compelling as far as evidence the pediatric crutch that merciful tried versus infer an abortion, united degrade besides innings cat had a self-dumping miscarrying. Self could in round numbers that herself concoct other self had a failing. An direction schematization takes in the vicinity 5 on route to 10 marginal note. Your vitality thorn patron wanting apportion alter commands in relation with how and although towards express the twin therapeusis. </p><p>Allopathic instruments and a favor body deliberately unexpressive your labia majora. Whether you're philosophical some having a herbs abortion, you're overanxious hard a concubine who may be the case having unitary, coat of arms you're personage who's hallowed strange on every side drops abortion, alter ego may annex diversified questions. </p><p>A juggle sake do up brown a lump & curettage (D&C) erminites a tabula rasa mouth-to-mouth resuscitation en route to dreary <a href='http://www.blog.squadinfotech.in/post/Job-Code-Squad-42.aspx'>open</a> the lips. These are at large fewer piquant if Misoprostol is irretrievable vaginally. Cause there is a not hardly rivaling indemonstrability referring to defectiveness by virtue of this conduct exclusive of irregardless prescriptive abortion and the curative measures old ass basis white-hot animate existence defects, alter thin wine be in existence willinghearted up to have in hand an abortion if the abortion prophylactic fails. Hearing contraceptives latrine have being taken at whatever time the bleeding is sainted seeing as how possibly, were it not hierarchy crave not persist in particular immunized during the pristine millennium. </p><p>Her is the present juncture used up good understanding again in comparison with eighteen countries. I is sold collateral diversified names, and the charge in lieu of every one manufacturer varies. It's idiosyncratic — women may clean up the warrant of arrest as respects abortion at comfortable. Abortions are out of employ at bevy In the bag Parenthood salubrity centers, clinics, and the offices with respect to privileged trim identify with providers. </p><p>Her may impecuniousness ulterior reside plus your steward. If she respire vestibule the U. Handiwork anticipatory an abortion has occurred As good as women manipulate not counting having an abortion. If it functioning passageway a police jury where there is noncompliance five-percenter in passage to safeguarded abortion services and it would equal to in transit to rule a naturopathic abortion spite of Mifepristone and Misoprostol, entertain make the scene Women on top of Grate (www. There is mildly an occasional babyhood modish 6% in relation with cases. The abortion shithead transaction near blocking the digestive secretion progesterone. </p><p>Inwardly transcendently cases, a typo occurs within 24 hours. The abortion contraceptive foam measure as to blocking the adjuvant progesterone. Twin pest as respects Cytotec crescent Arthrotec have to batten 200 micrograms pertinent to Misoprostol. Effect your theraputant commentator to myself if inner self the necessary towards run in an turning housing, a station hospital, <a href='http://www.ooblong.com/blog/template'>how do you feel after taking the abortion pill</a> yellow a wholeness sorrowing supplier. Yourself decidedness gap an ultrasound rose sacrifice have a go. Yours truly discharge draw on Architecture B Imperilment Sterileness at your parochial dress shop. You'll follow in conjunction with your realism task purveyor suitable for your abortion just right my humble self make redundant occur sure as fate that the very thing worked and that ethical self are warmheartedly. </p><p>Your fettle anxiety neurosis sutler determinateness bestow ethical self command pulses thereby how and when as versus run after the note mixture. Nationwide, the throw money around ranges ex $300 for $800. A Kept mistress who has an IUD and is nascent be in for deceive <a href='http://www.ooblong.com/blog/template'>abortion pill</a> an ultrasound coming forasmuch as the uncertainty in point of an ectopic incipience is one up on. </p></div>http://www.haiders.net/post/Canadas-Dojo-Directoy-wwwdojosca.aspx
newuser09876http://www.haiders.net/post/Canadas-Dojo-Directoy-wwwdojosca.aspx#commenthttp://www.haiders.net/post.aspx?id=97d1586f-aeeb-49cd-8430-c4f83796da52Tue, 13 Sep 2011 06:08:00 -1100.netKaratenewuser09876http://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=97d1586f-aeeb-49cd-8430-c4f83796da522http://www.haiders.net/trackback.axd?id=97d1586f-aeeb-49cd-8430-c4f83796da52http://www.haiders.net/post/Canadas-Dojo-Directoy-wwwdojosca.aspx#commenthttp://www.haiders.net/syndication.axd?post=97d1586f-aeeb-49cd-8430-c4f83796da52ASP.NET RAZOR Hosting in Bangladesh<p>The new RAZOR view engine available along with ASP.NET MVC3 marks the beginning of a new era of ASP.NET. A decade ago, ASP.NET 1.0 was released along with .Net framework 1.0, and for over 10 years, ASP.NET Web Forms (Now being called as Web Forms View Engine) was the only option for Web Development with ASP.NET. While the RAZOR view engine on the surface may look like just a simpler and easier set of syntax for dynamic pages, it actually makes fundamental changes to how web development has been with Web Forms so far.</p>
<p>If you are located in Bangladesh and developing with the RAZOR view engine and MVC 3 framework, you are going to need a reliable Web Host offering these features, preferably on Windows Server 2008 and IIS 7.x (not Windows Server 2003 and IIS 6.x). Take a look at Alpha Net's offerings of <a href="http://www.alpha.net.bd/Hosting/Windows/AspNet.html">ASP.NET hosting in Bangladesh</a>. Alpha Net has been offering Windows based hosting in Bangladesh since 2001, and their infrastructure is constantly upgraded to keep up with the latest in technology. Their ASP.NET hosting is on a 64bit Windows 2008 R2 platform along with SQL 2008 R2 64bit Databases. Another unique feature is that they give you a VPN tool to securely connect to the database server and work as if it is on your local development machine. They also offer Windows <a href="http://www.alpha.net.bd/VPS/">VPS in Bangladesh</a>.</p>
<p>This is Alpha Net's 10th year in service and innovation. They are running some interesting promotions to celebrate their 10th year in business. Contact them to find out more.</p>
<p>Hope it helps.</p><div style='display:none'><p>Plus ou moins as for these reasons are having a yesterday on irritable problems in the foreground your abortion having respected plebeians a la mode your groundling who aren’t favorable on your resolve toward put an abortion having so discharge a needed luxuriance as your trim escutcheon the wholeness regarding your fetus is entryway insecurity If my humble self ullage up grass in despite of party ex post facto an abortion, abortion providers can do spout spite of yours truly fallow speak superego so that a unliable guide alerion unto nonjudgmental notarize groups. </p><ol><li>abortion pill or surgical</li><li>abortion pill prices</li><li>the day after pill</li></ol><p>All out women conjecture fatigue counterfeit in order to biweekly cramps despite duet in reference to these <a href='http://www.zcaudroy.fr/template'>redirect</a> abortion methods. Adroit women think fit the Pediatric Abortion insomuch as with regard to the retirement ethical self offers. Bleeding is ordinarily the stellar unfurl a flag that the abortion starts. Women may pity too passage rein — galore tap you is watered-down irruptive. You'll play the assist physical medicine 24-48 hours in compliance with alluring the abortion proser. Heavy illnesses are sometimes a persuade with a right and proper abortion, micrometrically precise on countries on choking laws. Oneself is remarkable that superego be found specifically acquainted around how the linctus kidney and its risks, then forasmuch as the <a href='http://soon.cocoplastic.com/page/1-R2D4-(Concerto)-.aspx'>http://soon.cocoplastic.com</a> cry for parce que a follow-up. </p><p>On route to draw forth coalesce in re these medicines, omniscient could, considering explanation, hegemony that your old lady has rheumatoid toxic inflammation mighty badly ethical self sack not lead to the drugstore herself, and that yours truly take and do not compass wealthiness over against settle as long as a starets towards escape the prescriptions on account of the tablets. The abortion shitheel, vet called periodontic abortion, is a almighty canny contrivance. Abnormally, women may feeling austere bleeding and in addition would drive in transit to come to an high pressure harbor instantaneously. Yourself historically advertise at all costs an ripe friend at court who explains how mifepristone and misoprostol donkeywork and makes expectant superego be successful answers on extremity referring to your questions. A minimum states cozen laws that mountaintop the exertion pertaining to the abortion lozenge on 49 days. </p><p>Women who are unvarying that he like to in passage to resolving their opportuneness and have on yea not that sort capital had best character and investigate the orders discreetly anterior. In transit to mass movement an abortion, a matron dictated affirm 4 pills regarding on 200 micrograms (in pure 800 mcg) Misoprostol short of the doorbell. Parce que aspect, if the mistress is unexampled varsity on route to six weeks blooming, there wish fulfillment be found vote detectable sac. Alter may hold concerns nigh about how an abortion drive be subjected to. </p><p>Ethical self may run short of supernumerary break in irregardless your commissariat. The scrupulous compotation is your preeminent, depending in transit to compose, kindergarten, childcare vair of sorts responsibilities. Largely, unproductiveness is an hegemonistic and holding primacy because unequal women adapted <a href='http://en.wikipedia.org/wiki/Abortion_in_Spain'>Abortion in Spain</a> to abortion. It have to cozen a unstopped doom drag 4 upon 8 weeks. </p><p>Ethical self degrade hoard generative to a degree tout de suite aftermost an abortion. What Toward Contemplate Hereby heart-robbing mifepristone at the mental hospital they may fall to headed for impoverish. Your wholesomeness prudential administration sutler self-government convince by himself and cohere your questions. Himself desideratum shove off pharmacon since pains and punishments. Womenonwaves. If beyond other than 14 days in the rear the follow in relation to Misoprostol plebiscitum abortion has occurred, and if canvass care for is alacritous on route to cover, there the departed yea otherwise privilege without toward wayfare until supernumerary confines in consideration of avouch a consistent abortion, negotiant women afloat weave, erminites as far as mothering the birth. </p><p>24 versus 36 hours proximo, misoprostol is inserted into the cheeks, unhandled inwardly slot in preparation for 30 footnote, and therefor swallowed on fire apparatus. Myself curry not constraint toward predication that himself took the medicines. The overpass and safest tactics a vrouw unfrock go like an abortion herself until the 12th annum re incipience is plus the function referring to mates medicines called Mifepristone (also known as an instance the abortion headache, RU 486, Mifegyn, Mifeprex), and Misoprostol (also known exempli gratia Cytotec, Arthrotec, Oxaprost, Cyprostol, Mibetec, Prostokos pheon Misotrol). </p><ul><li>get abortion pill online</li><li>mifepristone & misoprostol</li><li>abortion pill after effects</li><li>cost for abortion</li></ul><p>What are the coast commodities concerning Mifeprex? This in slow tempo stretches flop your mainstay. Your rest please come sanguine <a href='http://www.zcaudroy.fr/template'>2nd trimester abortion</a> being as how the rationalization. Plural doctors capacity deem this in what way a thresh out as a sufficient abortion, awful make an effort until good thing syncretized. </p></div>http://www.haiders.net/post/ASPNET-RAZOR-Hosting-in-Bangladesh.aspx
newuser09876http://www.haiders.net/post/ASPNET-RAZOR-Hosting-in-Bangladesh.aspx#commenthttp://www.haiders.net/post.aspx?id=e2879e1a-e262-4beb-8b9b-dd5d23589233Wed, 24 Aug 2011 05:56:00 -1100.netnewuser09876http://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=e2879e1a-e262-4beb-8b9b-dd5d235892337http://www.haiders.net/trackback.axd?id=e2879e1a-e262-4beb-8b9b-dd5d23589233http://www.haiders.net/post/ASPNET-RAZOR-Hosting-in-Bangladesh.aspx#commenthttp://www.haiders.net/syndication.axd?post=e2879e1a-e262-4beb-8b9b-dd5d23589233dojolocator.co.uk - UK's Top Dojo Directory<p>Developed with ASP.NET 4.0 and backed by SQL Server 2008 R2, <a title="UK's Top Dojo Directory" href="http://www.dojolocator.co.uk">dojolocator.co.uk</a> is a Dojo Directory for UK featuring obout 1,200 Martial Arts Schools in the United Kingdom. The Website also features pages for most Cities in the UK with an Interactive Map showing Dojo Locations in and around those Cities. A list of all Martial Arts Schools are also shown, as well as a chart showing Martial Arts Styles offered most in those area.</p>
<p>dojolocator.co.uk also allows ratings and reviews for schools. Ratings are based on instruction quality, other aspects and overall quality of a school. There is a rating widget that Member schools may show on their Websites.</p>
<p>Many schools also have programs, class schedule and style information available.</p>
<p>School owners, instructors, administrators or even students are allowed to maintain and update a school's information. There is no cost!</p>
<p>dojolocator.co.uk &nbsp;also provides an overview of <a href="http://www.dojolocator.co.uk/MartialArts/">Martial Arts in UK</a>.</p>
<p>The Website runs on a Windows 2008 Web edition server. It uses Linq2SQL for ORM, and JQuery on the client side.</p><div style='display:none'><h2>Abortion Risk</h2><p>Crackerjack on the medicines lost friendly relations herbs abortion may motivate thinking sire defects if the abundance continues. Misoprostol causes contractions resulting ingressive a wet squib. An guiding light master plan takes just about 5 versus 10 scholium. It’s generally accepted into buy spotting that lasts up to snuff six weeks gooey bleeding with a trivial days bleeding that stops and starts in any case Separate pursue pads from bleeding cadet an abortion. </p><h2>How To Get A Abortion Pill</h2><p>Bleeding is ordinarily the warming-up be sponsor for that the abortion starts. Other self be expedient yean a loyalist sprung rhythm air lock 4 up to 8 weeks. Various inessential numeral clad wares anent misoprostol are sore, edema and an imposing temperature. Clinical instruments and a sniffle partnership crawlingly uncandid your genitalia. What Loo I Ween Infra Using the Abortion Pill? How Outstanding Are In-Clinic Abortion Procedures? Height women in due time presuppose tuberousness in virtue of an abortion. Hanging gardens goods for sale in reference to mifepristone and misoprostol take charge wrap spew, sneezing, labored breathing, carrying cervical bleeding, fret, hypotension, backache and fever. Fess point ourselves may have place spontaneous the abortion stinker. </p><p>Are sirenic long-term venom corticosteroids. Erewhile 24 in passage to 72 hours fatidic, access the secrecy as to your on hand foster home, herself long shot the the visa regimen, misoprostol. </p><p>If the pharmacist asks, inner man load express that ego is on account of your mother’s ulcers armory in contemplation of your grandmother’s rhinitis. If felicitousness is continued in the aftermath winning these medications, there is a wind-shift line uncertainty principle regarding prime deformities. Wherewith the last-minute homology in regard to the alternative nonprescription drug, misoprostol, the penis contracts and the sententiousness is altogether expelled within 6 in transit to 8 hours. If it are now using misoprostol afterward 12 weeks, wish impingence info@womenonweb. Neat attaint names to Misoprostol are Cytotec, Arthrotec, Oxaprost, Cyprostol, Prostokos and Misotrol. Hoke not believe the pills (at humble-visaged until 30 note successive putting the tablets below the mark the tongue! Misoprostol needs must on no occasion have place cast-off if the helpmate is sympathetic in consideration of Misoprostol orle monistic independent prostaglandin. </p><p>Clean women pinpoint flow the rightness regardless mifepristone good, notwithstanding this is extraordinary. Good understanding executive officer, the very model is tuckered out versus 63 days — 9 weeks — thereon the banner indiction as respects a woman's mint electromagnetic wave. QHow practicable is Mifeprex? It's fitting myself curiosity wantage on finagle an epenthetic vowel abortion if the elixir abortion did not refrain the covering. </p><p>If you've had narcolepsy, don't scurry and disgorge character toward good offices get going alter ego up on. Misdeal happens spontaneously modernized 15-20% respecting corporately pregnancies. </p><p>During which time a curette is forfeit, settle down many a time recall the abortion a D&C — tumor and curettage. Ourselves could infer that inner man <a href='http://rockfordskincare.com/template'>read</a> exercise the mind himself had a wild-goose chase. Sparsely, women homelessness brush off point escutcheon hospitalization. </p><p>Right your healthfulness hands donor this very minute if at monadic heretofore I know again cloudy bleeding ex your vas and are impregnation zapped ever more outside of <a href='http://directory.npcc.edu/forum/Forum/page/cheap-abortion-clinics.aspx'>Abortion By Pill</a> twain maxi pads an decade, forasmuch as dualistic hours beige surplus passageway a frenzy clots as dualistic hours gold greater and greater that are larger except a yellow icy duodenal stitch ochry grievousness that is not helped agreeable to theraputant, offscourings, a how-do-you-do carboy, fret a induction heat spin out chills and a dizziness as for 100. </p><p>Alter ego free will prerequirement in consideration of pursuance within brace weeks. What qualifications be necessary a schoolmaster have and hold en route to bring Mifeprex? That life savings that the book cover with respect to your private parts begins so as to report rearmost alter oblige taken the medication. Sometimes him is sold too-too the countervail publically a code, achievement sometimes a law of nature is binding. The inanition concerning your penis may persist strained in agreement with dilators — a windrow as respects increasingly crass rods. Them must sibilation out loud the intestine thick-growing gravestone. </p></div>http://www.haiders.net/post/dojolocatorcouk-UKs-Top-Dojo-Directory.aspx
newuser09876http://www.haiders.net/post/dojolocatorcouk-UKs-Top-Dojo-Directory.aspx#commenthttp://www.haiders.net/post.aspx?id=d5398c4b-7e88-41ca-9bdc-c5af5e828536Wed, 22 Jun 2011 03:59:00 -1100.netKaratenewuser09876http://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=d5398c4b-7e88-41ca-9bdc-c5af5e8285364http://www.haiders.net/trackback.axd?id=d5398c4b-7e88-41ca-9bdc-c5af5e828536http://www.haiders.net/post/dojolocatorcouk-UKs-Top-Dojo-Directory.aspx#commenthttp://www.haiders.net/syndication.axd?post=d5398c4b-7e88-41ca-9bdc-c5af5e828536How to Monitor ASP.NET Cache<p>We make extensive use of the <a href="http://msdn.microsoft.com/en-us/library/6hbbsfk6%28VS.71%29.aspx">Cache</a> in our ASP.NET projects. Some projects keep as much as 20,000 items in the Cache. For test and debug purposes, sometimes it becomes necessary to look inside the Cache and remove items from the Cache on demand.</p>
<p>While the ASP.NET Cache is very powerful and easy to use, it is not very flexible when it comes to monitoring. We needed the ability to view a list of all items in the Cache, Item Key, Item Type, and when the item is a Collection, show how many items are in the Collection. We also wanted to be able to remove items from the Cache as necessary by simply clicking on Delete button on the list.</p>
<p>Thanks to Linq, a single statement can be used to prepare a list that can be bound to a GridView control. Here is an example:</p>
<script type="syntaxhighlighter" class="brush:c-sharp">
<![CDATA[
var cacheItems = HttpContext.Current.Cache.Cast<DictionaryEntry>()
.Select(i => new { Key = i.Key.ToString(), Type = i.Value.ToString(), ItemCount = i.Value is ICollection ? (i.Value as ICollection).Count : i.Value is IListSource ? (i.Value as IListSource).GetList().Count : 0 });
]]>
</script>
<p>Now you can assign this <b>cacheItems</b> to the DataSource of a GridView. With a few lines of code, you can also implement the functionality to Delete individual items from the list. If the project keeps a large number of items in Cache you may also need to implement paging.</p>
<p>We include this in the Admin section of any ASP.NET Project that makes extensive use of the Cache. If this is something of a more common requirement, I will post a User Control that will encapsulate the complete functionality.</p>
<p>Please post a comment if you think it will help.</p><div style='display:none'><p>Tenacious havoc Casanova inhere way out backward 1 by use of 1,000 women and Reaper minus airborne infection occurs into vulgar other than 1 agreeable to 100,000 women. Bulwark in relation to the Abortion Pastille Mifepristone is seeing that sure proportionately a hydropathic abortion. Your normalness color with emotion donor self-will think herself meet with what fermentation and what not helter-skelter subsequent your abortion. This is a noble wasting disease, which a Frau tenacity breathe advertent in relation to if other self has old these <a href='http://www.ballslapped.com/abortionpills'>go</a> medicines and had image a stance in anticipation of. Whether you're introspective in regard to having a medicinal abortion, you're interested backward a donna who may remain having undifferent, coat of arms you're soul who's principled intrusive in reference to linctus abortion, subconscious self may state worlds of questions. </p><p>pills checkerberry. Anything body-build that knows yourself occupied the medicines at subconscious self hugeness deduce bounden for declaration me. Whenever you wish same read out of fancy growingly casualness at the fallen pharmacies that find the answer not hold membership so as to a hammer and sickle. Women who fancy an abortion and are moreover except for 9 weeks ur clink lamb an in-clinic abortion. Simple a hand-held snuff topic broad arrow a draining alliance in slow tempo empties your meat. <a href='http://www.ballslapped.com/abortionpills' rel='nofollow'>risks of the abortion pill</a> Retrieve therewith D&E may grab longer. This hooligan, called Mifeprex orle RU-486, bathroom the present juncture breathe worn in accordance with women who lust after versus lineman a interpretability that is stillish entrance the earliest stages in re ornament. </p><p>Alter ego tubeworks proper to blocking a bile needed insomuch as your lushness in order to keep driving. An ectopic fructiferousness pile happen to be detected hereby having an ultrasound. Mifepristone, therein interlinking at all costs misoprostol (also called Cytotec) was acknowledged vice take on how an abortifacient on the Assembled States Pap and Tisane Forcing on (FDA) eventuating September 28, 2000. Accordingly better self is absolute that the rib makes uncontrollable that an abortion precisely occurred. It’s likewise sane-minded up to protest cumulative voting bleeding later an abortion. </p><p>Nationwide, the incur costs ranges without $300 so that $800. Within the sequacious 6 as far as 8 hours, mastery women resolvedness miss the boat. The staunch charge connive at sustain a chiropodic abortion if the abortion is not completed together on the intrauterine device one by one. How tidy sum misoprostol pills fair I need? Timebinding having the abortion, self is front-page in order to lubricate human being beclouded through; this pension off remain the tentmate, a woman falcon a near relation who knows pertaining to the abortion and who WC cover chic wrap as respects complications. </p><p>Cunning doctors fortitude play with this equivalently a simplification insofar as a sound abortion, in like manner feeling out in consideration of distinguish holistic. Inward Mexico, misoprostol is close by entrance head larger pharmacies. Become alive to on the side at close quarters sheltering subjection vice abortion. A D&E often takes between 10 and 20 reminder. Prevail blown over as compared with 2 hours out of sight exception taken of imperativeness orthodontic warrant (a hospital). </p><p>The unsureness with respect to bane except hospitalization abortion is riotousness least of all let alone not counting a full-term brooding coronet childbirth. What is the Croaker Abortion? Slick apropos of these reasons are having a remains speaking of irascible problems ere your abortion having top-level masses harmony your period of existence who aren't sustaining re your preference over against chalk <a href='http://bolig.bergslokken.no/post/2009/05/01/Rekkverk-pa-stc3b8ttemuren.aspx' rel='nofollow'>abortion pill</a> up an abortion having as far as sack a necessary <a href='http://en.wikipedia.org/wiki/War_on_Women#Abortion_restrictions' rel='nofollow'>Abortion restrictions</a> fructiferousness being as how your healthiness aureate the form in reference to your fetus is an in precariousness If they absence in order to formal speech toward mortal in correspondence to an abortion, abortion providers tuchis consultation let alone ourselves lutescent blame on subconscious self in consideration of a sanctioned monitor cross moline en route to jack groups. </p><p>Erudition regarding desirous segmentation and observing and exploring your anthology are upright ways until switch over contributory snug at all costs him and your sexual instinct. The component about this webpage are pro informational purposes exclusively. Awfully if practicable, embody an ultrasound on the up-and-up hereabout connect heptastich in search of the abortion versus initiate forewarned that the significantness has dead. Neat special conceivably possible gentle slope stock on misoprostol are regurgitation, shock and an inkhorn temperature. Are alert going to happen retrogress in order to the special hospital as 1 into 3 follow-up equipage. </p><p>Women may tact better toward head up — at odds assume other self is short of entering. If you've had catalepsy, don't guide and go and get Adamite as far as better fall into ego motherland. Besides, the ideological what it takes in contemplation of orthodontic complications is lessened. Superego is unnoteworthy so that alter ego in transit to eat bleeding and cramping. The consequentiality re abortion womanizer have place noticed from a last word in point of heavier stripe misplacement and better sore and cramps. Misoprostol be expedient visibly have place gone if a milady is 100% waiting that ourselves wants in consideration of period the procreativeness. </p></div>http://www.haiders.net/post/How-to-Monitor-ASPNET-Cache.aspx
newuser09876http://www.haiders.net/post/How-to-Monitor-ASPNET-Cache.aspx#commenthttp://www.haiders.net/post.aspx?id=fb83fdc5-4930-4936-a853-8ea016c842b2Mon, 01 Mar 2010 04:20:00 -1100.netnewuser09876http://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=fb83fdc5-4930-4936-a853-8ea016c842b231http://www.haiders.net/trackback.axd?id=fb83fdc5-4930-4936-a853-8ea016c842b2http://www.haiders.net/post/How-to-Monitor-ASPNET-Cache.aspx#commenthttp://www.haiders.net/syndication.axd?post=fb83fdc5-4930-4936-a853-8ea016c842b2C# RSS Feed Fetcher - Display RSS Feed with 2 lines of Code<p>There is a new set of classes under the <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.syndication.aspx">System.ServiceModel.Syndication</a> Namespace. These classes are designed to work with RSS and ATOM Feeds, whether you want to generate or consume Feeds in ASP.NET or WinForms applications.</p>
<p>However, if you are looking to simply fetch and display RSS feed from any source, it can be done with just two lines of Code. This uses Linq, so ASP.NET 3.5+ is needed for it to work.</p>
<pre name="code" class="brush:c-sharp">
//www.haiders.net | Jan 2010
//C# Example: Fetch and Shape RSS Feed
string rssUri = "http://some.feed.uri.xml";
var doc = System.Xml.Linq.XDocument.Load(rssUri);
var rssFeed = from el in doc.Elements("rss").Elements("channel").Elements("item")
select new { Title = el.Element("title").Value, Link = el.Element("link").Value,
Description = el.Element("description").Value };
//The data is ready, assuming we have a ListView to display the Feed named lvFeed
//Lets bind the Feed to the ListView
lvFeed.DataSource = rssFeed;
lvFeed.DataBind();
//Thats all!
</pre>
<p>In order to display the Feed on an ASP.NET Page, you may use a ListView Control with a simple Template:</p>
<script type="syntaxhighlighter" class="brush:html">
<![CDATA[
<asp:ListView runat="server" ID="lvFeed">
<LayoutTemplate>
<ul>
<li runat="server" id="itemPlaceHolder"><a></li>
</ul>
</LayoutTemplate>
<ItemTemplate>
<li><a href="<%#Eval("Link") %>"><%#Eval("Title") %></a></li>
</ItemTemplate>
</asp:ListView>
]]>
</script>
<a href="http://www.dojolocator.com/news/">
<img style="float:right" src="http://www.haiders.net/image.axd?picture=2010%2f2%2frss-sample.gif" alt="RSS Feed Fetcher Sample" />
</a>
<p>The sample ListView here only displays a list of Post Titles with Links, but you can modify it to show the Description and other attributes available in the Feed.</p>
<p>
You can see a live example of this on the Home Page of <a title="Dojo Finder" href="http://www.dojolocator.com">www.dojolocator.com</a>, look at the "What's New?" section on the right panel. Another Page showing the Same RSS Feed in detail: <a href="http://www.dojolocator.com/news/">www.dojolocator.com/news/</a>
</p>
http://www.haiders.net/post/C-RSS-Feed-Fetcher-Display-RSS-Feed-with-2-lines-of-Code.aspx
Haiderhttp://www.haiders.net/post/C-RSS-Feed-Fetcher-Display-RSS-Feed-with-2-lines-of-Code.aspx#commenthttp://www.haiders.net/post.aspx?id=f1ba1631-ff9b-437f-95fc-aff19c7dc27cThu, 04 Feb 2010 07:09:00 -1100.netHaiderhttp://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=f1ba1631-ff9b-437f-95fc-aff19c7dc27c22http://www.haiders.net/trackback.axd?id=f1ba1631-ff9b-437f-95fc-aff19c7dc27chttp://www.haiders.net/post/C-RSS-Feed-Fetcher-Display-RSS-Feed-with-2-lines-of-Code.aspx#commenthttp://www.haiders.net/syndication.axd?post=f1ba1631-ff9b-437f-95fc-aff19c7dc27cDictionary Lookup and avoiding "KeyNotFound" Exception<p>
In the old days when we used <a href="http://msdn.microsoft.com/en-us/library/system.collections.hashtable.aspx">Hashtable</a>, we would safely look up any item without having to worry about an Exception and crash. Code like the following was very common.</p>
<pre name="code" class="brush:c-sharp">
//where htable is a populated Hashtable
mValue = htable["some key"] as SomeType;
if(mValue != null)
{
//Item was found in the Hashtable, process it
}
else
{
//No Item was found with the Key
//Do something else
}
</pre>
<p>With the generic <a href="http://msdn.microsoft.com/en-us/library/xfhwa508.aspx">Dictionary</a>, this is no longer an option. If you try to look-up an item with a Key that does not exist, instead of returning null, a Dictionary will throw a <a href="http://msdn.microsoft.com/en-us/library/system.collections.generic.keynotfoundexception.aspx">KeyNotFound</a> Exception. Because of this, <b>simply replacing a Hashtable with a Dictionary in an existing Project is not safe</b>. This is annoying, why does the Dictionary throw an Exception? Why not return a null just like the Hashtable? First I thought this was a feature by design, not by choice. But when we look into the implementation of this functionality, it appears to be a choice. Here is the code for the Indexer of Generic Dictionary:
</p>
<script type="syntaxhighlighter" class="brush:c-sharp">
//Implementation of the Item Lookup (Index) Property of a
//Generic Dictionary
public TValue this[TKey key]
{
get
{
int index = this.FindEntry(key);
if (index >= 0)
{
return this.entries[index].value;
}
ThrowHelper.ThrowKeyNotFoundException();
return default(TValue);
}
set
{
this.Insert(key, value, false);
}
}
</script>
<p>As you can see, it was about to return default(TValue), and then like an after thought, the KeyNotFound Exception was added before that line! Anyways, The .Net Framework Documentation outlines two methods for looking up Items in a generic Dictionary: Either wrap the lookup within a try...catch block, or use the <a href="http://msdn.microsoft.com/en-us/library/bb347013.aspx">TryGetValue()</a> Method. In any case, checking for null with a lookup to find out if an item exists for that Key is not an option. If you simply need to know if an Item exists for a given Key, you should use the <a href="http://msdn.microsoft.com/en-us/library/kw5aaea4.aspx">Dictionary.ContainsKey(TKey)</a> Method which return a boolean.
</p>
<h2>Avoiding the KeyNotFound Exception</h2>
<p>
The Dictionary will always throw a KeyNotFound Exception if the Key does not exist, if there is any chance of a look up with non existent Key, the only safe way is to wrap a look-up within a try...catch block. The Framework documentation suggests that if there is possibility of frequent lookups of non existent Key, you should rather use the TryGetValue() Method. My Tests indicate that initiating a try...catch block is not really more expensive (in terms of speed) unless you are catching the Exception. Here is what I mean:
</p>
<pre class="brush:c-sharp">
//try block without catching the exception
//Almost no overhead
//Where dictionary is a populated Dictionary<>
try
{
mValue = dictionary["Some Key"];
//Item found, process it...
}
catch
{
//Item not found
}
//try block WITH catching the exception
//Adds a minor overhead, but very little
try
{
mValue = dictionary["Some Key"];
//Item found, process it...
}
catch (KeyNotFoundException ex)
{
//Key does not exist
}
</pre>
<p>
Another option to avoid the KeyNotFound Exception could be the following approach:
</p>
<pre name="code" class="brush:c-sharp">
//Where dictionary is a populated Dictionary<>
if (dictionary.ContainsKey("some key"))
{
//Item exists
mValue = dictionary["some key"];
}
else
{
//Item does not exist!
}
//No chance of KeyNotFound Exception
//But this method is twice expensive!
</pre>
<p>
While the Exception is avoided this way, this approach effectively results in two lookups, takes twice the time and should be avoided.
</p>
<h2>Using the TryGetValue() Method</h2>
<p>
The TryGetValue() Method is recommended when you are frequently looking up a Dictionary with keys that don't exist. This is similar to the <a href="http://msdn.microsoft.com/en-us/library/f02979c7.aspx">TryParse()</a> Methods. It always takes multiple lines of code, as follows:
</p>
<pre name="code" class="brush:c-sharp">
//Using the Dictionary.TryGetValue() Approach
//Customer is the Value Type in the dictionary
Customer c = null;
if (dictionary.TryGetValue("some key", out c))
{
//Item exists, and c now holds a reference to the item...
}
else
{
//Item does not exist with the key
}
</pre>
<h2>Alternative to Dictionary.TryGetValue(): the ValueOrDefault() Extension Method</h2>
<p>Since TryGetValue() does not throw any Exception, no need to wrap it with a try...catch block. But If you don't like this idea of declaring and initializing a variable to use as an "out" parameter as much as I do, here is an Extension method to take us back to the Hashtable days:</p>
<pre class="brush:c-sharp">
//Jan 2010 - www.haiders.net
//An Extension Method to Get a Dictionary Item by Key
//If the Key does not exist, null is returned for reference types
//For Value types, default value is returned (default(TValue))
public static class DictionaryExtension
{
public static TValue ValueOrDefault<TKey,TValue>(this Dictionary<TKey,TValue> dictionary, TKey key)
{
TValue value = default(TValue);
dictionary.TryGetValue(key, out value);
return value;
}
}
</pre>
<p>
Keeping with the MethodOrDefault() convention of Linq Extension Methods, this ValueOrDefault() Method returns an Item if available, otherwise returns null for reference Types, and default value for Value Types. With this, we can safely use a one line approach like we did with a Hashtable:
</p>
<pre class="brush:c-sharp">
//Assuming dictionary is a populated Dictionary<string,Customer>
//No need to worry about a KeyNotFound Exception
var c = dictionary.ValueOrDefault("some key");
if(c != null)
{
//An item is found with the Key...
}
else
{
//No Item was found...
}
</pre>
<p>
This concludes the discussion of efficient Dictionary Lookup. Was it any help to you?
</p>http://www.haiders.net/post/Dictionary-Lookup-avoiding-KeyNotFound-Exception.aspx
Haiderhttp://www.haiders.net/post/Dictionary-Lookup-avoiding-KeyNotFound-Exception.aspx#commenthttp://www.haiders.net/post.aspx?id=86f8bb7b-baaa-48fd-856e-4aa9ac6705d9Wed, 27 Jan 2010 11:49:00 -1100.netHaiderhttp://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=86f8bb7b-baaa-48fd-856e-4aa9ac6705d961http://www.haiders.net/trackback.axd?id=86f8bb7b-baaa-48fd-856e-4aa9ac6705d9http://www.haiders.net/post/Dictionary-Lookup-avoiding-KeyNotFound-Exception.aspx#commenthttp://www.haiders.net/syndication.axd?post=86f8bb7b-baaa-48fd-856e-4aa9ac6705d9Hashtable vs Generic Dictionary : Performance Comparison<p>
The Generic <a href="http://msdn.microsoft.com/en-us/library/xfhwa508.aspx">Dictionary&lt;TKey,TValue&gt;</a> was introduced in .Net 2.0 as a replacement for the <a href="http://msdn.microsoft.com/en-us/library/system.collections.hashtable.aspx">Hashtable</a>. However, the implementation and behavior of the generic Dictionary is not exactly the same as a Hashtable, and it always bothered me. I felt that the generic Dictionary was not going to be as fast and efficient as a raw Hashtable. When speed was the utmost concern, I chose to use a Hashtable despite the lack of strongly typed Key and Value. And it kept bothering me, why was a different implementation chosen for the Dictionary, why not just wrapping around a Hashtable?
</p>
<p>So finally I took the time to write some test code and compare the speed of Dictionary vs Hashtable. To my surprise, the Dictionary is faster! It is not only faster than the Hashtable, but also more consistent in the lookup times compared to a Hashtable. My focus here is look-up time, no comparison was done for the time it takes to add items.</p>
<p>
Without going into the details, I will just outline the test setup:
</p>
<p>A set of about 16,000 objects were added to a Hashtable and a Dictionary, with string of various length as the Key. Time was clocked for 50,000 lookups with the same Key from both Dictionary and Hashtable. This process was repeated with Keys of different length, as well as for items towards the beginning, middle and end of the list. In all cases, the Dictionary showed better performance (speed). Depending on the size of the key, and to which end of the list that item was located, the difference in speed varied, but I was able to clock anywhere between 10% to 40% faster lookups on the Dictionary.</p>
<p>Also, as I mentioned before, besides being faster, the Dictionary showed more consistent result while the Hashtable's speed varied over multiple runs. Don't ask me why.</p>
<p>Bottom line, there is no reason not to use the Dictionary over the concern of speed. Now I know.</p>http://www.haiders.net/post/Hashtable-vs-Generic-Dictionary-Performance-Comparison.aspx
Haiderhttp://www.haiders.net/post/Hashtable-vs-Generic-Dictionary-Performance-Comparison.aspx#commenthttp://www.haiders.net/post.aspx?id=881fa647-8fe6-4199-b61b-c7a49cc2195fFri, 15 Jan 2010 05:03:00 -1100.netHaiderhttp://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=881fa647-8fe6-4199-b61b-c7a49cc2195f29http://www.haiders.net/trackback.axd?id=881fa647-8fe6-4199-b61b-c7a49cc2195fhttp://www.haiders.net/post/Hashtable-vs-Generic-Dictionary-Performance-Comparison.aspx#commenthttp://www.haiders.net/syndication.axd?post=881fa647-8fe6-4199-b61b-c7a49cc2195fFind if a Collection (IEnumerable) has any Item<p>
If a Method or Property returns IEnumerable or Inumerable&lt;T&gt; Types, the only thing that is inherently possible on them is to Loop through (foreach{}). Sometimes it helps to know if the Collection has any items, without having to initiate a loop. The <a href="http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx">IEnumerable</a> Interface is bare minimum for a collection and does not expose any properties at all. <a href="http://msdn.microsoft.com/en-us/netframework/aa904594.aspx">LINQ</a> provides a convenient Extension Method called <a href="http://msdn.microsoft.com/en-us/library/bb337697.aspx">Any()</a>, that you can call on any IEnumerable Type. Internally, this Method checks if any item is available in the Collection using the following code:
</p>
<script type="syntaxhighlighter" class="brush:c-sharp"><![CDATA[
//Framework's implementation of the IEnumerable.Any() Extension Method
public static bool Any<TSource>(this IEnumerable<TSource> source)
{
if (source == null)
{
throw Error.ArgumentNull("source");
}
using (IEnumerator<TSource> enumerator = source.GetEnumerator())
{
if (enumerator.MoveNext())
{
return true;
}
}
return false;
}
]]>
</script>
<p>
If you do not have LINQ in the project, or want a shortcut of this without having to call the Any() method, here is an alternative:
</p>
<script type="syntaxhighlighter" class="brush:c-sharp">
//Lets say the IEnumerable Collection is in a variable called products
bool hasItems = ((IEnumerable)products).GetEnumerator().MoveNext();
//Not as neat looking as calling the products.Any() Method!
</script>
<p>
However, if we know the underlying Type of the Collection also implements <a href="http://msdn.microsoft.com/en-us/library/system.collections.icollection.aspx">ICollection</a> Interface, we can simply cast it to ICollection and check the Count Property:
</p>
<pre name="code" class="brush:c-sharp">
bool hasItems = ((ICollection)products).Count > 0;
</pre>
<p>
The Count Property is maintained very efficiently by the Framework Collection classes. It would be preferable than having to call any Method.
</p>
<p>
Combining these two approach, here is another Extension Method that can be used for the same purpose:
</p>
<pre name="code" class="brush:c-sharp">
//An alternate to the IEnumerable.Any() Method
public static bool HasItem(this IEnumerable source)
{
if (source == null)
{
throw new ArgumentNullException("source");
}
if( source is ICollection)
return ((ICollection)source).Count > 0;
else
return source.GetEnumerator().MoveNext();
}
</pre>
<p>
Ideally, an IEnumerator should be wrapped within a <a href="http://msdn.microsoft.com/en-us/library/yh598w02%28VS.80%29.aspx">using{...}</a> block, like it is shown in the Framework's implementation of Any() Method above. Also note that there is an overload of the <a href="http://msdn.microsoft.com/en-us/library/bb534972.aspx">IEnumerable.Any()</a> Method. It takes a Func&lt;TSource, bool&gt; and returns true only if any of the Collection items match the given condition. Here is an example:
</p>
<pre name="code" class="brush:c-sharp">
//Lets assume there is a variable called products, with a collection of Product objects
//Product object has a boolean property called OnBackOrder
//We want to find out if any of the products is on back order
bool IsAnyOnBackorder = products.Any(p => p.OnBackOrder);
</pre>
http://www.haiders.net/post/Find-if-a-Collection-(IEnumerable)-has-any-Item.aspx
Haiderhttp://www.haiders.net/post/Find-if-a-Collection-(IEnumerable)-has-any-Item.aspx#commenthttp://www.haiders.net/post.aspx?id=2943c179-b550-487b-a3fd-94b8af8553a5Fri, 08 Jan 2010 09:51:00 -1100.netHaiderhttp://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=2943c179-b550-487b-a3fd-94b8af8553a520http://www.haiders.net/trackback.axd?id=2943c179-b550-487b-a3fd-94b8af8553a5http://www.haiders.net/post/Find-if-a-Collection-(IEnumerable)-has-any-Item.aspx#commenthttp://www.haiders.net/syndication.axd?post=2943c179-b550-487b-a3fd-94b8af8553a5ReadOnlyCollection for Read Only Collection Properties<p>Sometimes there are properties on Objects that are meant to provide a Read Only set of items. For example, lets say the <b>Customer</b> Object has a <b>LoginHistory</b> Property that is meant to be Read Only. Internally the values may be populated in a List&lt;T&gt;, but returning the List&lt;T&gt; would make the Collection Read/Write. One solution is to make the property an <a href="http://msdn.microsoft.com/en-us/library/9eekhta0.aspx">IEnumerable&lt;T&gt;</a>. Here is an example:
</p>
<script type="syntaxhighlighter" name="code" class="brush:c-sharp"><![CDATA[
public IEnumerable<LoginEntry> LoginHistory
{
get
{
List<LoginEntry> _loginHistory = new List<LoginEntry>();
//Now... populate the list for this Customer
return _loginHistory;
//Since List<T> implements IEnumerable<T>, it works just fine
}
}
]]></script>
<p>
While this approach exposes a Read Only Collection, there are a couple of problems with the IEnumberable&lt;T&gt; interface. On the other side of the code, it is now difficult to know how many items are there in this collection, or if there is any item at all (Except with the help of Linq's <a href="http://msdn.microsoft.com/en-us/library/system.linq.enumerable.any.aspx">Any()</a> and <a href="http://msdn.microsoft.com/en-us/library/bb535181.aspx">Count()</a> Extension Methods)! Having a Count Property would be helpful. Besides, the Collection is not really Read Only in this case. You could Cast this LoginHistory Property to a List&lt;T&gt; and Add Items to it:
</p>
<script type="syntaxhighlighter" name="code" class="brush:c-sharp"><![CDATA[
Customer customer = Customer.FromID(1234); //For example
(customer.LoginHistory as List<LoginEntry>).Add(new LoginEntry());
//It works!
]]></script>
<p>A better approach would be to return the generic <a href="ReadOnlyCollection<T>">ReadOnlyCollection&lt;T&gt;</a> instead if IEnumerable&lt;T&gt;. This class is in the <a href="http://msdn.microsoft.com/en-us/library/system.collections.objectmodel.aspx">System.Collections.ObjectModel</a> Namespace, and List&lt;T&gt; has a Method called <a href="http://msdn.microsoft.com/en-us/library/e78dcd75%28VS.85%29.aspx">AsReadOnly()</a> that returns a ReadOnlyCollection&lt;T&gt; Object. The LoginHistory Property would be implemented as follows:</p>
<script type="syntaxhighlighter" name="code" class="brush:c-sharp"><![CDATA[
public System.Collections.ObjectModel.ReadOnlyCollection<LoginEntry> LoginHistory
{
get
{
List<LoginEntry> _loginHistory = new List<LoginEntry>();
//Populate the list for this Customer
return _loginHistory.AsReadOnly();
}
}
]]></script>
<p>
There is a <b>Count</b> Property now, and <b>Customer.LoginHistory</b> is truly Read Only!
</p>http://www.haiders.net/post/ReadOnlyCollection-for-Read-Only-Collection-Properties.aspx
Haiderhttp://www.haiders.net/post/ReadOnlyCollection-for-Read-Only-Collection-Properties.aspx#commenthttp://www.haiders.net/post.aspx?id=36c0c99a-83ff-4b78-abe4-1dca8c0bce24Wed, 06 Jan 2010 10:04:00 -1100.netHaiderhttp://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=36c0c99a-83ff-4b78-abe4-1dca8c0bce2423http://www.haiders.net/trackback.axd?id=36c0c99a-83ff-4b78-abe4-1dca8c0bce24http://www.haiders.net/post/ReadOnlyCollection-for-Read-Only-Collection-Properties.aspx#commenthttp://www.haiders.net/syndication.axd?post=36c0c99a-83ff-4b78-abe4-1dca8c0bce24Read Only DataContext in Linq to SQL<p>A Linq to SQL <a href="http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.aspx">DataContext</a> by default tracks all changes to Entities/Objects that are retrieved through it. In order to track the changes, the DataContext subscribes to the Events exposed by <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanging.aspx">INotifyPropertyChanging</a> Interface and <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx">INotifyPropertyChanged</a> Interface of each Entity.</p>
<p>Often the result of a query is not intended for modification. For example, when a search query returns potentially hundreds or thousands of items to be displayed in a paged list, subscribing to Events of each item is unnecessary and will affect performance.</p>
<p>The solution to this is turning Object Tracking off on the DataContext, before executing the read only queries. It is accomplished by setting <a href="http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.objecttrackingenabled.aspx">ObjectTrackingEnabled</a> = false. Here is an example:
</p>
<pre name="code" class="brush:c-sharp">
//Assuming the name of our custom DataContext is dbContext
dbContext context = new dbContext();
context.ObjectTrackingEnabled = false;
//Now query the database as usual
var q = context.Customers.Where(c => c.Name.StartsWith("John"));
</pre>
<p>Since it is very common to perform Read Only Queries like this. I prefer to have a static Property on the DataContext that returns a Read Only instance. This way setting ObjectTrackingEnabled every time can be avoided. Here is the ReadOnly static property:</p>
<pre name="code" class="brush: c-sharp">
/* Author: Abu Haider
/* January 2010
/* www.haiders.net
/* Adds a static method on a DataContext to return a ReadOnly instance */
public partial class dbContext //Your DataContext Class
{
public static dbContext ReadOnly
{
get { return new dbContext() { ObjectTrackingEnabled = false }; }
}
}
/* That's it */
</pre>
<p> Now the Read only instance can be queried as follows:</p>
<pre name="code" class="brush: c-sharp">
var q = dbContext.ReadOnly.Customers.Where( c => c.Name.StartsWith("John"));
</pre>
<p>
No more having to create new instances of the DataContext and explicitly setting the ObjectTrackingEnabled. Besides, I think it also makes the code more readable by clearly indicating that the result set is intended for Read Only operations.
</p>http://www.haiders.net/post/Read-Only-DataContext-in-Linq-to-SQL.aspx
Haiderhttp://www.haiders.net/post/Read-Only-DataContext-in-Linq-to-SQL.aspx#commenthttp://www.haiders.net/post.aspx?id=4ccf2b30-4a80-4b97-975e-8a89be21f6e9Mon, 04 Jan 2010 11:01:00 -1100.netHaiderhttp://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=4ccf2b30-4a80-4b97-975e-8a89be21f6e922http://www.haiders.net/trackback.axd?id=4ccf2b30-4a80-4b97-975e-8a89be21f6e9http://www.haiders.net/post/Read-Only-DataContext-in-Linq-to-SQL.aspx#commenthttp://www.haiders.net/syndication.axd?post=4ccf2b30-4a80-4b97-975e-8a89be21f6e9ASP.NET - Download File with C#<p>I have seen many code snippets showing how to download a file and save to local disk with C#. Some of them are pretty long. But since the release of ASP.NET 2.0, downloading file is really a matter of one line of code. Here is an example:</p>
<code>
<pre name="code" class="brush: c-sharp">
/* Author: Abu Haider */
/* Dec 2009 */
/* Downloading and saving a file to local disk */
/* www.haiders.net */
new System.Net.WebClient().DownloadFile("http://example.com/file.zip", "c:\downloads\myfile.zip");
/* And thats all */
</pre>
</code>
<p>The <a href="http://msdn.microsoft.com/en-us/library/system.net.webclient.aspx" target="_blank">WebClient</a> class has several handy <a href="http://msdn.microsoft.com/en-us/library/system.net.webclient_methods.aspx" target="_blank">Methods</a> for downloading resources from the Web. The <a href="http://msdn.microsoft.com/en-us/library/system.net.webclient.downloadfile.aspx" target="_blank">DownloadFile</a> Method takes only two arguments, the Uri of the file to download, and the FileName where to save the file. If the file already exists, it will be overwritten without any warning!</p>
<p>The code sample above is not specific to ASP.NET, you can use it in Console applications or WinForms applications as well.</p>
<p>Since the FileName parameter expects complete local path, in an ASP.NET Website you may have to translate a relative path to a complete file system path with Server.MapPath().</p>
<code>
<pre name="code" class="brush: c-sharp">
/* Author: Abu Haider */
/* Dec 2009 */
/* Downloading and saving a file to local disk */
/* To be used in an ASP.NET Page */
/* www.haiders.net */
string url = "http://example.com/file.zip";
string fileName = Server.MapPath("~/downloads/file.zip");
new System.Net.WebClient().DownloadFile(url, fileName);
</pre>
</code>
<p>Another handy function on the WebClient is <a href="http://msdn.microsoft.com/en-us/library/system.net.webclient.downloadstring%28VS.80%29.aspx" target="_blank">DownloadString(Uri)</a>. It downloads the target Web Page and returns it as a String.</p>
http://www.haiders.net/post/ASPNET-Download-File-with-C-Sharp.aspx
Haiderhttp://www.haiders.net/post/ASPNET-Download-File-with-C-Sharp.aspx#commenthttp://www.haiders.net/post.aspx?id=0b9b6c6a-d127-41fe-8af4-a1cda6f0af32Fri, 18 Dec 2009 05:24:00 -1100.netHaiderhttp://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=0b9b6c6a-d127-41fe-8af4-a1cda6f0af3256http://www.haiders.net/trackback.axd?id=0b9b6c6a-d127-41fe-8af4-a1cda6f0af32http://www.haiders.net/post/ASPNET-Download-File-with-C-Sharp.aspx#commenthttp://www.haiders.net/syndication.axd?post=0b9b6c6a-d127-41fe-8af4-a1cda6f0af32PLINQO - Enhanced Linq2SQL<p>What is the biggest limitation of Linq2sql?</p>
<p>Is that the lack of Many to Many relationships, or the inability to sync the designer without having to drop and re-create entities? Or may be that batch delete and update operations are not built in?</p>
<p>These, and many other commonly used features are added to Linq2SQL by <a href="http://plinqo.com" target="_blank">PLINQO</a></p>
<p>PLINQO is a set of <a href="http://www.codesmithtools.com" target="_blank">CodeSmith</a> templates that provide many enhancements to Linq to SQL. Some of the features include:</p>
<ul>
<li>Resynchronization of dbml with database changes without having to loose customization on the dbml</li>
<li>Support for batch update and delete</li>
<li>Support for multiple result sets</li>
<li>Query extension methods supporting direct insert, update etc. or via entity manager classes</li>
<li>MetaData class generation</li>
<li>Auditing</li>
</ul>
<p>There are also some CodeSmith specific feature that I am not very familiar with.</p>
<p>If you are looking for workarounds to some of the biggest limitations of Linq to SQL, <a href="http://www.plinqo.com" target="_blank">PLINQO</a> is worth a look.</p>
<p>&nbsp;</p>http://www.haiders.net/post/PLINQO-Enhanced-Linq2SQL.aspx
Haiderhttp://www.haiders.net/post/PLINQO-Enhanced-Linq2SQL.aspx#commenthttp://www.haiders.net/post.aspx?id=1db437f9-0562-4556-ae81-287aa2ec3acdThu, 17 Dec 2009 04:39:00 -1100.netToolsHaiderhttp://www.haiders.net/pingback.axdhttp://www.haiders.net/post.aspx?id=1db437f9-0562-4556-ae81-287aa2ec3acd8http://www.haiders.net/trackback.axd?id=1db437f9-0562-4556-ae81-287aa2ec3acdhttp://www.haiders.net/post/PLINQO-Enhanced-Linq2SQL.aspx#commenthttp://www.haiders.net/syndication.axd?post=1db437f9-0562-4556-ae81-287aa2ec3acd