<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" 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:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Coeamyd's - ASP.NET</title>
    <link>http://www.coeamyd.net/</link>
    <description>...It ain't easy being green</description>
    <language>en-us</language>
    <copyright>Christoph Herold</copyright>
    <lastBuildDate>Tue, 03 Aug 2010 12:38:13 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.9.6264.0</generator>
    <managingEditor>Christoph.Herold@coeamyd.net</managingEditor>
    <webMaster>Christoph.Herold@coeamyd.net</webMaster>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=e8c547e8-bb3f-4d49-afdf-89d0465885dc</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,e8c547e8-bb3f-4d49-afdf-89d0465885dc.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,e8c547e8-bb3f-4d49-afdf-89d0465885dc.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=e8c547e8-bb3f-4d49-afdf-89d0465885dc</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
When creating a new Silverlight business application using RIA services, it will automatically
be configured to use Forms authentication. If you are developing an intranet application
with single sign-on, you can easily switch the web.config to use Windows auth instead
of forms. In my case, authentication still timed out, because the server still tried
to access a database. You also have to disable the RoleManager and Profile services
in the web.config to get Windows authentication running. This is a nice way to create
out-of-browser intranet applications and still have single sign-on.
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=e8c547e8-bb3f-4d49-afdf-89d0465885dc" />
      </body>
      <title>Using NTLM (Windows) authentication with RIA services</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,e8c547e8-bb3f-4d49-afdf-89d0465885dc.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,e8c547e8-bb3f-4d49-afdf-89d0465885dc.aspx</link>
      <pubDate>Tue, 03 Aug 2010 12:38:13 GMT</pubDate>
      <description>&lt;p&gt;
When creating a new Silverlight business application using RIA services, it will automatically
be configured to use Forms authentication. If you are developing an intranet application
with single sign-on, you can easily switch the web.config to use Windows auth instead
of forms. In my case, authentication still timed out, because the server still tried
to access a database. You also have to disable the RoleManager and Profile services
in the web.config to get Windows authentication running. This is a nice way to create
out-of-browser intranet applications and still have single sign-on.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=e8c547e8-bb3f-4d49-afdf-89d0465885dc" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,e8c547e8-bb3f-4d49-afdf-89d0465885dc.aspx</comments>
      <category>.NET;ASP.NET;Development;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=a870e8da-fa5d-4f13-b1a9-e69ba2c61173</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,a870e8da-fa5d-4f13-b1a9-e69ba2c61173.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,a870e8da-fa5d-4f13-b1a9-e69ba2c61173.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=a870e8da-fa5d-4f13-b1a9-e69ba2c61173</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Today, I had a Windows Server 2003 system, on which I freshly installed .NET 4.0 and
wanted to deploy an ASP.NET 4.0 application in it. Sounds simple enough, but everytime
I tried to access the application, I got a 404 error. In my case, I had an MVC2 application,
for which I also enabled the wildcard mapping (I know, it's not required with 4.0,
but I did it anyways, just in case). When it was enabled, I got 404s for every request.
When I took it out, at least a simple text file was delivered instead of a 404 error.
</p>
        <p>
Well, the solution was very simple, but it took a while to find. The ASP.NET 4.0 web
service extension was disabled. So, if you keep getting 404s for your ASP.NET application,
check in the Webservice Extensions folder in the IIS Manager if the ASP.NET 4.0 extension
is enabled.
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=a870e8da-fa5d-4f13-b1a9-e69ba2c61173" />
      </body>
      <title>ASP.NET 4.0 web application always returns 404 error in IIS6</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,a870e8da-fa5d-4f13-b1a9-e69ba2c61173.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,a870e8da-fa5d-4f13-b1a9-e69ba2c61173.aspx</link>
      <pubDate>Sun, 25 Jul 2010 21:26:18 GMT</pubDate>
      <description>&lt;p&gt;
