<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>ASP.NET</title>
        <link>http://blogs.aspcode.net/category/1.aspx</link>
        <description>ASP.NET</description>
        <language>en-US</language>
        <copyright>Stefan Holmberg</copyright>
        <managingEditor>stefan.holmberg@systementor.se</managingEditor>
        <generator>Subtext Version 1.9.0.27</generator>
        <item>
            <title>Switching to MySQL in 2008</title>
            <link>http://aspcode.net/archive/2008/01/01/284.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;My directions for 2008&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;I will do some major changes when it comes to technology in 2008. Being an independent consultant (contractor) is not&lt;br /&gt;
all about being totally independent, of course. As in any business you need to adapt and be able to offer what your clients need. Not what you might consider the best/optimal (you can of course always come with  suggestions), but in the end the client makes the decision about which platform and solution to choose, and things like existing  ardware/software/knowledge often plays an important role in it. Therefore I have been doing a lot of ASP.NET, C# against MSSQL Server. However, if it was just up to me, and not taking any old luggage into consideration, I'd actually switch the MS SQL backend to MySQL!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Which is the direction I will try to take for this year. Lately I've been doing a image gallery system for a client, and since I had the freedom to choose the architechture I went for ASP.NET, C# and MySQL. Even though I live and bread MS SQL server and sps I can't say I made the wrong choice. Yes, some initial problems, no doubt,  but, I must say there are certain things making MySQL the optimal database engine for a web solution.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;+ price of course. Nothing more to say. The SQL 2005 Express limitations needs to be removed ASAP in my opinion, cause to me it's very much a developers database...&lt;/font&gt;&lt;/p&gt;
&lt;font face="Arial"&gt;
&lt;p&gt;&lt;br /&gt;
+ built in full text index. I have never needed full text index until a project I entered a few months ago. I looked at getting it up and running on my SQL 2005 Express development box. However, an extra download of 250 MB was needed. I also *think*&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;br /&gt;
+ paging. My favorite! This is SOOO typical a web application. Implementing paging in MSSQL is not fun at all. Getting acceptable performance out of it is possible, but coding hard to generlize and reuse.  In MySQL it's a matter of adding LIMIT X,Y to the end of the select statement. And not to talk about SQL_CALC_FOUND_ROWS. Cause typically you need to get the page of rows  but also the total number of rows, as if we were not using the limiting. Typically you do&lt;br /&gt;
two queries, one select count(*)... and one select * limit x,y. But with SQL_CALC_FOUND_ROWS you get that anyway. &lt;br /&gt;
Yes, might not be SQL standard, but I don't care. I don't get paid by creating the most standardized solution, I get paid by delivering a solution with good performance and preberable a low footprint. I have published an article on this, &lt;a href="http://www.aspcode.net/ASPNET-MySQL-and-paging.aspx"&gt;ASP.NET, MySQL and efficient paging&lt;/a&gt;.&lt;br /&gt;
    &lt;/font&gt;&lt;/p&gt;
&lt;font face="Arial"&gt;
&lt;p&gt;On the minus side:&lt;br /&gt;
- Microsoft default medium trust configuration. Medium trust is a good thing, it's not about that, I just feel that a lot of webhosts has no idea about what it's about. They take the default configuration (recommended by Microsoft) and uses that. And the default medium trust configuration only allows for MSSQL database access...I've had numerous of conversations with webhosts about it and many, I say many, still doesn't understand  what it's about. Sure they advertise on their website of supporting asp.net, mssql, mysql etc, but still when firing up your ASP.NET 2.0 app you get the &lt;br /&gt;
ecurity exception cause they are not allowing MySQL from medium trust...A lot of respectable webhosts has indeed made the changes needed, &lt;a target="_top" href="http://www.jdoqocy.com/click-2278671-10378494"&gt;GoDaddy&lt;/a&gt; &lt;img height="1" alt="" width="1" border="0" src="http://www.tqlkg.com/image-2278671-10378494" /&gt; is one of them. Hat off for them!&lt;/p&gt;
&lt;p&gt;AdMentor PRO will always have a SQL Server driver and I will still do a LOT of SQL server gigs, since I have a lot of clients using it, but for myself and my own servers I will make the transition.&lt;/p&gt;
&lt;p&gt;    &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
&lt;/p&gt;
&lt;/font&gt; &lt;/font&gt;&lt;font face="Arial"&gt;- I might be wrong here - SQL2005 installs some extra services and stuff. In MySQL it was just a matter of specifying it in the create table statement and start querying...You do need a decent stemmer though, making words in normal form.&lt;/font&gt;&lt;img src="http://aspcode.net/aggbug/284.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2008/01/01/284.aspx</guid>
            <pubDate>Tue, 01 Jan 2008 21:48:56 GMT</pubDate>
            <comments>http://aspcode.net/archive/2008/01/01/284.aspx#feedback</comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/284.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/284.aspx</trackback:ping>
        </item>
        <item>
            <title>More about code structure</title>
            <link>http://aspcode.net/archive/2007/08/30/280.aspx</link>
            <description>&lt;p&gt;Long time, no blogging. Sorry about that, but I have had a LONG summer vacation. Really nice.&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Lately I have actually been doing some Wordpress stuff. What started out with some simple customizations for &lt;br /&gt;
a client quickly turned into some deep WP hacking. I can say this, I am really impressed with the product. As a &lt;br /&gt;
pure publishing tool I doubt there is nothing beating it. If you can live with using Apache (well, technically IIS is possible, but when doing some url rewrites etc, which you most certainly want in Wordpress, it's a lot easier with Apache) . You also have to live with being tied to PHP and MySQL, of course.  &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;My first reflection after a few weeks of PHP hacking: I miss the ASP coding days in a way. If you don't know it,&lt;br /&gt;
coding in ASP and PHP are very much alike. You typically insert some PHP/ASP tags inside your HTML and just upload the page. Done... It simply allows for quick coding and quick results. While you *could* program the same way with ASP.NET there is almost like an unwritten law saying &lt;a href="http://blogs.aspcode.net/archive/2006/09/15/11.aspx"&gt;you should use code behind&lt;/a&gt; (what moron wrote that - oh, right, it was me...), you should create  multitiered (three layers are an absolute minimum, you know) applications etc. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;And I agree, myself I *almost always* do use code behind, I almost always separate business layer/database layer/GUI in different dll:s etc and I really do believe in that model. But lets face it - we must question ourselves - WHY should &lt;br /&gt;
we separate our layers? And is it possible to achieve in some other way?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Take code reuse for one example. If you implement your FooBar business class inside a dll it means your ASP.NET app as well as your Windows app as well as your console batch routine etc can use it. Fine! But that could also be done with ASP and PHP, not involving any dll:s, but simply including a the FooBar.php/asp file.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Cause, back to Wordpress now, I am amazed over how well organized that code project is. Using a "simple" untyped language they have implemented a model which still allows for event handling etc, third party plugin registration etc.&lt;br /&gt;
Yes, it's all string based, meaning you register a hook for say "wp_footer" (in this example your function will be called each time the page footer is being rendered) - but it's still really easy because of the structure. The "correct" ASP.NET equivalent would be having the server app define an interface and the plugin implementing it. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;To finish this ranting off - I will not leave my "structured way" of ASP.NET coding, it works really well for me,&lt;br /&gt;
but the Wordpress work I have done has kind of opened my eyes a little. I kind of have this idea "best practice is not what someone else says is best practice - best practice is what best for me" (maybe a luxury of being self employed being able to define my own models) so therefore I think it's important to think always try out new and different things. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;/font&gt; &lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;/font&gt; &lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;br /&gt;
    &lt;/font&gt;&lt;/p&gt;&lt;img src="http://aspcode.net/aggbug/280.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/08/30/280.aspx</guid>
            <pubDate>Thu, 30 Aug 2007 08:20:30 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/08/30/280.aspx#feedback</comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/280.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/280.aspx</trackback:ping>
        </item>
        <item>
            <title>Adding controls and pages to a CMS</title>
            <link>http://aspcode.net/archive/2007/06/20/275.aspx</link>
            <description>&lt;p&gt;&lt;font face="Arial"&gt;I have talked earlier on codebedind vs inline code and this topic touches that area.&lt;br /&gt;
&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;The problem:&lt;br /&gt;
Client is running a website, using a CMS they don't have the source for, but rather a binary license. Now they wanted to integrate &lt;br /&gt;
a) a control reading from database and showing some stuff&lt;br /&gt;
and&lt;br /&gt;
b) a 404 handler (preferably ASPX). It should update a database&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;If you know me you know about me being a "need of control" freak. I'll take my own code over 3rd party binary components    any day a week, if possible. So, I felt a little lost. Then it struck me, it's so easy actually.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;For a)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;Create the control - nothing special about it. Lets say it's called RefController.&lt;br /&gt;
Then we can add the dll to the bin directory - and it to the webpage&lt;br /&gt;
&amp;lt;%@ Register TagPrefix="RefCtl" Namespace="RefController12" Assembly="RefController" %&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;bla bla html stuff&lt;br /&gt;
&amp;lt;RefCtl:RefControl id="hhh2222"  runat="server" The Property="thevalue"&amp;gt;&amp;lt;/RefCtl:RefControl&amp;gt;&lt;br /&gt;
bla bla html stuff&lt;/font&gt;&lt;/p&gt;
&lt;font face="Arial"&gt;
&lt;p&gt;And next time the page is accessed our control will be used like anyother control on the page.  &lt;br /&gt;
Even though we havn't recompiled the main web application.&lt;/p&gt;
&lt;p&gt;As for b)&lt;br /&gt;
This is really cool if you ask me. Cause you can of course also add ASPX pages to a website without needing to&lt;br /&gt;
recompile the webapp.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
I created a file 404handler.aspx and out all source as inline:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
&amp;lt;%@ Page language="c#"   %&amp;gt;&lt;br /&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" &amp;gt;&lt;br /&gt;
&amp;lt;HTML&amp;gt;&lt;br /&gt;
 &amp;lt;HEAD&amp;gt;&lt;br /&gt;
  &amp;lt;title&amp;gt;404Handler&amp;lt;/title&amp;gt;&lt;br /&gt;
  &amp;lt;meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"&amp;gt;&lt;br /&gt;
  &amp;lt;meta name="CODE_LANGUAGE" Content="C#"&amp;gt;&lt;br /&gt;
  &amp;lt;meta name="vs_defaultClientScript" content="JavaScript"&amp;gt;&lt;br /&gt;
  &amp;lt;meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"&amp;gt;&lt;br /&gt;
 &amp;lt;/HEAD&amp;gt;&lt;br /&gt;
 &amp;lt;body MS_POSITIONING="GridLayout"&amp;gt;&lt;br /&gt;
  &amp;lt;form id="Form1" method="post" runat="server"&amp;gt;&lt;br /&gt;
  &amp;lt;script language="C#" runat="server"&amp;gt;&lt;br /&gt;
  protected void Page_Load(object sender, System.EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
   string DBConn = "Server=dbconn";&lt;br /&gt;
   string sPage = Request.QueryString["aspxerrorpath"];&lt;br /&gt;
   if ( sPage == "favicon" )&lt;br /&gt;
    return;&lt;br /&gt;
    &lt;br /&gt;
   string sExt = System.IO.Path.GetExtension(sPage).Replace(".", "").ToLower();&lt;br /&gt;
   if ( sExt.Length == 0 )&lt;br /&gt;
    return;&lt;br /&gt;
   if ( sExt != "aspx" &amp;amp;&amp;amp; sExt != "php" &amp;amp;&amp;amp; sExt != "asp" &amp;amp;&amp;amp; sExt != "html" &amp;amp;&amp;amp; sExt != "html" )&lt;br /&gt;
    return;&lt;br /&gt;
   if( sPage != "" )&lt;br /&gt;
   {&lt;br /&gt;
    //Add to database&lt;br /&gt;
   }&lt;br /&gt;
   else&lt;br /&gt;
   {&lt;br /&gt;
   }&lt;/p&gt;
&lt;p&gt;   sPage = "http://www.wwwwwwwwww.com/hello.aspx" &lt;br /&gt;
   Response.Redirect(sPage, true );&lt;br /&gt;
   return;&lt;br /&gt;
   &lt;/p&gt;
&lt;p&gt;  }&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
Pay NO attention to the actual code, what I doing on Page_Load is of no matter. &lt;br /&gt;
The cool thing is that we, by this technique, are able to create independent components and&lt;br /&gt;
pages and just throw them into a site whenever needed. Regardless of what CMS (well, it rather be &lt;br /&gt;
ASP.NET based of course). &lt;/p&gt;
&lt;/font&gt;&lt;img src="http://aspcode.net/aggbug/275.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/06/20/275.aspx</guid>
            <pubDate>Wed, 20 Jun 2007 13:37:49 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/06/20/275.aspx#feedback</comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/275.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/275.aspx</trackback:ping>
        </item>
        <item>
            <title>New stuff on my sites</title>
            <link>http://aspcode.net/archive/2007/06/19/265.aspx</link>
            <description>&lt;p&gt;Just a "new stuff" article. I've been working really hard lately which hasn't given me much time to publish stuff. But today I made some progress:&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;a href="http://www.programmingado.net"&gt;search engine at programmingado net&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a id="_ctl0_repWhat__ctl2_hlViewQuestionLink" rel="bookmark" href="http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/ASP.NET-2.0/Simple-ASP.NET-SOA-architecture_article_473.aspx"&gt;Simple ASP.NET SOA architecture&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a id="_ctl0_repWhat__ctl1_hlViewQuestionLink" rel="bookmark" href="http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/ASP.NET-2.0/Two-layer-cache-mechanism_article_474.aspx"&gt;Two layer cache mechanism&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The two articles are worth reading I'd say. In short I needed some performance improvements from my laptop, thounsands of sequential calls to do  DNS lookups were dead slow because of network latency over the wireless network. So I created a small ASP.NET page, uploaded it to my webserver (connected to Internet with 100MB fiber line), and sent a batch to it from my client. All DNS calls were then made from the server and the result sent back as a singe batch. Really improved the overall performance!&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://aspcode.net/aggbug/265.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/06/19/265.aspx</guid>
            <pubDate>Tue, 19 Jun 2007 10:55:28 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/06/19/265.aspx#feedback</comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/265.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/265.aspx</trackback:ping>
        </item>
        <item>
            <title>Posting to blogs with C# code</title>
            <link>http://aspcode.net/archive/2007/06/12/264.aspx</link>
            <description>&lt;p&gt;If you have a couple of blogs you soon get tired of logging in (oh wait, first find the right userid and password) and then clicking some menu buttons to get to the post page.&lt;/p&gt;
