Feed Icon  

Contact

  • Bryant Likes
  • Send mail to the author(s) E-mail
  • twitter
  • View Bryant Likes's profile on LinkedIn
  • del.icio.us
Get Microsoft Silverlight
by clicking "Install Microsoft Silverlight" you accept the
Silverlight license agreement

Hosting By

Hot Topics

Tags

Open Source Projects

Archives

Ads

New Blog Skin

Posted in General at Wednesday, June 30, 2004 11:18 AM Pacific Daylight Time

Thanks to gosatango for the new skin.

Note: any idea why the home page is wider than the post page?

Impersonating WebPart

Posted in Reporting Services | SharePoint at Wednesday, June 30, 2004 10:07 AM Pacific Daylight Time

First an insensitive validator and next an Impersonating WebPart. What is web development coming too? :)

Jay Nathan now has a .Text blog! After you subscribe you should read his article on the Impersonating WebPart. It covers the basics of how to use the WebPart to impersonate users along with an overview of things like CAS.

If you're new to SharePoint development and you don't know what CAS stands for then you really need to read Maxim Karpov's article on the subject. Jan also talks about it in reference to the SmartPart here. While CAS is not something I really enjoy, it is essential to understand. If you don't at least understand the theory then you're going to run into real trouble the first time you get a security exception in the web part you're developing.

But back to the article. One thing that caught my attention since it is something that I've struggled with before:

Impersonator i = new Impersonator("SharePointRead", "MARINER", 
"password123").Impersonate();

// Code requiring higher permissions...

i.Undo();

Note: Instead of hard-coding the account credentials, they should probably be stored in the SharePoint's web.config file or a SQL Server table.

I really don't want to put the username and password in the code (as noted), but I also really don't want to put them in a database or a web.config file either. What I really want to do is figure out how to make this work with single sign-on. Unfortunately I haven't even got single sign-on running so I haven't looked at if this is possible.

Overall I think the Impersonating WebPart is a great idea and will probably cover 99% of what you would use it for. However, there are some cases (like Reporting Services) where I think you might need to have something like single sign-on in order to deal with who sees what data.

The Insensitive Regular Expression Validator Control

Posted in General at Wednesday, June 30, 2004 9:34 AM Pacific Daylight Time

That is quite the name, but it works pretty much as advertised. I have been doing a lot of Regexing lately to parse t-sql code that people input into my latest intranet application. I figured I could share my regex pattern between the server component and the client validation control, but quickly found out a few things.

  1. The client side component doesn't support comments.
  2. More importantly, the client side component is cAsE SeNsItIvE. Ouch!

So with a little Googling I came accross ConceptDevelopment.NET's InsensitiveRegularExpressionValidator. I copy/pasted the source code into my project and had it almost working pretty quickly. Almost working because I got an exception that told me my ValidationExpression could not be null. Well I was setting my ValidationExpression in the page load event so I knew this wasn't true.

Thankfully I've read Nikhil Kothari's book ASP.Net Server Controls which helped me quickly spot the problem. The ValidationExpression was being stored in a local variable which meant it would be empty on the post back since I was only setting it the first time the page was loaded. Cool. I simply changed it to be stored in the ViewState and everything started working perfectly.

Overall this is a very cool control even if it is insensitive :)

XML to SQL

Posted in Sql and Xml at Monday, June 28, 2004 6:35 AM Pacific Daylight Time

There is a new SQLXML article up on MSDN.

Amar Nalla showcases the Bulkload functionality available in SQLXML, which can be used to transform XML input into SQL data.

Full Article

My Links

Posted in General at Monday, June 28, 2004 3:52 AM Pacific Daylight Time
My links were getting too out of date. I'm planning on creating a links page or a links article sometime soon, but for now I'm just hiding them.

Vitamin Enriched Blog Posts

Posted in General at Wednesday, June 23, 2004 9:55 AM Pacific Daylight Time
The wayward is soon going to start offering “high-powered posts [that] will boost the blog energy and reclaim that youthful exuberance“. This new product has been given the code name “Blogade“ and the logo has already been leaked to the Internet via some internal testers.

Read the full press release here.

The wayward stock price was up after the announcement...

SQL Server Reporting Services Service Pack Released!

Posted in Sql and Xml | Reporting Services at Tuesday, June 22, 2004 1:34 AM Pacific Daylight Time

You can get it here.

SP1 includes a variety of improvements to the inital product release. Documentation for this release is provided in the SP1readme_lang.htm file which can be downloaded below or found in the Reporting Services installation directory after Setup is complete

Key Functional Enhancements


  • Excel rendering extension has been improved and now supports viewing in Excel 97 and 2000.
  • PDF rendering extension is more robust and has better performance.
  • Chart control provides more control over display styles.
  • References to external URLs (images and resources) from within a report are now supported.
  • Data caching behavior for report preview is now supported.
  • Newline in expressions is now supported.
  • The style of the HTML Viewer toolbar can now be modified through a style sheet.
  • New URL parameters offer more options for customizing report presentation at run time
  • Report Manager proxy persists authentication cookies so that they can be used by custom security extensions.
  • Hidden parameters are now supported.
  • Temporary snapshots can be compressed as well as stored on the file system.
  • Integrated security support for accessing report data sources can be disabled.

Very cool! The chart control feature was really needed.

Do you measure up?

Posted in General at Friday, June 18, 2004 3:08 AM Pacific Daylight Time

I guesss I don't...

Wow. I was surprised to find I only scored 60% on the Introduction to .NET for Developers: Microsoft Visual C#® .NET assessment test. Since I spend most of my time writing .Net apps in C# I figured I would do pretty well. How do you measure up?

Thanks to Yosi Taguri for the link...

Eli's SharePoint Resources

Posted in SharePoint at Thursday, June 17, 2004 3:53 AM Pacific Daylight Time

Cool SharePoint Stuff

Posted in SharePoint at Wednesday, June 16, 2004 12:10 AM Pacific Daylight Time

RsWebParts made the Cool SharePoint Stuff list on Greg Hughes blog. There is some very cool stuff on that list that I'm hoping to have time to dig into myself. Here are some cool things from that list plus a bunch of my own:

Wow. That should keep you busy for awhile! I'm sure there is more that and this doesn't include all kinds of interesting SharePoint discussions such as Sharing your bookmarks: http://del.icio.us, wikis, and the zen of SharePoint. Enjoy!

Reporting Services Web Parts

Posted in Reporting Services | SharePoint at Tuesday, June 15, 2004 11:41 PM Pacific Daylight Time
The RsWebParts that I posted last month has generated more interest than I expected. I'm glad that everyone is excited about these WebParts. However, prepare to be even more excited soon. No, there is not a new release of the RsWebParts, rather there is a new set of Report Service Web Parts developed by Jay Nathan. Jay hasn't posted any code yet but the screenshots look very promising. I will be looking forward to their release and Jay's new website both of which are coming soon.