Today, I had a Windows Server 2003 system, on which I freshly installed .NET 4.0 and
wanted to deploy an ASP.NET 4.0 application in it. Sounds simple enough, but everytime
I tried to access the application, I got a 404 error. In my case, I had an MVC2 application,
for which I also enabled the wildcard mapping (I know, it's not required with 4.0,
but I did it anyways, just in case). When it was enabled, I got 404s for every request.
When I took it out, at least a simple text file was delivered instead of a 404 error.
&lt;/p&gt;
&lt;p&gt;
Well, the solution was very simple, but it took a while to find. The ASP.NET 4.0 web
service extension was disabled. So, if you keep getting 404s for your ASP.NET application,
check in the Webservice Extensions folder in the IIS Manager if the ASP.NET 4.0 extension
is enabled.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=a870e8da-fa5d-4f13-b1a9-e69ba2c61173" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,a870e8da-fa5d-4f13-b1a9-e69ba2c61173.aspx</comments>
      <category>.NET;ASP.NET;IIS</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=ff32191b-0509-4b63-9696-a824d8db558a</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=ff32191b-0509-4b63-9696-a824d8db558a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I just launched a new project at codeplex aiming at the integration of jQuery UI in
DotNetNuke: <a href="http://jquidnn.codeplex.com/" target="_blank">http://jquidnn.codeplex.com/</a>.
The first releases are already available in form of DNN module packages containing
the core functionality, including infrastructural code to include jQuery and jQuery
UI, two web controls for the Tabs and Datepicker widgets, and the smoothness theme.
</p>
        <p>
Also available are module packages for three more themes: Cupertino, UI Darkness and
UI Lightness. Further skins are actually quite easy to package and will follow over
time, or when someone issues a request for one ;-)
</p>
        <p>
So please, start grabbing the releases and giving me feedback.
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=ff32191b-0509-4b63-9696-a824d8db558a" />
      </body>
      <title>jQuery UI DotNetNuke integration</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</link>
      <pubDate>Fri, 03 Apr 2009 11:04:47 GMT</pubDate>
      <description>&lt;p&gt;
I just launched a new project at codeplex aiming at the integration of jQuery UI in
DotNetNuke: &lt;a href="http://jquidnn.codeplex.com/" target="_blank"&gt;http://jquidnn.codeplex.com/&lt;/a&gt;.
The first releases are already available in form of DNN module packages containing
the core functionality, including infrastructural code to include jQuery and jQuery
UI, two web controls for the Tabs and Datepicker widgets, and the smoothness theme.
&lt;/p&gt;
&lt;p&gt;
Also available are module packages for three more themes: Cupertino, UI Darkness and
UI Lightness. Further skins are actually quite easy to package and will follow over
time, or when someone issues a request for one ;-)
&lt;/p&gt;
&lt;p&gt;
So please, start grabbing the releases and giving me feedback.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=ff32191b-0509-4b63-9696-a824d8db558a" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,ff32191b-0509-4b63-9696-a824d8db558a.aspx</comments>
      <category>.NET;ASP.NET;Development;DotNetNuke;jQuery;Web</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=a2da5e82-d6aa-42f0-8913-8538cd7502f0</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=a2da5e82-d6aa-42f0-8913-8538cd7502f0</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I just wasted another hour, trying to figure out, what exactly ASP.NET was trying
to tell me, when giving me an <strong>"ASPNET: Make sure that the class defined in
this code file matches the 'inherits' attribute, and that it extends the correct base
class (e.g. Page or UserControl)."</strong> message on compiling my ascx file.
</p>
        <p>
Ok, so I used a custom namespace, but I've done that hundreds of times, so that shouldn't
be the problem. I also had a custom base class inheriting from UserControl. Also,
nothing I haven't done before. So what was the issue now?!
</p>
        <p>
I basically retyped everything concerning the namespace and class names in all files,
but nothing helped. So I reverted to commenting out my code. This helped me find the
issue: I used a
</p>
        <pre>&lt;% if (somethingOrOther) { %&gt; Some code here &lt;% } %&gt;</pre>
        <p>
construct in my ascx-file (Please don't start an argument on whether this is good
practice or not. I know it's not the cleanest way to do things, but that is not the
concern here :-) ), and actually forgot to put in the closing <code>&lt;% } %&gt;</code>.
Ok, my fault, but shouldn't you get a better Compiler message than "ASPNET: Make sure
that the class defined in this code file matches the 'inherits' attribute, and that
it extends the correct base class (e.g. Page or UserControl)."?!
</p>
        <p>