&lt;p&gt;So I have started to look into a Windows client (create my own of course, heck I'm a developer, am I not) for that. It has been some "fun" trying to get the posting API:s to work and today I added a new one to the list - LiveJournal. I never even knew about it (don't know much more than wordpress and blogspot to be honest) and it was not too easy to get the posting right from the C# client.&lt;/p&gt;
&lt;p&gt;However, a quick and dirty solution, turning into concatenating XML parts into a long string, hehe - well not  big biggest moment of pride - but who cares about cred and "slick" solutions...I prefer working solutions.&lt;/p&gt;
&lt;p&gt;Read more and get the code here&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;a href="http://www.aspcode.net/articles/l_en-US/t_default/.NET/Networking/C_-code-to-post-to-Livejournal_article_470.aspx"&gt;C# code for posting to livejournal&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://aspcode.net/aggbug/264.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/06/12/264.aspx</guid>
            <pubDate>Tue, 12 Jun 2007 14:44:03 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/06/12/264.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/264.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/264.aspx</trackback:ping>
        </item>
        <item>
            <title>AdMentor.NET and textads</title>
            <link>http://aspcode.net/archive/2007/05/04/247.aspx</link>
            <description>&lt;h2&gt;Sometimes everything just falls into place.&lt;/h2&gt;
&lt;p&gt;I have been on a business trip and it involved some hours waiting on the airport for my flight - so I just took up some papers and a pencil and starting scetching on how I wanted textads to be integrated into AdMentor PRO. I soon came up with the idea(s) that &lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;targetting for a textad should be the same mechanism as for a "usual" ad. I.e zoning, max clicks, max impressions, random/even distribution as well as the new advanced filtering such as IP/country filter, browser etc &lt;/li&gt;
    &lt;li&gt;you should then "enable" textads for a certain adposition &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img height="353" alt="" width="620" border="1" src="/blogs/images/aspcode_net/blogs/CropperCapture[12].Png" /&gt;&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;different templates could be used - you just create a xml/html template and place it into the /textadtemplate/ directory and the system picks it up and makes it available for usage &lt;/li&gt;
    &lt;li&gt;a textad is a banner of type "Textad" so now you can add such an ad as well &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img height="102" alt="" width="643" border="1" src="/blogs/images/aspcode_net/blogs/CropperCapture[13].Png" /&gt;&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;for each textad you can set click url, a header and description &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img height="353" alt="" width="620" border="1" src="/blogs/images/aspcode_net/blogs/CropperCapture[11].Png" /&gt;&lt;/p&gt;
&lt;p&gt;The good thing about this scheme is that it is doesn't need you to do any changes to the admentor call code you already have in all your webpages.&lt;/p&gt;
&lt;p&gt;You just create some text ads, enable it for an adposition and it will be rotate all banners (regular and textads) for the current zone. Meaning you will be able to show image/html/flash ads AND textads on the  same spot. Using the same admentor code.&lt;/p&gt;
&lt;p&gt;Here is an example on how it looks on a dummy page:&lt;/p&gt;
&lt;p&gt;&lt;img height="103" alt="" width="531" border="1" src="/blogs/images/aspcode_net/blogs/CropperCapture[9].Png" /&gt;&lt;/p&gt;
&lt;p&gt;What made me SO happy was that I had plabbed to work with it for THRE whole days - but believe it or not, today I have one of those moments - as it needed some major changes in sp:s, DAL  interface, MySQL+MSSQL DAL, business layer, GUI, banner serving engine, cache dependency for template files and XML eading of the same etc I wrote code for 2 hours without even trying to compile - and the first time I got ZERO compilation errrors. And even better - it worked as well!!! I have since then made some minor changes, and even found and fixed out one major flaw in my implementation, but still - tomorrow is saturday and I am really thinking of buying some lottery tickets :)&lt;/p&gt;
&lt;p&gt;Finally - I know you are all wondering when it will be available to you - well, 15th of May 2007 is the date set. And keeping that date sure is looking good as of now.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://aspcode.net/aggbug/247.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/05/04/247.aspx</guid>
            <pubDate>Fri, 04 May 2007 21:58:35 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/05/04/247.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/247.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/247.aspx</trackback:ping>
        </item>
        <item>
            <title>ASP.NET 2.0 and medium trust</title>
            <link>http://aspcode.net/archive/2007/03/14/242.aspx</link>
            <description>&lt;p&gt;I have started creating ASP.NET 2.0 versions of my commercial products, AdMentor and KBMentor - and one of the the most important goals I have is having them run under medium trust. &lt;/p&gt;
