.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

How to make ContentPresenter Microsoft Surface compatible?

Posted By:      Posted Date: August 27, 2010    Points: 0   Category :WPF
Hey Guys, I'm working on a an application for Microsoft Surface. I want to be able to detect contact events on an instance of the ContentPresenter class. I can detect mouse and keyboard event, but not contact events. I'm thinking I solve this by creating a dummy class that extends the SurfaceUserControl and has an instance of ContentPresenter. So all I have to do in my main app is to call the dummy class and I will also be able to access contact events. Sorry guys, I'm not a well versed programmer, forgive me if I have butchered some terminology. BUT any help is much appreciated. Thanks! Kedar  

View Complete Post

More Related Resource Links

(Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Re


 I am trying to use ReportViewer 9 in Visual Studio 8 but I get this error when I try to run the page:

The base class includes the field 'ReportViewer1', but its type (Microsoft.Reporting.WebForms.ReportViewer) is not compatible with the type of control (Microsoft.Reporting.WebForms.ReportViewer).

Please help if you can!


The document could not be opened for editing. A Microsoft SharePoint Foundation compatible applicati


Hi All,

I have a document library which contains doc files. Microsoft office is not installed over the SharePoint server. When I am opening the document file from any Windows 7 or windows server 2003 machine it is giving me following error. (The client machines have microsoft office installed.)

"The document could not be opened for editing. A Microsoft SharePoint Foundation compatible application could not be found to edit the document."

Now when I open the same document from XP machine every thing works fine.

It is nothing to do with Firefox or IE version I have checked with all and the results are same for all browsers.

I am started loosing interest in SharePoint for its unpredictable behavior. Developing a thing in SharePoint is 10% work and 90% debugging.

I hope I will get some result or atleast the reason for behavior.


Mahitosh Kumar

Can i make my wsHttpBinding to be compatible to SOAP1.1 protocol



I have a WCF service written which has a wsHttpBinding. Now i want this binding to use SOAP 1.1 protocol.

Can i achieve this by any means.

Thanks in advance.



What doc type is used in .Net page to make it W3C compatible


 Can any one help what document type & HTML should be used in .Net page to make it W3C compatible so that it can pass the W3C validator check ???

Can single CMS (.Net) can be used for multiple domain names ???

How can we do without sub domain ???



How to make a drop down list of links in Microsoft Share Point Designer 2007.

I have just downloaded the free download of Share Point Designer 2007 and I
would like to know how do I make a drop down list of links in the program?.
Where you would place your mouse curser over the links in the link bar of my
site and I get a drop down of links for my site? I just also purchased the Step
by Step book
for Microsoft Share Point Designer 2007 and I can not find it in
the book on to make a drop down list of links for my web site. I would
appreciate your assistance in this matter. Thank you.
Sincerely yours,
Larry H. Ziegler

New Document requires a Microsoft SharePoint Foundation-compatible application


Hi all.

I'm trying to create a new document using the 'New Document' menu item in Library Tools - Documents tab.

Clicking on it I get this message: 'New Document' requires a Microsoft SharePoint Foundation-compatible application and web browser. To add a document to this document library, click the 'Upload Document' button.

The same using custom content types.

What should I check? thanks in advance

  • Testing envirnonment: Windows 7 Ultimate 64bit
  • SharePoint Server 2010 beta
  • Office 2007 Enterprise

How to make server controls browser compatible

The article How to make server controls browser compatible was added by suresh.mekkattil on Saturday, May 14, 2011.

Introduction In modern web development, we need to check the browser compatibility for our web pages. This can include changing the css classes, style to fix the design issues. Using ASP.NET we can check the browser compatibility without writing a single

Microsoft AJAX CDN

Content delivery networks (CDNs) are composed of "edge cache" servers that are strategically placed around the world at key Internet network points. These "edge cache" servers can be used to cache and deliver all types of content - including images, videos, CSS and JavaScript files.

Using a CDN can significantly improve a website's end-user performance, since it enables browsers to more quickly retrieve and download content. For example, instead of having a browser request for an image traverse all the way across the Internet to your web server to download, a CDN can instead serve the request directly from a nearby "edge cache" server that might only be a single network hop away from your customer (making it return much faster - which makes your pages load quicker).

Microsoft's Collaborative Application Markup Language (CAML) Loop

discovered an interesting error recently while working with Microsoft's Collaborative Application Markup Language (CAML) that, surprisingly, had received no ink. Partly what surprises me about this is that the error may require you to rewrite large sections of your code if you haven't previously considered this SharePoint limitation. I'll start with some context, but first of all the error is:

CLR Integration With Microsoft SQL Server

Transact-SQL provides as much flexibility as possible but, because it is not a real programming language, it has some shortcomings about many issues (memory management, exception handling, debugging, file processing (or streaming), object-orientation (classes), or thread management). Transact-SQL also lacks features of normal libraries (arrays, collections, serialization, expressions, or string manipulations, etc).

MVC architecture in ASP.Net using C# and Microsoft Data Access Application block

The Model-View-Controller (MVC) pattern separates the modeling of the domain, the presentation, and the actions based on user input into three separate classes [Burbeck92]:

Model. The model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the view), and responds to instructions to change state (usually from the controller).