So, if you encouter this error (and believe me, I've had it more than once due to
typos), and are 100% positive you've spelled everything correctly, check for unbalanced
parentheses!
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=a2da5e82-d6aa-42f0-8913-8538cd7502f0" />
      </body>
      <title>Bogus errors from ASP.NET compiler</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</link>
      <pubDate>Wed, 18 Mar 2009 16:43:48 GMT</pubDate>
      <description>&lt;p&gt;
I just wasted another hour, trying to figure out, what exactly ASP.NET was trying
to tell me, when giving me an &lt;strong&gt;"ASPNET: Make sure that the class defined in
this code file matches the 'inherits' attribute, and that it extends the correct base
class (e.g. Page or UserControl)."&lt;/strong&gt; message on compiling my ascx file.
&lt;/p&gt;
&lt;p&gt;
Ok, so I used a custom namespace, but I've done that hundreds of times, so that shouldn't
be the problem. I also had a custom base class inheriting from UserControl. Also,
nothing I haven't done before. So what was the issue now?!
&lt;/p&gt;
&lt;p&gt;
I basically retyped everything concerning the namespace and class names in all files,
but nothing helped. So I reverted to commenting out my code. This helped me find the
issue: I used a
&lt;/p&gt;
&lt;pre&gt;&amp;lt;% if (somethingOrOther) { %&amp;gt; Some code here &amp;lt;% } %&amp;gt;&lt;/pre&gt;
&lt;p&gt;
construct in my ascx-file (Please don't start an argument on whether this is good
practice or not. I know it's not the cleanest way to do things, but that is not the
concern here :-) ), and actually forgot to put in the closing &lt;code&gt;&amp;lt;% } %&amp;gt;&lt;/code&gt;.
Ok, my fault, but shouldn't you get a better Compiler message than "ASPNET: Make sure
that the class defined in this code file matches the 'inherits' attribute, and that
it extends the correct base class (e.g. Page or UserControl)."?!
&lt;/p&gt;
&lt;p&gt;
So, if you encouter this error (and believe me, I've had it more than once due to
typos), and are 100% positive you've spelled everything correctly, check for unbalanced
parentheses!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=a2da5e82-d6aa-42f0-8913-8538cd7502f0" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,a2da5e82-d6aa-42f0-8913-8538cd7502f0.aspx</comments>
      <category>.NET;ASP.NET;Development;HTML;Pitfall;Web</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=f596bb07-01ec-439a-860a-84830935243c</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=f596bb07-01ec-439a-860a-84830935243c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Yesterday, I had one of those WTF moments. I had a page with a form for entering two
addresses. Both had the same fields, including a <code>RadioButtonList</code> with
identical items. Since the items are resourced, I decided to optimize the performance
by reusing the <code>ListItem</code>s like so:
</p>
        <pre>ListItem[] items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation.Items.AddRange(items);
this.salutation2.Items.AddRange(items);</pre>
        <p>
Simple eh. Everything seems to be ok. And was I amazed, when I tested it, and I always
got the <code>SelectedItem</code> to be the one selected in <code>salutation2</code>.
I double-checked every location were I was storing the values, in case I forgot to
change the field name after copy/pasting. But everything was correct, as far as I
could tell. I even checked the values submitted by the browser, they were also correct.
</p>
        <p>
Finally, it hit me: The ListItem has a <code>Selected</code> property, and it is used
to find the <code>RadioButtonList</code>s <code>SelectedItem</code> property. And
since I reused the items, the first list parses its items on postback, sets the appropriate <code>ListItem</code>'s <code>Selected</code> property
to <code>true</code>. Same thing happens with the second <code>RadioButtonList</code>.
And since the <code>ListItem</code>s are used in both lists, the last one wins.
</p>
        <p>
So, I changed my code to look like this:
</p>
        <pre>ListItem[] items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation.Items.AddRange(items);
items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation2.Items.AddRange(items);</pre>
        <p>