&lt;p&gt;Here I have published some of my findings:&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;a href="http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/ASP.NET2.0/Medium-trust/category_69.aspx"&gt;http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/ASP.NET2.0/Medium-trust/category_69.aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;I have also created a GPL project with the goal to offer a recompiled version of the official MySQL.Data.DLL driver - just adding the [assembly: AllowPartiallyTrustedCallers()]  attribute so we don't get the "&lt;strong&gt;Additional information: That assembly does not allow partially trusted callers" &lt;/strong&gt;error.&lt;/p&gt;
&lt;p&gt;Information and downloads for that project is here &lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&lt;a href="http://www.programmingado.net/l_en-US/t_default/MySQL/Medium-trust-ADO.NET-driver/category_10.aspx"&gt;http://www.programmingado.net/l_en-US/t_default/MySQL/Medium-trust-ADO.NET-driver/category_10.aspx&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://aspcode.net/aggbug/242.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/03/14/242.aspx</guid>
            <pubDate>Wed, 14 Mar 2007 13:06:05 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/03/14/242.aspx#feedback</comments>
            <slash:comments>4</slash:comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/242.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/242.aspx</trackback:ping>
        </item>
        <item>
            <title>ASP.NET and Ajax - Checkboxcontroller</title>
            <link>http://aspcode.net/archive/2007/02/28/241.aspx</link>
            <description>&lt;p&gt;This month (february) I have been working really hard on a clients project creating a ajax enabled website, and the hard part is not how to get it working the way I want but rather to create some nice looking (and reusable) extender controls from my javascript behaviours.&lt;/p&gt;
&lt;p&gt;I have published a free extender control available for download - and the purpose of it is to ease parent/child checkboxes - you know "Select/Deselect all". The &lt;a href="http://www.ajaxandasp.net/a-12/The-ASPCodeExtender-CheckboxController.aspx"&gt;Checkbox extender control&lt;/a&gt; lets you also define an associated label - so that when all child checkboxes are selected the label for the parent switches to "Deselect all" - or whatever (user defined).&lt;/p&gt;
&lt;p&gt;I have turned to the &lt;a href="http://www.ajaxandasp.net/a-1/Ajax-Control-Toolkit.aspx"&gt;Ajax Control Toolkit&lt;/a&gt; to aid my control crafting, usually I don't like adding ANY dependency at all to my controls making deployment  as easy and small as possible but honestly - this one looks worth it full 1 MB.&lt;/p&gt;
&lt;p&gt;Please download - but first - don't miss the &lt;a href="http://demos.ajaxandasp.net/check1.aspx"&gt;demo&lt;/a&gt;&lt;/p&gt;&lt;img src="http://aspcode.net/aggbug/241.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/02/28/241.aspx</guid>
            <pubDate>Wed, 28 Feb 2007 22:08:52 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/02/28/241.aspx#feedback</comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/241.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/241.aspx</trackback:ping>
        </item>
        <item>
            <title>Need to restructure the site</title>
            <link>http://aspcode.net/archive/2007/02/20/240.aspx</link>
            <description>&lt;p&gt;I have found it necessery to restructure the ASPCode.net site. While I in theory believe the article structuring is pretty decent and not too hard to follow, in practice you need too many clicks to get where you want to go, &lt;/p&gt;
