.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

Validation errors and getting the site disability accessibile

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint

I'm using the official validator from the World Wide Web Consortium, http://validator.w3.org/

And I'm seeing a lot of validation errors. What can be done to make my sharepoint publishing site a little more accessibility friendly?


View Complete Post

More Related Resource Links

Why does Model Validation Errors steal my markup?



I have a partial view where I render, if the user has choosen an option, a button that permit the user to generate automatically a value for a certain field. Please give a look at this picture to understand what I mean.

This is achieved using the following markup on the partial view

<%= Html.LabelFor( model => model.IssueCode )%>
<br />
<% if ( Model.HasCodeGenerator ) { %>
    <%= Html.TextBoxFor( model => model.IssueCode, new { style = "width:120px;background-color:#eeeeee;border: solid 2px #dfdfdf", @readonly = "readonly" } )%>
    <% if (Model.ModelState == ModelStateEnum.Add) { %>
        <button id="codeGenerator" style="font-size: 0.7em;margin-right: 10px">Genera codice fascicolo</button>
    <% } %>
<% } else { %>
    <%= Html.TextBoxFor(model => model.IssueCode, new { style="width: 120px" })%>
<% } %>
<%= Html.ValidationMessageFor(model => model.IssueCode, "*")%>

As you can see I append always an Html.ValidationMessageFor() at the end of the input field and a ValidationSummary aut the end of the view.

When the user submits the form the fi

Did New-SPContentDatabase and completed with errors, no lists or content on site


Hello team,

I know I am missing something here, and I have searched, but I cannot seem to find the missing piece.  I did a new-spcontentdatabase to connect my sp2007 05 db to my sp2010 08 db environment.  It went through and went to 100% and then said it was completed, but with errors.

I looked through the error log and it was all 'could not parse date/time string; string not recognized'.  So I figured I would not be overly worried about it.  Now here is where my delusional thoughts come in and I need help.  I had assumed (yeah i know 'assumed') when I created a site under the new web app it would populate all the lists and everything from the content database.  It obviously didn't, how do I get that?


How to make the validation Errors as Compilation Errors



As part of our Custom Activities, we are adding few validation errors to the Metadata.These errors are appearing in design time under Error List; but still we are able to build the project successfully.

Our requirement is that, if there is any validation error, it should throw compilation error.

Looking for some good suggetions to implement this behaviour.



Assistant Consultant

Getting unknown errors in central administration. Site backups always fail. OWSTimer Errors.


Originally we had a 1 server standalone MOSS2007 install. (All service packs applied)

Then we added another server to the farm to act as a web server.

We decided to take the web server offline. So that ideally we would be back to our 1 server standalone setup. All our sharepoint sites still work fine after we did this, but things on the central administration side are horribly broken.

1. The web server still appears in farm topology even though it is offline, no longer exists. It also appears as "Windows SharePoint Services Database".

2. Trying to go into "Servers in farm" under Operations causes an unknown error.

3. Trying to go into "Timer job status" under Operations causes an unknown error.

The error log displays the following each time I try to access "Servers in farm" or "Timer job status"

OWSTIMER.EXE (0x199C) The following error occured while trying to read the ConnectionString property.  Object reference not set to an instance of an object.     


Now before I try to do some serious reconfiguration I would like to backup my sites. If I use the "Perform a backup" feature in central administration, it tells me the backup job has been scheduled, but after waiting for hours it still hasn't started, and doesn't look l

Detecting cell validation errors from a DataGrid

