<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8096795256231969019.comments</id><updated>2010-03-19T08:56:47.130+02:00</updated><title type='text'>P is for Programming</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.jacopretorius.net/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/comments/default'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/comments/default?start-index=26&amp;max-results=25'/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-6211973202266420643</id><published>2010-03-19T08:56:47.123+02:00</published><updated>2010-03-19T08:56:47.123+02:00</updated><title type='text'>@Joachim: That's a very cool idea.  At the moment ...</title><content type='html'>@Joachim: That&amp;#39;s a very cool idea.  At the moment there is no support for it, but it shouldn&amp;#39;t be too difficult to add.  Will take a look.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/6211973202266420643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/6211973202266420643'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html?showComment=1268981807123#c6211973202266420643' title=''/><author><name>jacopretorius.net</name><uri>http://www.jacopretorius.net/</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-9212986270109508607' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/9212986270109508607' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-6039036787811869681</id><published>2010-03-19T08:54:26.667+02:00</published><updated>2010-03-19T08:54:26.667+02:00</updated><title type='text'>@Jaco: In PHP I linke Smarty to do Text-Template-T...</title><content type='html'>@Jaco: In PHP I linke Smarty to do Text-Template-Transformations. Eg. you would like to create static HTML files in an Desktop Application. Another great usage would be HTML-Email templating. You get it? ;-) Look for example to http://andrewpeters.net/2008/04/19/standalone-nhaml/</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/6039036787811869681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/6039036787811869681'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html?showComment=1268981666667#c6039036787811869681' title=''/><author><name>Joachim</name><uri>http://www.blogger.com/profile/12312296150411103840</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-9212986270109508607' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/9212986270109508607' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-7560903869500049557</id><published>2010-03-18T14:57:33.597+02:00</published><updated>2010-03-18T14:57:33.597+02:00</updated><title type='text'>@Joachim:  Could you elaborate?  I've never really...</title><content type='html'>@Joachim:  Could you elaborate?  I&amp;#39;ve never really thought of using sharpy without MVC - how would you use it then?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/7560903869500049557'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/7560903869500049557'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html?showComment=1268917053597#c7560903869500049557' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-9212986270109508607' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/9212986270109508607' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-4513871382550760036</id><published>2010-03-18T14:47:55.279+02:00</published><updated>2010-03-18T14:47:55.279+02:00</updated><title type='text'>Hey Jaco,

is it possible to use sharpy standalone...</title><content type='html'>Hey Jaco,&lt;br /&gt;&lt;br /&gt;is it possible to use sharpy standalone, without MVC?&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;---&lt;br /&gt;Joachim</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/4513871382550760036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/4513871382550760036'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html?showComment=1268916475279#c4513871382550760036' title=''/><author><name>Joachim</name><uri>http://www.blogger.com/profile/12312296150411103840</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-9212986270109508607' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/9212986270109508607' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-4922931753446381224</id><published>2010-03-11T16:25:18.007+02:00</published><updated>2010-03-11T16:25:18.007+02:00</updated><title type='text'>No worries :-)</title><content type='html'>No worries :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/5413779851242356390/comments/default/4922931753446381224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/5413779851242356390/comments/default/4922931753446381224'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2009/08/running-windows-service-inside-console.html?showComment=1268317518007#c4922931753446381224' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2009/08/running-windows-service-inside-console.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-5413779851242356390' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/5413779851242356390' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-3946536707665750782</id><published>2010-03-11T16:24:28.049+02:00</published><updated>2010-03-11T16:24:28.049+02:00</updated><title type='text'>Many thanks for your quick reply Jaco.

It's all w...</title><content type='html'>Many thanks for your quick reply Jaco.&lt;br /&gt;&lt;br /&gt;It&amp;#39;s all worked now - it was my mistake!&lt;br /&gt;&lt;br /&gt;Thanks once again for the article - keep up the good work :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/5413779851242356390/comments/default/3946536707665750782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/5413779851242356390/comments/default/3946536707665750782'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2009/08/running-windows-service-inside-console.html?showComment=1268317468049#c3946536707665750782' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2009/08/running-windows-service-inside-console.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-5413779851242356390' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/5413779851242356390' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-64828074641400011</id><published>2010-03-11T15:45:22.597+02:00</published><updated>2010-03-11T15:45:22.597+02:00</updated><title type='text'>@Anon: I need a little more information in order t...</title><content type='html'>@Anon: I need a little more information in order to assist you.  Did you try the example project I&amp;#39;m providing?&lt;br /&gt;&lt;br /&gt;I always create a console application, but in theory a windows service project should do the same thing - to be safe I would stick with a console application.&lt;br /&gt;&lt;br /&gt;Are you trying to run the service or run the service as a console application?  Where exactly is the application crashing?  Can you set a breakpoint in the first line of your application?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/5413779851242356390/comments/default/64828074641400011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/5413779851242356390/comments/default/64828074641400011'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2009/08/running-windows-service-inside-console.html?showComment=1268315122597#c64828074641400011' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2009/08/running-windows-service-inside-console.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-5413779851242356390' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/5413779851242356390' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-90251026752877483</id><published>2010-03-11T15:29:34.152+02:00</published><updated>2010-03-11T15:29:34.152+02:00</updated><title type='text'>This is great in theory, but all I get is the foll...</title><content type='html'>This is great in theory, but all I get is the following InvalidOperationException runtime exception... &lt;br /&gt;&lt;br /&gt;Cannot read keys when either application does not have a console or when console input has been redirected from a file. Try Console.Read.&lt;br /&gt;&lt;br /&gt;I have tried both created a windows service project and a console application, but it just doesn&amp;#39;t work!&lt;br /&gt;&lt;br /&gt;Please help!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/5413779851242356390/comments/default/90251026752877483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/5413779851242356390/comments/default/90251026752877483'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2009/08/running-windows-service-inside-console.html?showComment=1268314174152#c90251026752877483' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2009/08/running-windows-service-inside-console.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-5413779851242356390' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/5413779851242356390' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-4461089726841114775</id><published>2010-03-06T15:02:29.346+02:00</published><updated>2010-03-06T15:02:29.346+02:00</updated><title type='text'>I had a quick play, but ran out of time, at least ...</title><content type='html'>I had a quick play, but ran out of time, at least for now.&lt;br /&gt;&lt;br /&gt;I didn&amp;#39;t have any success unfortunately, I&amp;#39;ll try again but not sure when I&amp;#39;ll get the chance.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/4461089726841114775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/4461089726841114775'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html?showComment=1267880549346#c4461089726841114775' title=''/><author><name>Kieron</name><uri>http://www.blogger.com/profile/06309377547701287349</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4081465245828498056' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4081465245828498056' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-2737819701877179326</id><published>2010-03-05T16:15:25.243+02:00</published><updated>2010-03-05T16:15:25.243+02:00</updated><title type='text'>Yeah I'll have to a little research to see how oth...</title><content type='html'>Yeah I&amp;#39;ll have to a little research to see how other guys have done it to figure out how I want to implement it.  If you do make some progress drop me a mail to let me know how it goes.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/2737819701877179326'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/2737819701877179326'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html?showComment=1267798525243#c2737819701877179326' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4081465245828498056' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4081465245828498056' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-4185305593047628787</id><published>2010-03-05T16:04:55.414+02:00</published><updated>2010-03-05T16:04:55.414+02:00</updated><title type='text'>@Jaco - Yeah, I think it would be a really useful ...</title><content type='html'>@Jaco - Yeah, I think it would be a really useful feature - make it part of the extensibility - a View Provider possibly...? I&amp;#39;ll have a crack at doing it myself, but finding the time is going to be a hardship. Thanks for all your hard work to date, Sharpy is looking pretty fine (:</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/4185305593047628787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/4185305593047628787'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html?showComment=1267797895414#c4185305593047628787' title=''/><author><name>Kieron</name><uri>http://www.blogger.com/profile/06309377547701287349</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4081465245828498056' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4081465245828498056' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-2932066954117472381</id><published>2010-03-05T09:55:54.677+02:00</published><updated>2010-03-05T09:55:54.677+02:00</updated><title type='text'>&gt;Oh ok, you're doing Webforms, not MVC