Now everything works as it should. So next time, be careful when reusing your <code>ListItem</code>s!
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=f596bb07-01ec-439a-860a-84830935243c" />
      </body>
      <title>Be careful when reusing ListItems</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</link>
      <pubDate>Tue, 17 Mar 2009 11:12:24 GMT</pubDate>
      <description>&lt;p&gt;
Yesterday, I had one of those WTF moments. I had a page with a form for entering two
addresses. Both had the same fields, including a &lt;code&gt;RadioButtonList&lt;/code&gt; with
identical items. Since the items are resourced, I decided to optimize the performance
by reusing the &lt;code&gt;ListItem&lt;/code&gt;s like so:
&lt;/p&gt;
&lt;pre&gt;ListItem[] items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation.Items.AddRange(items);
this.salutation2.Items.AddRange(items);&lt;/pre&gt;
&lt;p&gt;
Simple eh. Everything seems to be ok. And was I amazed, when I tested it, and I always
got the &lt;code&gt;SelectedItem&lt;/code&gt; to be the one selected in &lt;code&gt;salutation2&lt;/code&gt;.
I double-checked every location were I was storing the values, in case I forgot to
change the field name after copy/pasting. But everything was correct, as far as I
could tell. I even checked the values submitted by the browser, they were also correct.
&lt;/p&gt;
&lt;p&gt;
Finally, it hit me: The ListItem has a &lt;code&gt;Selected&lt;/code&gt; property, and it is used
to find the &lt;code&gt;RadioButtonList&lt;/code&gt;s &lt;code&gt;SelectedItem&lt;/code&gt; property. And
since I reused the items, the first list parses its items on postback, sets the appropriate &lt;code&gt;ListItem&lt;/code&gt;'s &lt;code&gt;Selected&lt;/code&gt; property
to &lt;code&gt;true&lt;/code&gt;. Same thing happens with the second &lt;code&gt;RadioButtonList&lt;/code&gt;.
And since the &lt;code&gt;ListItem&lt;/code&gt;s are used in both lists, the last one wins.
&lt;/p&gt;
&lt;p&gt;
So, I changed my code to look like this:
&lt;/p&gt;
&lt;pre&gt;ListItem[] items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation.Items.AddRange(items);
items = new ListItem[2];
items[0] = new ListItem(this.GetString("salutation.Mister"), "Mr");
items[1] = new ListItem(this.GetString("salutation.Misses"), "Mrs");
this.salutation2.Items.AddRange(items);&lt;/pre&gt;
&lt;p&gt;
Now everything works as it should. So next time, be careful when reusing your &lt;code&gt;ListItem&lt;/code&gt;s!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=f596bb07-01ec-439a-860a-84830935243c" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,f596bb07-01ec-439a-860a-84830935243c.aspx</comments>
      <category>ASP.NET;Development;HTML;Web;Pitfall</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=6998dbab-23b2-4fc4-9e21-ce3a327d5d82</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=6998dbab-23b2-4fc4-9e21-ce3a327d5d82</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I have been using jQuery with DotNetNuke
for a while now, and was very happy to finally see it integrated into DotNetNuke.
What makes me wonder, is that there is no central method for including it in DNN 4.9.1.
The library has been placed into the folder ~/Resources/Shared/scripts/jquery, but
the one usage I could find does not use the ClientScriptManager to include the script.
Instead, it manually creates a Literal script control. This will cause the script
to be included multiple times, if different controls use it simultaneously. Perhaps
this will be "fixed" in a future release. Perhaps adding a method to the ClientAPI
for including it would be a good solution for a global include mechanism.<br /><p></p><img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=6998dbab-23b2-4fc4-9e21-ce3a327d5d82" /></body>
      <title>DotNetNuke now with jQuery</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</link>
      <pubDate>Wed, 07 Jan 2009 10:06:15 GMT</pubDate>
      <description>I have been using jQuery with DotNetNuke for a while now, and was very happy to finally see it integrated into DotNetNuke. What makes me wonder, is that there is no central method for including it in DNN 4.9.1. The library has been placed into the folder ~/Resources/Shared/scripts/jquery, but the one usage I could find does not use the ClientScriptManager to include the script. Instead, it manually creates a Literal script control. This will cause the script to be included multiple times, if different controls use it simultaneously. Perhaps this will be "fixed" in a future release. Perhaps adding a method to the ClientAPI for including it would be a good solution for a global include mechanism.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=6998dbab-23b2-4fc4-9e21-ce3a327d5d82" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,6998dbab-23b2-4fc4-9e21-ce3a327d5d82.aspx</comments>
      <category>.NET;ASP.NET;Development;DotNetNuke;Web;jQuery</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=561b2b93-bfa5-4ad7-9805-d939b2b9301e</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,561b2b93-bfa5-4ad7-9805-d939b2b9301e.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,561b2b93-bfa5-4ad7-9805-d939b2b9301e.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=561b2b93-bfa5-4ad7-9805-d939b2b9301e</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Today, I was building a nice little page layout for SharePoint and wanted to use SharePoint
DateTimeField control. Since the field I wanted to edit was DateOnly, I set the corresponding
property, leaving me with this code:
</p>
        <p>
          <span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">&lt;SharePointWebControls:DateTimeField
runat=<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;">"server"</span> id=<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;">"dtfArticleStartDate"</span> DateOnly=<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;">"true"</span> FieldName=<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;">"ArticleStartDate"</span> /&gt;</span>
        </p>
        <p>
Seems fine to me, but ASP.NET did not like it. Or rather, the control did not like
it. I got an ArgumentException with the following StackTrace:
</p>
        <p>
 
</p>
        <p>
          <span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">[ArgumentException:
FieldName value is not specified.]<br />
Microsoft.SharePoint.WebControls.FieldMetadata.get_Field() +150<br />
Microsoft.SharePoint.WebControls.DateTimeField.CreateChildControls() +310<br />
System.Web.UI.Control.EnsureChildControls() +87<br />
Microsoft.SharePoint.WebControls.DateTimeField.set_DateOnly(Boolean value) +29<br />
ASP.MYNEWSPAGE_ASPX__2072755151.__BuildControldtfArticleStartDate()</span>
        </p>
        <p>
FieldName value is not specified?! As you can see in my code above, it is indeed specified.
But the stack trace gives us more information: The exception occurs in the compiled
ASPX file.
</p>
        <ul>
          <li>
ASP.MYNEWSPAGE_ASPX__2072755151.__BuildControldtfArticleStartDate():<br />
- We are building my DateTimeField control.</li>
          <li>
DateTimeField.set_DateOnly:<br />
- We are setting the DateOnly property.</li>
          <li>
FieldMetadata.get_Field:<br />
- Getting the field is where the exception occurs.</li>
        </ul>
        <p>
Note my ASPX-code again: I first set DateOnly="true" and then FieldName="ArticleStartDate".
Oh my god, this can't be true... The solution is very simple: change the order of
the attributes/properties:
</p>
        <p>
          <span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;">&lt;SharePointWebControls:DateTimeField
runat=<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;">"server"</span> id=<span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;">"dtfArticleStartDate"</span><span style="color: #cc0000; background-color: #ffcccc; font-family: Courier New; font-size: 11px;">FieldName="ArticleStartDate"
DateOnly="true"</span> /&gt;</span>
        </p>
        <p>
Against all good practices, the SharePoint team actually created a direct dependency
between two properties. At least the stack trace directly tells you where things go
wrong, so the solution is obvious. Nonetheless, I thought, this was worth noting.
It actually made me laugh, when I encountered it. Another one of those nice little
pitfalls when working with SharePoint :-)
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=561b2b93-bfa5-4ad7-9805-d939b2b9301e" />
      </body>
      <title>SharePoint DateTimeField control and the order of its properties</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,561b2b93-bfa5-4ad7-9805-d939b2b9301e.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,561b2b93-bfa5-4ad7-9805-d939b2b9301e.aspx</link>
      <pubDate>Wed, 19 Nov 2008 16:37:25 GMT</pubDate>
      <description>&lt;p&gt;