Is there a way, from the DataGrid, to work out if any of it's rows have a validation error? I know you can use the Validation.HasError property at the level of an individual cell, but it seems that information doesn't filter back up to the DataGrid so you can test a simple property on the DataGrid to see if there are any errors (i.e. if you get Validation.HasError at the DataGrid level, it's always false regardless of whether or not there are any errors).

Client Side Validation - suppressing specific property errors


Hi there,

I have implemented some Client Side Validation in MVC via <%Html.EnableClientValidation(); %> I am using Metadata Descriptions an EF and it's working fine but one thing is driving me crazy!!

I have a Price field that is a number (double) and I have some metadata errors for it for range and required but MVC is adding in this validation "The field Price must be a number." which would be fine except!! when I type 20.     (note the decimal point) this validation fails with a popup "The field Price must be a number." then when I type another number e.g. 20.0 it goes away again.

Is there some way to ignore/suppress non custom property validation errors??



Suppressing Workflow Activity Validation Errors


I would need to suppress the validation errors for the workflow activities.

Basically I'm creating a custom activity which composes couple of workflow activities. When I drag drop my custom activity in Rehosted designer it is showing all the validation errors of workflow activities which needs to be suppressed.

How to suppress validation errors ?

Client-Side validation errors but I don't know what they are?





I am using the jquery unobstrusive client-side validation for my "Create" form, and it is returning errors but I don't know what they are.


I put a ValidationMessage helper on each control on my Create, but the POST is getting canceled and I don't know why.  ValidationSummary is not filled out so I don't know how to troubleshoot the issue.

How do I go about troubleshooting it?


Creating My Site collection on new web app causes web part errors


I'm configuring a brand new SharePoint 2010 Enterprise instance for the first time.  We have 2 WFE, 1 app server and 1 DB server.  Having read it is best practice, I created a new web application for My Sites.  I chose to use the same IIS site and IP address as the main SharePoint site collection but a different host header (my.sharepoint).  The problem I've come against is that opening http://my.sharepoint from any location except the application server throws a bunch of web part errors.  (Web Part Error: This page has encountered a critical error. Contact your system administrator if this problem persists.)  However, when I open the site from the application server box, I don't get the errors.  I think the problem has to do with the WFEs.  I'm seeing a bunch of DCOM errors on the WFEs complaining about security but I don't know if that is related or how to change the security of the DCOM components, the buttons are greyed out.

Can anybody help me start trouble shooting this? 

Changing the graphics on the home page of a SharePoint site

When you create a site in Microsoft Windows SharePoint Services by using the default Team Site template, the home page includes two default graphics. A Windows SharePoint Services graphic appears in the body of the page, and a picture of a house in a circle appears near the site title. You can change these graphics to customize your site. Changing the smaller graphic requires a Windows SharePoint Services compatible Web page editor

Take a tour of your SharePoint site

What is a SharePoint site for?
A SharePoint site is a Web site that provides a central storage and collaboration space for documents, information, and ideas. A SharePoint site is a tool for collaboration, just like a telephone is a tool for communication, or a meeting is a tool for decision making. A SharePoint site helps groups of people (whether work teams or social groups) share information and work together. For example, a SharePoint site can help you:

Coordinate projects, calendars, and schedules.
Discuss ideas and review documents or proposals.
Share information and keep in touch with other people.

Six easy ways to customize your site using Web Parts in SharePoint

Becoming familiar with Web Part customization techniques gives you a range of page-customization choices. For example, you can customize your site's home page so that it displays the specific information that your team needs. You can rearrange the list items on the home page, add lists, and even change the images on the home page. As you become more familiar with Web Part Page customization techniques, you can build interactive Web Part Pages that makes the data in lists more dynamic and useful, and you can add new Web Parts that provide access to external data and Web services.

Tips to Improve Your ASP.NET Web site performance

ASP.NET has been developed with lots of features which makes developer life easy. Start from ViewState, PostBack, Server Controls , User Controls and etc. All of them can make your web development experience fun and easy, but improper use of them can cause your site performance slowdown. Most of the controls generate overhead to the client and server. Therefore in this article, I I will list out about things you can do and don't to improve your ASP.NET website performance.

SharePoint Application and Site Pages - Part 1 of 2

In this first part of the two part series, Steven covers the differences between Site and Application pages in SharePoint 2007, why each may be used in various circumstances, and prepares for the construction of a menu located application page. After a brief introduction he examines the concept of Site Pages and Application Pages separately in detail with supported screenshots.

SharePoint Application and Site Pages - Part 2 of 2

As the second article in a two part series, Steven examines the attributes and details of a SharePoint 2007 application page, including the construction and feature deployment of the same page based project. Since this is a WSS level objective, as opposed to MOSS, you will not need MOSS to work with the code included in this project. Windows Server 2003, WSS, and Visual Studio 2005 are all that is needed, with no additional add-ons. He provides a detailed analysis of each step involved in the creation and deployment of the project.

The best site i ever seen

See this site and enjoy the feature and designs which as i think you never seen ...

Thanks !!!!

Asp.net web site security database


Hello all, I'm new to asp.net and I'm currently practising some few stuffs. I'm creating a hotel reservation system using ASP.net Web site in visual studio 2008 and I currently don't have an App_Data in my solution explorer unlike visual web developer.

1. I have planned to make users of the website login before making their reservations.

2. I have also planned to develop the website such that I will be able to know all reservations made by each user.

First and formost, I will like to know how I can access/View the security database?

Secondly, how do I link my custom made reservation database and the security database in order to achieve my second plan above.?

Someone help me.

Thank you.

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