&lt;p&gt;So I tiik the easy way out - registered some new domain names and have created some totally new sites. Here are my ideas on how to split the content between my sites &lt;/p&gt;
&lt;p&gt;ASPCode.net - &lt;a href="http://www.aspcode.net"&gt;asp/asp.net scripts and articles&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Programmingado.net - &lt;a href="http://www.programmingado.net"&gt;database related articles&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;AjaxAndASP.net - &lt;a href="http://www.ajaxandasp.net"&gt;asp.net and Microsoft Ajax&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;One thing that has been invaluable to me now when I start to move content is a url rewriter tool - &lt;a href="http://cheeso.members.winisp.net/IIRF.aspx"&gt;Ionic's ISAPI Rewrite Filter&lt;/a&gt;. This lets me, by just changing some ini files, redirect (and flagging as 301 permanently if desired) requests to some articles to my new domains.&lt;/p&gt;
&lt;p&gt;While it's not hard to do a &lt;a href="http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/ASP.NET-301-redirect_article_274.aspx"&gt;301 redirect with ASP.NET code&lt;/a&gt; I simply didn't feel like needing to change the sourcecode for my CMS just for that reason - I am using a special code branch which I don't feel like updating anymore cause I have taken a completely new road for KBMentor - which you can see on &lt;a href="http://www.ajaxandasp.net"&gt;AjaxAndAsp.net&lt;/a&gt; - ASP.NET 2.0 and more of a blogging type of end user interface.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://aspcode.net/aggbug/240.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/02/20/240.aspx</guid>
            <pubDate>Tue, 20 Feb 2007 10:44:47 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/02/20/240.aspx#feedback</comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/240.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/240.aspx</trackback:ping>
        </item>
        <item>
            <title>Ajax and ASP.NET paging solved</title>
            <link>http://aspcode.net/archive/2007/02/05/233.aspx</link>
            <description>&lt;p&gt;I have solved the paging problems of ASP.NET and Microsoft Ajax, meaning&lt;/p&gt;
&lt;p&gt;a) accessible links (regular href instead of linkbuttons)&lt;/p&gt;
&lt;p&gt;b) ajax paging when possible (i.e javascript is available etc), still all pages are bookmarkable&lt;/p&gt;
&lt;p&gt;The whole stuff is available as a free download &lt;a href="http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/ASP.NET-2.0/Ajax/ASP.NET-AJAX-formally-Atlas/ASPCode.net.History-released_article_455.aspx"&gt;&lt;strong&gt;ASP.NET Ajax paging solution&lt;/strong&gt;&lt;/a&gt; - and packaged as "ASPCode.net.History"&lt;/p&gt;
&lt;p&gt;I have also relased another free livrabrary for &lt;a href="http://www.aspcode.net/articles/l_en-US/t_default/ASP.NET/ASP.NET-2.0/Ajax/ASP.NET-AJAX-formally-Atlas/ASPCode.net.Cookie-released_article_456.aspx"&gt;clientside cookie management&lt;/a&gt; - "ASPCode.net.cookie".&lt;/p&gt;
&lt;p&gt;On my &lt;a href="http://games.aspcode.net"&gt;free games site&lt;/a&gt; I have both parts implemented - the paging as of now might not be all that user friendly - I turned to a semiautomatic solution where I set the url hash value to the hidden fields control name (control names are never beatiful in ASP.NET) along with the actual value - however it's easily modified to read something like "page-123" or whatever you are looking for.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://aspcode.net/aggbug/233.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Stefan Holmberg</dc:creator>
            <guid>http://aspcode.net/archive/2007/02/05/233.aspx</guid>
            <pubDate>Mon, 05 Feb 2007 16:07:41 GMT</pubDate>
            <comments>http://aspcode.net/archive/2007/02/05/233.aspx#feedback</comments>
            <wfw:commentRss>http://aspcode.net/comments/commentRss/233.aspx</wfw:commentRss>
            <trackback:ping>http://aspcode.net/services/trackbacks/233.aspx</trackback:ping>
        </item>
    </channel>
</rss>