Today, I was building a nice little page layout for SharePoint and wanted to use SharePoint
DateTimeField control. Since the field I wanted to edit was DateOnly, I set the corresponding
property, leaving me with this code:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&amp;lt;SharePointWebControls:DateTimeField
runat=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;"&gt;"server"&lt;/span&gt; id=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;"&gt;"dtfArticleStartDate"&lt;/span&gt; DateOnly=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;"&gt;"true"&lt;/span&gt; FieldName=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;"&gt;"ArticleStartDate"&lt;/span&gt; /&amp;gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
Seems fine to me, but ASP.NET did not like it. Or rather, the control did not like
it. I got an ArgumentException with the following StackTrace:
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;[ArgumentException:
FieldName value is not specified.]&lt;br /&gt;
Microsoft.SharePoint.WebControls.FieldMetadata.get_Field() +150&lt;br /&gt;
Microsoft.SharePoint.WebControls.DateTimeField.CreateChildControls() +310&lt;br /&gt;
System.Web.UI.Control.EnsureChildControls() +87&lt;br /&gt;
Microsoft.SharePoint.WebControls.DateTimeField.set_DateOnly(Boolean value) +29&lt;br /&gt;
ASP.MYNEWSPAGE_ASPX__2072755151.__BuildControldtfArticleStartDate()&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
FieldName value is not specified?! As you can see in my code above, it is indeed specified.
But the stack trace gives us more information: The exception occurs in the compiled
ASPX file.
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
ASP.MYNEWSPAGE_ASPX__2072755151.__BuildControldtfArticleStartDate():&lt;br /&gt;
- We are building my DateTimeField control.&lt;/li&gt;
&lt;li&gt;
DateTimeField.set_DateOnly:&lt;br /&gt;
- We are setting the DateOnly property.&lt;/li&gt;
&lt;li&gt;
FieldMetadata.get_Field:&lt;br /&gt;
- Getting the field is where the exception occurs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Note my ASPX-code again: I first set DateOnly="true" and then FieldName="ArticleStartDate".
Oh my god, this can't be true... The solution is very simple: change the order of
the attributes/properties:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&amp;lt;SharePointWebControls:DateTimeField
runat=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;"&gt;"server"&lt;/span&gt; id=&lt;span style="color: #666666; background-color: #e4e4e4; font-family: Courier New; font-size: 11px;"&gt;"dtfArticleStartDate"&lt;/span&gt; &lt;span style="color: #cc0000; background-color: #ffcccc; font-family: Courier New; font-size: 11px;"&gt;FieldName="ArticleStartDate"
DateOnly="true"&lt;/span&gt; /&amp;gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
Against all good practices, the SharePoint team actually created a direct dependency
between two properties. At least the stack trace directly tells you where things go
wrong, so the solution is obvious. Nonetheless, I thought, this was worth noting.
It actually made me laugh, when I encountered it. Another one of those nice little
pitfalls when working with SharePoint :-)
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=561b2b93-bfa5-4ad7-9805-d939b2b9301e" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,561b2b93-bfa5-4ad7-9805-d939b2b9301e.aspx</comments>
      <category>.NET;ASP.NET;Development;Pitfall;SharePoint</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=b6e8f606-6d5e-4304-94ac-3791c374ae65</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,b6e8f606-6d5e-4304-94ac-3791c374ae65.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,b6e8f606-6d5e-4304-94ac-3791c374ae65.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=b6e8f606-6d5e-4304-94ac-3791c374ae65</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">A newer (beta) version of the FCKEditorProvider
