caughtinthedotnet

Stories submitted by caughtinthedotnet

OpenXML & Word Doc Manipulation using Sharepoint Data(caughtinthedotnet.blogspot.com)

submitted by caughtinthedotnetcaughtinthedotnet(40) 3 years, 3 months ago

How to use the OpenXML 2.0 SDK to create and manipulate word docs using its C# API. read more...

add a comment |category: |Views: 36

tags: another

Dynamic Drop-Down Menus in ASP.Net 2.0 / 3.5(feeds.feedburner.com)

submitted by caughtinthedotnetcaughtinthedotnet(40) 3 years, 7 months ago

One of the most essential components to a solid site is a versatile and intuitive navigational drop-down menu. It's a variation of an ASP.Net 1.1 solution previously published in 2003 by WROX. It works, but it's a slight modification from the 1.1 version, and it seemed a little cumbersome to customize the look and feel, so I continued to look for something designed specifically for 2.0 and up that would be simple to use out-of-the-box and easy to customize. Surely enough, I stumbled upon a solution that met my three goals, written by ScottGu (http://weblogs.asp.net/scottgu/archive/2006/05/02/444850.aspx) To build a drop-down menu, we need the following: 1. Data Feed 2. CSS Stylesheet 3. Server-side control that will generate a menu from #1 and #2. The data feed is your standard web.sitemap (http://msdn.microsoft.com/en-us/library/system.web.sitemap.aspx) that you can build in Visual Studio that looks something like this: <xml version="1.0" encoding="utf-8" ?> <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="" description=""> <siteMapNode url="" title="" description="" /> <siteMapNode url="" title="" description="" /> </siteMapNode> </siteMap> The server side control is our typical with a SiteMapProvider, which is just responsible for reading in the data feed - in this case our web.sitemap file. The CSS is the tricky part. Using out-of-the-box simplified customizations won't get you your desired result, and if it will, chances are it probably won't look the same from browser to browser. Our solution: CSS Control Adapter Toolkit for ASP.Net 2.0 You can download it here: http://www.codeplex.com/cssfriendly The toolkit essentially takes the worry out of coding for cross-browser compliance by providing ASP.Net controls that are already formatted in CSS to look pretty and the same in all common browsers, which is fantastic, because usually, you have to buy a component like this. For our drop-down menu, you can do vertical or horizontal; it uses CSS best practices by utilizing ul/li's instead of tables. Check out ScottGu's blog to get the code, documentation, and a more detailed explanation of exactly how to build, install, and use the drop-down menu with the CSS Control Adapter Toolkit. read more...

add a comment |category: |Views: 137

tags: another

Making use of the 'Drop" in Drag-and-Drop in ASP.NET/AJAX(feeds.feedburner.com)

submitted by caughtinthedotnetcaughtinthedotnet(40) 3 years, 7 months ago

Working within the .NET 2.0 or the 3.5 framework, there is functionality in the AJAX toolkit that let's you drag things using the DragPanel control in the AJAX control toolkit (http://www.asp.net/AJAX/AjaxControlToolkit/Samples/DragPanel/DragPanel.aspx). Very cool stuff if all you are trying to do is allow the user to reposition things. If you are trying to extend it for a more practical use, like being able to drag an item to a shopping cart, you don't really get that functionality out of the box with the AJAX control toolkit. How do we accomplish this given that this functionality is non-existent in the AJAX control toolkit? I was asking myself this question until I ran across a very cool solution by Jeff Prosise who writes for a section in the MSDN Magazine called Wicked Code. You can subscribe to it here: http://msdn.microsoft.com/en-us/magazine/rss/?col=Wicked%20Code The caveat with his solution is that it uses the Microsoft.Web.Preview library which comes as part of ASP.Net Futures (downloadable from here - http://www.microsoft.com/downloads/details.aspx?FamilyId=A5189BCB-EF81-4C12-9733-E294D13A58E6&displaylang=en). The official description of the ASP.Net Futures is "Contains features currently being considered for future versions of ASP.NET and the .NET Framework," meaning you probably won't find too much documentation or support for it... or a guarantee of any sort that it will be included in the next release of the .NET Framework. There is the fine print. If you are planning on deploying this to a high volume enterprise environment, it's certainly something to think about, however, Jeff's solution looks elegant, robust, and customizable to fit your need. The code, article, and documentation is available here: http://msdn.microsoft.com/en-us/magazine/cc135985.aspx read more...

add a comment |category: |Views: 11

tags: another

Workaround to AuthenticationService security issue over HTTP(feeds.feedburner.com)

submitted by caughtinthedotnetcaughtinthedotnet(40) 3 years, 7 months ago

The version of AJAX, included in .NET 3.5 does not support cross-domain proxy authentication. So, how do you solve the problem of making sure your user's credentials don't get traced through unencrypted HTTP headers while keeping the page served over HTTP and not redirecting him/her anywhere? MD5 encryption via Javascript read more...

add a comment |category: |Views: 5

tags: another