yes... sor...</title><content type='html'>&amp;gt;Oh ok, you&amp;#39;re doing Webforms, not MVC&lt;br /&gt;&lt;br /&gt;yes... sorry for the mistake. I&amp;#39;m quite new to webDevelopment! :)&lt;br /&gt;&lt;br /&gt;Well, if the Panel is set to invisible, I supposte the panel content is not rendered (i.e. no HTML is generated). I&amp;#39;ll check it out!&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Cabbi</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/2932066954117472381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/2932066954117472381'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267775754677#c2932066954117472381' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-5109054362407110841</id><published>2010-03-05T09:40:58.716+02:00</published><updated>2010-03-05T09:40:58.716+02:00</updated><title type='text'>Oh ok, you're doing Webforms, not MVC.  This would...</title><content type='html'>Oh ok, you&amp;#39;re doing Webforms, not MVC.  This would work I guess, you just need to check the HTML you&amp;#39;re generating - there&amp;#39;s no real point in sending all that HTML to the browser if it&amp;#39;s going to be invisible - it&amp;#39;s better to simply not render the control.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/5109054362407110841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/5109054362407110841'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267774858716#c5109054362407110841' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-3779316584137064295</id><published>2010-03-05T09:36:18.450+02:00</published><updated>2010-03-05T09:36:18.450+02:00</updated><title type='text'>OK, here my very first &amp; simple PermissionPanel im...</title><content type='html'>OK, here my very first &amp;amp; simple PermissionPanel implementation:&lt;br /&gt;&lt;br /&gt;   [Flags]&lt;br /&gt;   public enum Permission&lt;br /&gt;   {&lt;br /&gt;      View   = (1&amp;lt;&amp;lt;0), &lt;br /&gt;      Add    = (1&amp;lt;&amp;lt;1)|View, &lt;br /&gt;      Edit   = (1&amp;lt;&amp;lt;2)|View, &lt;br /&gt;      Delete = (1&amp;lt;&amp;lt;3)|View, &lt;br /&gt;      Admin  = (1&amp;lt;&amp;lt;4)|View|Add|Edit|Delete&lt;br /&gt;   }&lt;br /&gt;   &lt;br /&gt;   public class PermissionPanel: System.Web.UI.WebControls.Panel&lt;br /&gt;   {&lt;br /&gt;      private Permission m_Permission;&lt;br /&gt;      &lt;br /&gt;      public Permission Permission&lt;br /&gt;      {&lt;br /&gt;         get { return m_Permission; }&lt;br /&gt;         set { m_Permission = value; }&lt;br /&gt;      }&lt;br /&gt;&lt;br /&gt;      protected override void OnPreRender(EventArgs e)&lt;br /&gt;      {&lt;br /&gt;         base.OnPreRender(e);&lt;br /&gt;&lt;br /&gt;         Visible = [--check page&amp;#39;s user permission --]&lt;br /&gt;      }&lt;br /&gt;   }&lt;br /&gt;&lt;br /&gt;Within the ASP.Net page I place my panel like:&lt;br /&gt;&lt;br /&gt;                        &amp;lt;%ExCtrl:PermissionPanel ID=&amp;quot;ctrl_PermissionPanel&amp;quot; runat=&amp;quot;server&amp;quot; &lt;br /&gt;                                                Permission=&amp;quot;Edit&amp;quot;%&amp;gt;&lt;br /&gt;                           &amp;lt;%asp:ImageButton ID=&amp;quot;ctrl_EditBtn&amp;quot; runat=&amp;quot;server&amp;quot; &lt;br /&gt;                                            CommandName=&amp;quot;Edit&amp;quot; &lt;br /&gt;                                            SkinID=&amp;quot;edit&amp;quot; &lt;br /&gt;                                            ToolTip=&amp;quot;Edit Item&amp;quot;/%&amp;gt;&lt;br /&gt;                        &amp;lt;%/ExCtrl:PermissionPanel%&amp;gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/3779316584137064295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/3779316584137064295'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267774578450#c3779316584137064295' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-2954670478851593073</id><published>2010-03-05T08:50:42.976+02:00</published><updated>2010-03-05T08:50:42.976+02:00</updated><title type='text'>@Kieron:  At the moment there is no support for lo...</title><content type='html'>@Kieron:  At the moment there is no support for loading templates from the database - but I really like the idea.  I guess you have 2 options - you can either add it yourself (Sharpy is open-source, after all) or you can wait for me to add it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/2954670478851593073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/2954670478851593073'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html?showComment=1267771842976#c2954670478851593073' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4081465245828498056' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4081465245828498056' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-6788305036616050006</id><published>2010-03-05T08:44:50.206+02:00</published><updated>2010-03-05T08:44:50.206+02:00</updated><title type='text'>Hmm... Ok the comments widget screwed with that re...</title><content type='html'>Hmm... Ok the comments widget screwed with that reply slightly...&lt;br /&gt;&lt;br /&gt;I meant to say:&lt;br /&gt;&lt;br /&gt;&amp;lt;% if (user.HasPermission(Permissions.Something)) { %&amp;gt;&lt;br /&gt;&lt;br /&gt;// Generate Html here&lt;br /&gt;&lt;br /&gt;&amp;lt;% } %&amp;gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/6788305036616050006'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/6788305036616050006'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267771490206#c6788305036616050006' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-2480992353500232968</id><published>2010-03-05T08:43:32.223+02:00</published><updated>2010-03-05T08:43:32.223+02:00</updated><title type='text'>@Cabbi: Ok cool - so I guess you'll just do someth...</title><content type='html'>@Cabbi: Ok cool - so I guess you&amp;#39;ll just do something like&lt;br /&gt;&lt;br /&gt;&amp;lt;% if (user.HasPermission(Permissions.Something)) { %&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;% } %&amp;gt;&lt;br /&gt;&lt;br /&gt;Or you can render different templates based on the permissions - but that seems like more work?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/2480992353500232968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/2480992353500232968'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267771412223#c2480992353500232968' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-5776436831489015593</id><published>2010-03-05T08:40:30.282+02:00</published><updated>2010-03-05T08:40:30.282+02:00</updated><title type='text'>typo: ...at least TWO templates...</title><content type='html'>typo: ...at least TWO templates...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/5776436831489015593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/5776436831489015593'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267771230282#c5776436831489015593' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-7246104016872441093</id><published>2010-03-05T08:38:17.130+02:00</published><updated>2010-03-05T08:38:17.130+02:00</updated><title type='text'>Yes, you did!