View. The view manages the display of information.

Controller. The controller interprets the mouse and keyboard inputs from the user, informing the model and/or the view to change as appropriate.

Building Layered Web Applications with Microsoft ASP.NET 2.0 - Part 1

"Building Layered Web Applications" that shows you how to build N-Layer applications with Microsoft ASP.NET 2.0. These articles teach you how to design, build and use custom business objects in your web application. The target audience for this series are developers that are ready to make the switch from using SqlDataSource controls to ObjectDataSource controls with custom business objects. Experience with ASP.NET 2 and C# is necessary while some knowledge about object oriented design certainly helps. The design I am going to show you in these articles is a simplified version of a design you would use in a real world application. It doesn't feature all the necessary functionality your application needs, but instead focuses on the underlying concepts.

Microsoft StyleCop: Source Code Analyzer for C#

StyleCop is similar in many ways to Microsoft Code Analysis (specifically FxCop), but there are some important distinctions. FxCop performs its analysis on compiled binaries, while StyleCop analyzes the source code directly. For this reason, FxCop focuses more on the design of the code, while StyleCop focuses on layout, readability and documentation. Most of that information is stripped away during the compilation process, and thus cannot be analyzed by FxCop.

Microsoft SharePoint Online Standard Developer Guide

Developers Guide for SharePoint Online (Standard Offer). Microsoft® Office SharePoint® Online is a collection of Web-based tools and technologies built on Microsoft Office SharePoint Server 2007 that help you store, share, and manage digital information within your company. This white paper describes the customization (or extensibility) capabilities that are supported with the Standard offering of SharePoint Online

User Defined Functions in Microsoft SQL Server

User Defined Functions are compact pieces of Transact SQL code, which can accept parameters, and return either a value, or a table. They are saved as individual work units, and are created using standard SQL commands. Data transformation and reference value retrieval are common uses for functions. LEFT, the built in function for getting the left part of a string, and GETDATE, used for obtaining the current date and time, are two examples of function use. User Defined Functions enable the developer or DBA to create functions of their own, and save them inside SQL Server.



Dear gentlemen and ladies of the Microsoft Dynamic Data Team,

Mr. Steve Naughton says (and I hope so) that there might be chances that you read the posts published in this forum: I really hope so.

If that were the case then I am formally requesting to you in providing a "real answer" to my question:

I want to customize a dynamic data page (the details one) so I can have access to the data it has been already gathered from the end user UI (details.aspx) and use it to pass this same data to the following controls/pages that I am going to display next time to the end user.

For instance:

I have a screen with different types of data in it: texts, numbers, dates, check boxes, radio buttons and dropdownlists that has been filled with data by the end user. I want now to reset all fields exept the dropdownlist of which I'd like to keep the previously chosen values(the very same thing you do between dropdownlist of List.aspx ad Details.aspx). Even with FoxPro I could do that because data and controls were available there. It was as simple as setting carrying on to true.


I have found my

Beginner: this doesn't make sense to me


Do you need and "empty" script tag in the head to run scripts that are in the body?  Also, can you run JQuery scripts if they're in the <head> tag?  The first sample only works if the JQuery script is in the form (and body) tag, not in the head - even if I add $(document).ready(function() { });

This works

<head runat="server">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" />
<script type="text/javascript">
<form id="form1" runat="server">
<a href="">Here is a link</a>
<script type="text/javascript">
$('a').click(function () {
alert("you clicked me!");


This doesn't work.  Notice I removed the second <script> tag from the head

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="serve
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