Friday, February 20, 2009

ur doing it wrong...(debugging portlets in .NET that is)

Wow, can't believe how dumb i've been. Just now realized that you can tell Visual Studio to use the locall IIS web server instead of the Visual Studio Development Server. (Just right click on the project, properties, click on the web tab, and click "Use Local IIS web server". This allows you to debug portlets without having to attach to the asp.net process. Awesome.

update: looks like you don't get the same configuration choice in the Website project type, only Web Application projects...

Tuesday, February 10, 2009

Remove extra html markup from visual studio for portlets without it complaining

I usually just delete the , tags etc from a portlet page in visual studio, but it always causes annoying side effects like my autocomplete stops working and everything throws a 'does not validate' warning. Its probably obvious, but i got around this by putting in inline code snippets around my extra html tags that only displayed them if its not gatewayed...

This was VS doens't have a fit and you still don't get extra body tags in your portal. Have a better way of doing it? Let me know.