for DotNetNuke has been made available: <a href="http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/127/threadid/247501/scope/posts/Default.aspx">http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/127/threadid/247501/scope/posts/Default.aspx</a><br /><br />
It finally integrates the newest version of FCKeditor, giving you much better styling
support and various other features. So far, my tests have been quite positive with
the new version.<br /><br />
One thing to note is the bothering "Red title" style, that is configured by default.
If you wish to remove it, you can edit the fckconfig.js files located in the provider's
"FCKeditor" and "Custom" folders. Just comment out the line that add the style to
FCKeditor's custom styles, and you'll be rid of it.<br /><br />
Regards to Mauricio Márquez for his great work on the integration!<br /><p></p><img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=b6e8f606-6d5e-4304-94ac-3791c374ae65" /></body>
      <title>New FCKEditorProvider for DotNetNuke</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,b6e8f606-6d5e-4304-94ac-3791c374ae65.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,b6e8f606-6d5e-4304-94ac-3791c374ae65.aspx</link>
      <pubDate>Mon, 11 Aug 2008 15:18:22 GMT</pubDate>
      <description>A newer (beta) version of the FCKEditorProvider for DotNetNuke has been made available: &lt;a href="http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/127/threadid/247501/scope/posts/Default.aspx"&gt;http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/127/threadid/247501/scope/posts/Default.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
It finally integrates the newest version of FCKeditor, giving you much better styling
support and various other features. So far, my tests have been quite positive with
the new version.&lt;br&gt;
&lt;br&gt;
One thing to note is the bothering "Red title" style, that is configured by default.
If you wish to remove it, you can edit the fckconfig.js files located in the provider's
"FCKeditor" and "Custom" folders. Just comment out the line that add the style to
FCKeditor's custom styles, and you'll be rid of it.&lt;br&gt;
&lt;br&gt;
Regards to Mauricio Márquez for his great work on the integration!&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=b6e8f606-6d5e-4304-94ac-3791c374ae65" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,b6e8f606-6d5e-4304-94ac-3791c374ae65.aspx</comments>
      <category>.NET;Administration;ASP.NET;Web;DotNetNuke</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=86fa0bfb-fee6-4d91-92b9-c55bcf33a968</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,86fa0bfb-fee6-4d91-92b9-c55bcf33a968.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,86fa0bfb-fee6-4d91-92b9-c55bcf33a968.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=86fa0bfb-fee6-4d91-92b9-c55bcf33a968</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
While I was building an ASP.NET user control, I ran across the problem, how to serialize
a property as the inner text of the Control in the ASPX-Code. I found a nice attribute
named <code>PersistenceModeAttribute</code>, that allows you to specify, how a property
is supposed to be persisted. Setting it to <code>InnerDefaultProperty</code> or <code>EncodedInnerDefaultProperty</code> should
do the trick, I thought.
</p>
        <p>
But, as I had to find out, this is only part of what needs to be done. There are two
more Attributes, that control the parsing of a control: <code>ParseChildrenAttribute</code> and <code>PersistChildrenAttribute</code>.
When you use <code>InnerDefaultProperty</code> to persist a property, you must add <code>[ParseChildren(true,
"&lt;YourPropertyName&gt;")]</code> and <code>[PersistChildren(false)]</code> to your
control's class declaration. Otherwise things won't persist.
</p>
        <p>
It took me a while to find this solution, and I found a nice explanation of things
here: <a href="http://alvinzc.blogspot.com/2006/10/aspnet-basic-of-custom-server-control_25.html">http://alvinzc.blogspot.com/2006/10/aspnet-basic-of-custom-server-control_25.html</a>.
</p>
        <p>
Alvin did a really nice job of explaining, what the attributes do. So if you want
the details, just visit his blog.
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=86fa0bfb-fee6-4d91-92b9-c55bcf33a968" />
      </body>
      <title>PersistenceMode.InnerDefaultProperty</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,86fa0bfb-fee6-4d91-92b9-c55bcf33a968.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,86fa0bfb-fee6-4d91-92b9-c55bcf33a968.aspx</link>
      <pubDate>Thu, 21 Dec 2006 10:33:40 GMT</pubDate>
      <description>&lt;p&gt;
