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

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

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

Posted By:      Posted Date: October 12, 2010    Points: 0   Category :ASP.Net

 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 ???



View Complete Post

More Related Resource Links

The connection type is not compatible with any other web parts on the page


Is there anyway to determine which interface a webpart uses for connection?

I have a custom web part, implementing the ICellConsumer interface, and I am trying to send values to the SPVisibilityFilter webpart, available here http://spvisibilitywebpart.codeplex.com, which seems to be implementing the ICellConsumer interface as well.

Yet, I still keep getting "the connection type '' is not compatible with any other web parts on the page", when trying to connect the web parts on the page. What am I missing?

Need Syntax To Make Results of LINQ Union Return Non-Generic Type



I have the below SQL which works just fine:

SELECT     Message, CreateDate, AccountId, AlertTypeId
FROM       dbo.Alerts
SELECT     TOP (100) PERCENT Status, CreateDate, AccountId,
                          (SELECT     10 AS Expr1) AS AlertTypeId
FROM         dbo.StatusUpdates
WHERE AccountId = PassedInParameter

I have been going about trying to convert the above into a LINQ method and am having problems with return types.
As the above SQL illustrates, I am querying two distinct LINQ tables - Alerts and StatusUpdates -
and then attempting to perform a Union on them. In order to do the union in LINQ, I have to have agreeing types. So, I
am using "var" to make the results of "alerts" and "updates" generic before the union.  

public IList GetStatusUpdatesAsAlertsByAccountId<T>(Int32 accountId)
            using (WorkbookDataContext dc = _conn.GetCont

(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!


SharePoint 2007 - Consolidating everything as feature into WSP [Content Type, Page Layout, Pages, Ma


Hello –


Overview – We are building a Mobile Web Site using SharePoint 2007. The big screen site has been already built and we need to integrate the mobile site into same site collection of big screen –


·         The Mobile site will use the existing content types of existing big screen site

·         We will build a new custom Master page

How to make browser scroll to the bottom of page


Hi All,

  How to use asp.net C# to scroll to the bottom on page on post back or programmatically decision? 

The type of page you have requested is not served


I am trying to do maintenance on an existing web site.  I have loaded Visual Studio 2005 on a machine that already has IIS version 6 installed.


The site uses  only classic ASP pages (no aspx).


When I attempt to run the site from within VS, the browser opens to "http://localhost:1647/yourDev/yourpage.asp" rather than the expected "http://localhost/yourDev/yourpage.asp".  This error message displays:

Server Error in '/yourDev' Application.

How to make ContentPresenter Microsoft Surface compatible?

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  

How to make the Property Name and Type readonly for a PropertyEditor ?

Hi As part of my project I am using a custom PropertyEditor, which is inherited from  DialogPropertyValueEditor and overriden the ShowDialog method. As an Input, I am providing a Dictionary<string, InArgument> to the property editor. The property editor is openning properly and I am able to provide values for various properties in the Editor. But, the editor is allowing to change the Property name and Type. How can we make the property name and type readonly ? Regards Ambily IT Analyst DialogPropertyValueEditor

What is the standard practice to make sure one slow-running page doesn't affect other pages?

Page A loads very fast; Page B loads very slowly and does some CPU-intensive things on the web server.I noticed that if someone is loading Page B, then Page A also loads slowly - for ALL users. What is the standard practice for making sure this doesn't happen?  If multiple users are loading Page B at the same time then Page A is ridiculously slow.Is there an IIS setting, web.config setting, or hardware configuration I could use to make sure that the fast-loading pages aren't bogged down by other pages that need more time to load? 

Create buttons for "new item" which create a new page of a specific content type

We have a Pages library (wiki) which supports a few content types (and page layout associated). We want to enable users to click a button for example of "new custom enterprise wiki page" - so a new page of content type article will be open in edit mode. Can someone help how to develop? (it has to mimic the behavior that happens when user creates new page from the Ribbon or Site actions and has to choose the content type, it also has to keep the new page in edit mode and not just create it).  

How to make Hidden Fields appear on every other page when there are other data regions exist on the

Dev Environment: Visual Studio 2008 Client reporting(.rdlc) I have a client report with one hidden field and one table. The data for the hidden field come from one dataset and the data for the table comes from another dataset. Since there is huge data on the report, the table data spans multiple pages. at the same time i want the hidden field to appear on every other page along with table. i'm using these hidden for report header purposes. As an alternative i have used hidden parameters instead of Hidden Fields. Are there any alternatives other than this ? -- Praveen

Unable to enter the product key in the Convert License Type page (textbox is read-only)

We installed both WSS and MOSS SP2 and had planned to follow the manual fix for the known issue that the patch unexpectedly activates a trial expiration.  However, the textbox to enter the product key is read-only.  We have tried accessing this page using the normal administrator credentials as well as the farm account; no success.The SP2 issue and manual fix is detailed here, http://support.microsoft.com/default.aspx/kb/971620We were able to experience this problem on a farm running the Feb 2007 cummulative patch (version so it's not related to the SP.  But running the SP increasing the need to find the fix.Any help is appreciated,J. Aqui

How to design common page across different sub sites and make them customizable?

I have a requirement to develop common pages with web parts and all authoring capabilities that should be hosted in the top level site and can be shared among all sub sites. The advantage of this should be as long as the sub sites don't want to customize this common page for look and feel or authorizing content this page will be served as a common page and yields the performance benefits. But when the sub site wants to customize the common page, it will have its own copy and any changes made to the common page shouldn't be available for the customized common page. How can I achieve this? I tried with the application page by hosting them into the 14\TEMPLATE|Layouts folder, but couldn't see the publishing capabilities enabled. Help will be greatly appreciated.

Field type Choice is not installed properly. Go to the list settings page to delete this field.

Has anyone received this error message and know how to deal with it? Field type  Choice  is not installed properly. Go to the list settings page to delete this field. I have received this error three times now, once when trying to add a 'List Definition From Content Type' in Visual Studio twice when trying to add from existing site columns in Sharepoint in the list settings and library settings from the ribbon from a list and a document library.

Form opening in infopath client despite Content Type settings "Display as a Web Page"

Hi all,   I have a strange behavior with my forms. The infopath template is defined as Content Type for my Form library, in the advanced settings I have checked "Display as a Web page" for the "Opening browser-enabled documents" setting. Despite that when the client is availble on the computer which is browsing the Form Library, I'm asked to "Open", "Save" or "Cancel" instead of opening the form in the browser.   Any idea why this is happening ?

Add a "Shared Documents" type documents browser onto an aspx Application Page?


I have an aspx page for a user to fire off a mail merge. I'd like them to choose a .html file from a document library in Sharepoint, then choose a contact list, and then have it fire off the mail merge.

The mail merge part is done and works from a console application with the .html file location hardcoded, and the contact list hard coded.
What I need is a way to add a documents browser onto the .aspx page. I can't see any obvious control I can drop on to achieve this though.

Ideally I would drop on a <Sharepoint:DocumentsBrowser> control, point it at a given ListId in sharepoint, and at runtime Sharepoint would display a nice shared documents type documents browser. Is this possible?

I wrote a book :) http://www.amazon.com/Microsoft-Visual-Studio-2008-Programming/dp/0071604081

spmetal generated class and content type (for page layout) retrieve problem


I'm working with a console application to generate my sites and subsites (hierarchy). And i've got a problem with a generated spmetal class.


this doesn't work:


static void Main(string[] args)


            string SITE = string.Concat("http://"Environment.MachineName);         



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