Archives
-
FireFox doesn't understand a DOM node-tree?
<div id="div1">
<div id="div2" onclick="alert(this.parentNode.childNodes[0].id)">clickme</div>
</div> -
Expand/Collapse EditorParts (ASP.NET 2.0 Portal Framework)
If you've been experimenting with the ASP.NET 2.0 Portal Framework (like me!), you know there are 4 out-of-the-box EditorParts that you can place in the EditorZone (the EditorZone is the Zone where you can edit a WebPart's properties). The 4 standard EditorParts are:
-
Copy & Paste WebParts (ASP.NET 2.0 portal framework)
Some developers in the ASP.NET 2.0 Forums have asked questions on how to copy a WebPart (including it's configuration) from one page to another.
-
SiteMapProvider.CurrentNode isn't aware of default.aspx documents in webfolders
I think the 'default document' option in IIS is a great way to get clean url's without those .aspx extensions. So instead of calling the url 'http://www.mysite.com/news/default.aspx', you could also call 'http://www.mysite.com/news', which will get you to the same page. This is because IIS finds the default document 'default.aspx' in the news folder.
-
Impersonation inside HttpHandlers
By using basic or integrated IIS security, you can set the security context on whose behalf the code is running to the current user by adding these two lines in your web.config: