.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

The XML Files: XPath Selections and Custom Functions, and More

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

More Related Resource Links

The XML Files: Introducing XPath 2.0


Over two years ago in one of the first installments of this column, I wrote about XPath version 1. 0 (see The XML Files: Addressing Infosets with XPath for a quick review). As stated in the original specification: "XPath is a language for addressing parts of an XML document.

Aaron Skonnard

MSDN Magazine January 2003

How does one create context-sensitive custom help files?

We are an ISV and would like to know how to add a feature to our solution that uses the existing help functionality to display help based on the user type and context of that user type in the system.  I have been searching to no avail, if there is a How-To article somewhere I'd love a link! Thanks, -Torrance R. MillerIntegrating the future into today

Unable to reference custom XSL files in a custom ContentQuery WebPart



I'm doing a custom ContentQuery WebPart but i'm having difficulties referencing my XSL styles. I've googled a bit and tried to store the custom XSL files in the /Style Library/XSL Style Sheets/ and referencing them like this

<property name="MainXslLink" type="string" >/Style Library/XSL Style Sheets/CQWebPartMain.xsl</property>

and since i read SharePoint might have not be able to use SiteCollection relative urls i tried this:

<property name="MainXslLink" type="string" >http://my-dev-site/Style Library/XSL Style Sheets/CQWebPartMain.xsl</property>

and my first approach was:

<property name="MainXslLink" type="string" >/UIResources/CQWebPartMain.xsl</property>

Custom Workflow Error: The Workflow files were saved but cannot be run


Hi all,

I'm wondering if someone would have any suggestions on how I can troubleshoot this custom workflow issue.

Recently we can't attach any SharePoint Designer workflow to any list in a farm. We get this error message:

"Errors were found when compiling the workflow. The workflow files were saved but cannot be run. Unexpected error on server associating the workflow"

The standard workflows from UI seems to be working fine. Also user defined workflow is enabled. In the past I was able to fix similar issue with another farm following this post (remvoing SP designer custom workflow activities entries)- but does not look like this is the case this time.

Nothing in the logs regarding this error. Any suggestions would be greatly appreciated.

Many thanks!


When using a custom theme, there is no custom files added to "_themes" directory.


I've been working on customizing some Sharepoint 2010 Team sites and have read through many helpful articles on how to create and edit custom themes. The most consistent method is to create a base theme in Powerpoint which I've done.

I then install this THMX file in the themes library and apply it to my pages which seems to work as expected. The one inconsistency with what these articles say and what is happening on my end is that there is no numbered directory created in the "_themes" directory when I view All Files. These articles explain that this directory is created every time you apply a theme to your site so you can further edit the images and CSS associated with the theme. All I see in this "_themes" directory is "Custom.thmx, CustomPreview.thxm."

Is there some site setting or permissions issue I should look into to have this directory available to me?


Files won't download from ASP.NET site when the site has a custom HTTP Handler mapped to the file e


When I have a HttpHandler class in C#/ASP.NET mapped to a file extension in IIS any file with that extension fails to download/display in web browsers (it's downloaded as a 0-byte file in some browsers and nothing at all in other browsers).  After removing the application mapping for the HttpHandler in IIS so it doesn't call the IHttpHandler class in C#, the web browser downloads the file successfully.

This was tested with an IHttpHandler class in C# that has an empty ProcessRequest method. Any ideas on what the problem could be?

Clean Web.Config Files (VS 2010 and .NET 4.0 Series)

.NET 4 includes a new version of the CLR, and a new .NET 4 specific machine.config file (which is installed side-by-side with the one used by .NET 2, .NET 3 and .NET 3.5).

The new .NET 4 machine.config file now automatically registers all of the ASP.NET tag sections, handlers and modules that we've added over the years, including the functionality for:

.ASP.NET Dynamic Data
.ASP.NET Routing (which can now be used for both ASP.NET WebForms and ASP.NET MVC)
.ASP.NET Chart Control (which now ships built-into ASP.NET V4)
What this means is that when you create a new "Empty ASP.NET application" project in VS 2010, you'll find that the new default application-level web.config file is now clean and simple:

Custom Controls in C# .NET

Embedding user controls in a Windows form is just like adding a simple button or text box that are already provided with .NET. These basic controls were written essentially like you code your own controls. Typically the controls you design are to be used in multiple forms or to modularize your code. These reasons help reduce the amount of code you have to type as well as make it easier for you to change your implementation. There should almost never be any reason to duplicate code because it leaves a lot of room for bugs. So, implementing functionality specific to your control in the control's source code is a good idea. This reduces code duplication as well as modularize your code, which is a good programming guideline.

Insert value using Table Value Functions

a real gem in Sql Server 2008. mostly people still using Stored procedure may be they shifted to SQL Server but they are not using TVF right now.

Introduction to Functions

A function is a section of code that is used to perform an isolated assignment. Once it has performed its assignment, the function can be accessed to present its result(s).

In Transact-SQL, a function is considered an object. After creating the function object, it becomes part of a database. You can then execute it when necessary.

Built-In Functions Fundamentals

While your primary job as a database developer consists of creating lists, probably your second most important job is to assist your users with the various assignments they must perform on your application. One way you can assist is to use functions that perform otherwise complex tasks. We introduced and described functions in the previous lesson. To assist your development with the different tasks of a database, Transact-SQL ships with various already created and tested functions. You just need to be aware of these functions, their syntax, and the results they produce.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend