- Free screen capture tool: Cropper
-
Posted by oVan on Saturday, March 24, 2007 | PermaLink | 0 commentsA little known free screen capturing tool is Windows itself: push the PrtScn (the good ol' Print Screen button) and you have an instant copy of your entire desktop. Using Alt+PrtScn you'll get only the active window. This method works in all Windows versions since Windows 95 if I recall correctly.
However, this method is not so practical for a lot of people. If you want to use your screen grab in an email, you can only paste it via Outlook, not via Outlook Express. In that case you need to open MS Paint, or Paint Shop Pro, and paste it there as a new image, then save it as a jpeg, and then go back to your email to attach it as a file. Yuck.
Here's a powerful free screen capture tool called Cropper. The latest release also works on Windows Vista, and it contains screen capture capabilities to:- BMP format
- PNG format
- JPG format
- clipboard (of course)
- directly to printer
- Cropper.AnimatedGif
- Cropper.AviFormat
- Cropper.CountdownPng
- Cropper.SendToEmail
- Cropper.SendToFlickr
- Cropper.SendToOneNote
- Cropper.SendToTinyPic
ps: Cropper is written in C# on the Microsoft .NET platform.Labels: .NET, Avi, C#, CodePlex, Cropper, download, Email, Flickr, free, OneNote, plugin, Png, screen capture, TinyPic
- Adding a Content Role in MWPSK
-
Posted by oVan on Thursday, March 22, 2007 | PermaLink | 0 commentsHere's an easy solution to add a Content Editor role in the MyWebPagesStarterKit without defining a new role (which would take a lot of work):
Currently the authenticated user that is not part of the administrator role can do nothing more than an anonymous (unauthenticated user) user on the website.
So let's assume that those non-admin authenticated users are just content editors. We want them to be able to add/change the content of the defined section controls, without the ability to delete sections or to change the sitemap structure.
Here are the two easy steps to accomplish this:
1) Change the following in ~/Default.aspx.cs:
foreach (ISection section in _page.Sections)
{
SectionControlBaseClass ctl = (SectionControlBaseClass)LoadControl(section.UserControl);
if (User.Identity.IsAuthenticated && User.IsInRole(RoleNames.Administrators.ToString()))
Into:
foreach (ISection section in _page.Sections)
{
SectionControlBaseClass ctl = (SectionControlBaseClass)LoadControl(section.UserControl);
if ((User.Identity.IsAuthenticated))
The above change will enable the admin functions for sections on each page, whithout enabling the administration menu for administrators.
2) Change the following line in ~/SectionControls/SectionAdmin.ascx:<asp:Button runat="server" ID="btnDeleteSection" OnClick="btnDeleteSection_Click" Text="<%$ Resources:stringsRes, glb__DeleteSection%>" CausesValidation="false" UseSubmitBehavior="false" />
Into:
<% if (Context.User.IsInRole(MyWebPagesStarterKit.RoleNames.Administrators.ToString())) {%><asp:Button runat="server" ID="btnDeleteSection" OnClick="btnDeleteSection_Click" Text="<%$ Resources:stringsRes, glb__DeleteSection%>" CausesValidation="false" UseSubmitBehavior="false" /><% } %>
The above change will remove the ability to delete section controls.
The result will enable authenticated users to update the content of the website, withouth the ability to destroy it :-)
Hope this helps!Labels: Administrator, asp.net, CodePlex, content, editor, fix, Microsoft, MWPSK, MyWebPagesStarterKit, patch, role, starter kit