I'll disable or better, hide contro...</title><content type='html'>Yes, you did!&lt;br /&gt;&lt;br /&gt;I&amp;#39;ll disable or better, hide controls if user has no rights.&lt;br /&gt;&lt;br /&gt;The today&amp;#39;s idea is to use/develop a PermissionPanel with at least to Templates:&lt;br /&gt;GrantedPanel &amp;amp; DeniedPanel. So the developer can hide controls if user has no grant and put something else on the page (if needed!)&lt;br /&gt;&lt;br /&gt;Cabbi</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/7246104016872441093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/7246104016872441093'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267771097130#c7246104016872441093' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-7619868477352009679</id><published>2010-03-05T08:08:59.519+02:00</published><updated>2010-03-05T08:08:59.519+02:00</updated><title type='text'>@Cabbi: Do you mean you will (for example) disable...</title><content type='html'>@Cabbi: Do you mean you will (for example) disable a button if the user doesn&amp;#39;t have the permission to perform that action?  In this case you would need to disable the button in the view AND do the check on the server-side.  (Remember the user can always manipulate the DOM in the browser)&lt;br /&gt;&lt;br /&gt;Did I understand you correctly?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/7619868477352009679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/7619868477352009679'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267769339519#c7619868477352009679' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-3316572795804009118</id><published>2010-03-04T22:42:48.656+02:00</published><updated>2010-03-04T22:42:48.656+02:00</updated><title type='text'>Hi Jaco, really keen on using Sharpy in my next CM...</title><content type='html'>Hi Jaco, really keen on using Sharpy in my next CMS based project - just wondering if there&amp;#39;s a way to push the view in the view engine dynamically - for example, so the view is made up from parts in a database. Also, how would we go about passing a specific model to the partial view/ include?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Kieron</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/3316572795804009118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4081465245828498056/comments/default/3316572795804009118'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html?showComment=1267735368656#c3316572795804009118' title=''/><author><name>Kieron</name><uri>http://www.blogger.com/profile/06309377547701287349</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/master-pages-and-partial-views-in.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4081465245828498056' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4081465245828498056' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-6889855437562319921</id><published>2010-03-04T17:09:01.760+02:00</published><updated>2010-03-04T17:09:01.760+02:00</updated><title type='text'>Hi,

I like your approach!

I have to implement so...</title><content type='html'>Hi,&lt;br /&gt;&lt;br /&gt;I like your approach!&lt;br /&gt;&lt;br /&gt;I have to implement somthing like you are suggesting. But my idea was to hide controls in the page if the user has no rights to perform the command.&lt;br /&gt;&lt;br /&gt;So I&amp;#39;ll avoid the user to click a button and receive back the message.&lt;br /&gt;&lt;br /&gt;Do you got my point? Any clue?&lt;br /&gt;&lt;br /&gt;Cabbi</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/6889855437562319921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/4352519561742376359/comments/default/6889855437562319921'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html?showComment=1267715341760#c6889855437562319921' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/01/permission-based-access-in-aspnet-mvc.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-4352519561742376359' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/4352519561742376359' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-5298951862495286515</id><published>2010-02-27T12:12:52.808+02:00</published><updated>2010-02-27T12:12:52.808+02:00</updated><title type='text'>nice job, the syntax is some thing like Ruby.