While I was building an ASP.NET user control, I ran across the problem, how to serialize
a property as the inner text of the Control in the ASPX-Code. I found a nice attribute
named &lt;code&gt;PersistenceModeAttribute&lt;/code&gt;, that allows you to specify, how a property
is supposed to be persisted. Setting it to &lt;code&gt;InnerDefaultProperty&lt;/code&gt; or &lt;code&gt;EncodedInnerDefaultProperty&lt;/code&gt; should
do the trick, I thought.
&lt;/p&gt;
&lt;p&gt;
But, as I had to find out, this is only part of what needs to be done. There are two
more Attributes, that control the parsing of a control: &lt;code&gt;ParseChildrenAttribute&lt;/code&gt; and &lt;code&gt;PersistChildrenAttribute&lt;/code&gt;.
When you use &lt;code&gt;InnerDefaultProperty&lt;/code&gt; to persist a property, you must add &lt;code&gt;[ParseChildren(true,
"&amp;lt;YourPropertyName&amp;gt;")]&lt;/code&gt; and &lt;code&gt;[PersistChildren(false)]&lt;/code&gt; to your
control's class declaration. Otherwise things won't persist.
&lt;/p&gt;
&lt;p&gt;
It took me a while to find this solution, and I found a nice explanation of things
here: &lt;a href="http://alvinzc.blogspot.com/2006/10/aspnet-basic-of-custom-server-control_25.html"&gt;http://alvinzc.blogspot.com/2006/10/aspnet-basic-of-custom-server-control_25.html&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Alvin did a really nice job of explaining, what the attributes do. So if you want
the details, just visit his blog.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=86fa0bfb-fee6-4d91-92b9-c55bcf33a968" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,86fa0bfb-fee6-4d91-92b9-c55bcf33a968.aspx</comments>
      <category>.NET;ASP.NET;Development;Web</category>
    </item>
    <item>
      <trackback:ping>http://www.coeamyd.net/Trackback.aspx?guid=7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe</trackback:ping>
      <pingback:server>http://www.coeamyd.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.coeamyd.net/PermaLink,guid,7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe.aspx</pingback:target>
      <dc:creator>Christoph Herold</dc:creator>
      <wfw:comment>http://www.coeamyd.net/CommentView,guid,7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe.aspx</wfw:comment>
      <wfw:commentRss>http://www.coeamyd.net/SyndicationService.asmx/GetEntryCommentsRss?guid=7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
When using ASP.NET membership, you should always be sure to specify the applicationName
attribute on all providers. If you omit it, and deploy your database to the web server,
you will find, that all your users have vanished (or at least cannot be found). So
make sure your web.config looks similar to this:
</p>
        <pre>&lt;membership&gt;<br />
    &lt;providers&gt;<br />
        &lt;remove name="AspNetSqlMembershipProvider"
/&gt;<br />
        &lt;add name="AspNetSqlMembershipProvider"
applicationName="/" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer"
/&gt;<br />
    &lt;/providers&gt;<br />
&lt;/membership&gt;</pre>
        <p>
After setting the application name, you can start adding users. If you added users
before specifying it, they will probably no longer be available.
</p>
        <img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe" />
      </body>
      <title>On using SQL Express membership providers</title>
      <guid isPermaLink="false">http://www.coeamyd.net/PermaLink,guid,7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe.aspx</guid>
      <link>http://www.coeamyd.net/PermaLink,guid,7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe.aspx</link>
      <pubDate>Mon, 27 Mar 2006 08:35:22 GMT</pubDate>
      <description>&lt;p&gt;
When using ASP.NET membership, you should always be sure to specify the applicationName
attribute on all providers. If you omit it, and deploy your database to the web server,
you will find, that all your users have vanished (or at least cannot be found). So
make sure your web.config looks similar to this:
&lt;/p&gt;
&lt;pre&gt;&amp;lt;membership&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;providers&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove name="AspNetSqlMembershipProvider"
/&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name="AspNetSqlMembershipProvider"
applicationName="/" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer"
/&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/providers&amp;gt;&lt;br&gt;
&amp;lt;/membership&amp;gt;&lt;/pre&gt;
&lt;p&gt;
After setting the application name, you can start adding users. If you added users
before specifying it, they will probably no longer be available.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.coeamyd.net/aggbug.ashx?id=7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe" /&gt;</description>
      <comments>http://www.coeamyd.net/CommentView,guid,7e5a84c4-e6ff-46e9-ba75-4e01a5b42ebe.aspx</comments>
      <category>.NET;ASP.NET;Development;Web</category>
    </item>
  </channel>
</rss>