Lov...</title><content type='html'>nice job, the syntax is some thing like Ruby.&lt;br /&gt;&lt;br /&gt;Love it ;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/5298951862495286515'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/9212986270109508607/comments/default/5298951862495286515'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html?showComment=1267265572808#c5298951862495286515' title=''/><author><name>MDP</name><uri>http://masoud.daneshpour.org/index.php</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2010/02/introducing-sharpy.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-9212986270109508607' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/9212986270109508607' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-3538640715495969273</id><published>2010-02-22T18:31:42.565+02:00</published><updated>2010-02-22T18:31:42.565+02:00</updated><title type='text'>@quiton Ok we will have to agree to disagree.  I j...</title><content type='html'>@quiton Ok we will have to agree to disagree.  I just don&amp;#39;t see a better alternative - not for ASP.NET developers/designers in any case.&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve chatted/had e-mails from quite a few people who have worked with designers who actually write Smarty views on their own.&lt;br /&gt;&lt;br /&gt;MVC is a great pattern - but it&amp;#39;s obviously not perfect.  It&amp;#39;s an interesting idea though - designing a new pattern to allow developers and designers to work together.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/8499882212264669814/comments/default/3538640715495969273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/8499882212264669814/comments/default/3538640715495969273'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2009/08/search-for-better-view-engine-aspnet.html?showComment=1266856302565#c3538640715495969273' title=''/><author><name>Jaco Pretorius</name><uri>http://www.blogger.com/profile/02662668351496826313</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00176457889716074801'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2009/08/search-for-better-view-engine-aspnet.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-8499882212264669814' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/8499882212264669814' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8096795256231969019.post-4698462990603292984</id><published>2010-02-22T18:26:04.847+02:00</published><updated>2010-02-22T18:26:04.847+02:00</updated><title type='text'>@jaco i'm an optimist but i'd love to see designer...</title><content type='html'>@jaco i&amp;#39;m an optimist but i&amp;#39;d love to see designers write smarty or any code for that matter. ur view is going to contain presentation logic. if this. then that. while loop this. for loop that. designers will crack at some point. do u think designers will know when/how to escape data to prevent XSS?&lt;br /&gt;&lt;br /&gt;Sometimes u push data into a view. Sometimes u pull data from the view. Will designers know how or when to do this?&lt;br /&gt;&lt;br /&gt;You certainly have to use a templating system to manage headers/footers and crap. just don&amp;#39;t use a templating system that invents another language or a subset of the lang you are using&lt;br /&gt;&lt;br /&gt;In php this is easy because of the alternative syntax&lt;br /&gt;&lt;br /&gt;http://php.net/manual/en/control-structures.alternative-syntax.php&lt;br /&gt;&lt;br /&gt;Is that so much more verbose than Smarty?&lt;br /&gt;&lt;br /&gt;with syntax like that designers can still edit merrily away in dreamweaver without tripping over php (that was written by devs). but thats php. it has its roots in templating and string manipulation. the connecting to databases and other language crap came later&lt;br /&gt;&lt;br /&gt;if u wanna b hero to all the suckers who ported MVC pattern from desktop to www you should design a pattern that effectively enables a designer and a developer to work independently and therefore in parallel as oppose to the MVC ping-pong workflow&lt;br /&gt;&lt;br /&gt;BUT then there&amp;#39;s all the haters who will proclaim that MVC is pure genius. Has only pros and zero cons. And then everyone will hate you :/</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/8499882212264669814/comments/default/4698462990603292984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8096795256231969019/8499882212264669814/comments/default/4698462990603292984'/><link rel='alternate' type='text/html' href='http://www.jacopretorius.net/2009/08/search-for-better-view-engine-aspnet.html?showComment=1266855964847#c4698462990603292984' title=''/><author><name>quintonparker</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.jacopretorius.net/2009/08/search-for-better-view-engine-aspnet.html' ref='tag:blogger.com,1999:blog-8096795256231969019.post-8499882212264669814' source='http://www.blogger.com/feeds/8096795256231969019/posts/default/8499882212264669814' type='text/html'/></entry></feed>