.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

VS 2010 HTML validation "in CSS" option - where the hell is it?

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

In VS 2008 there is a very useful feature of background HTML validation - it checks if CSS class name is valid i.e. it exists in one of the linked css files. But VS 2010 Express does not do that any more. And the relevant setting in Options->Text Editor->HTML->Validation->in CSS is not there. Ok, maybe they made it paid for option? VS 2010 Professional? Not there. Or maybe VS 2010 Ultimate? Not a trace.

1. am I blind?

2. they decided it is too convenient to use and removed it?

3. they will "introduce" it in SP1?

What is going on? That one thing made me move back to VS 2008 web developer.


View Complete Post

More Related Resource Links

ASP.NET, HTML, JavaScript Snippet Support (VS 2010 and .NET 4.0 Series)

This post covers another useful improvement in VS 2010 - HTML/ASP.NET/JavaScript snippet support. Snippets allow you to be more productive within source view by allowing you to create chunks of code and markup that you can quickly apply and use in your application with a minimum of character typing.

Visual Studio has supported the concept of "snippets" for VB and C# in previous releases - but not for HTML, ASP.NET markup and JavaScript. With VS 2010 we now support snippets for these content types as well.

Video: Field and List Item Validation in SharePoint 2010

SharePoint supports the ability to create Excel-like field validation formulas to validate field data in a list, which greatly reduces the amount of custom code that a developer must create and deploy. (Length: 1:44)

SQL Server + ASP.NET Security Validation + HTML Markup Security

Hey everyone!I have an application, that for example, the customer gives me their Address. I store it in my database using the below code:        Dim connectionString As String = ConfigurationManager.ConnectionStrings("DMBConnstring").ConnectionString         Dim insertSql As String = "INSERT INTO BasicUserProfile(UserGuid, Firstname, Lastname, Nickname, Address1, City, State, Zip, DOB, Gender, SeekingGender, Sexuality, SeekingSexuality, HaveKids, WantKids, BodyType, SeekingBodyType, Ethnicity, SeekingEthnicity, Religion, SeekingReligion, Smoking, SeekingSmoking, Education, SeekingEducation, Relationship, SeekingRelationship) " _         & "VALUES (@UserGuid, @Firstname, @Lastname, @Nickname, @Address1, @City, @State, @Zip, @DOB, @Gender, @SeekingGender, @Sexuality, @SeekingSexuality, @HaveKids, @WantKids, @BodyType, @SeekingBodyType, @Ethnicity, @SeekingEthnicity, @Religion, @SeekingReligion, @Smoking, @SeekingSmoking, @Education, @SeekingEducation, @Relationship, @SeekingRelationship)"         Dim connectionString As String = ConfigurationManager.ConnectionStrings("myconnstring").ConnectionString        Dim insertSql As String = "INSERT INTO BasicUserProfile(UserGuid, Firstname, Lastname, Nickname, A

How to fix "Validation(): Element 'xxxx' is not supported" Visual Studio 2010

Since about a month ago,I started to get validation warnings at design time on asp.net server controls (any control actually) within the html design view for VS 2010,intellisense on all controls would not work at all,the messages look like this: Validation(): Element 'Label' is not supported. Validation(): Element 'GridView' is not supported ....etc The compilation done successfully but the warnings still exist and intellisense is not working at the source tab I tried to reset the settings of VS 2010 ,disabled all extensions and few other ideas but none of them solved the issue,I got stuck. I did a search over the internet about this issue and found this article on Doug Kennard's blog: http://www.gotknowhow.com/articles/fix-validation-element-not-supported-visual-studio-2010 Splendid,that article is a life savior.

Client side validation using Client OM in sharepoint 2010

Hi, Can we use Client Object Model for Client side validation? Suppose, i have a SharePoint 2010 List. While adding a new item in that list, i want to check for Title is already available or not, person has posted any item earlier or not..that kind of stuff. Could i check this at client side rather than ItemAdding Event, so that i can reduce the network traffic? Thanks in advanced. Hardik Shah Solution Developer.

How do I turn off HTML validation in the Content Editor Web Part?

I'm fairly used to SharePoint 2007, where I could inject pretty much whatever I wanted into the CEWP, and among other things affect the page style or create div-based layouts. However, in SharePoint 2010, inserting code into the CEWP seems to go through a HTML validation process, which inserts and converts the original HTML code and ends up in incorrect results. How can I turn off this HTML validation stuff, or alternatively, is there any other way for me to inject HTML into a web part as I wish?

No Standalone Option Given when Installing Sharepoint 2010 Foundation

I downloaded the Sharepoint 2010 Foundation installer ran the prerequisites installer then ran the Sharepoint Foundation install but i do not get a Standalone Option during the install only the install path then it goes strait into the configuration wizard asking for the server farm info can anyone help server 2008 DC r2 x64 on a vmware esxi box Thanks, craig

SharePoint 2010 Installation - Which option is better ?

Hello All, I am planning to install 2010. Which option you think is better In-Place or Attach Content DB ? Can someone share their experience. Also I am looking to upgrade from MOSS 2007 to MOSS 2010. ( NO change in version like WSS -> MOSS 2010 ). Thanks in advance.

formula validation setting on column sharepoint 2010

Hi, Hi,  I have a two fields(mailid,cost,mailid2), i need a list validation of mailIds if already existing  mails three time I need a validation for new request , i need a formula for column in validation setting ->formula in SP2010  if mail is already existing validation  i need formula for validation setting for list it's new feature in sharepoint 2010 Regards

How to remove * for validation fields in Infopath 2010



I am using Infopath 2010 and i had written validation rule for a fields.While loading the form field is showing with red * mark.It will go away as soon as i enter value but i don't want to diaply red * even i don't enter value just display a tooltip message saying that "Please enter vale" on submit button click.

Please help me in this out?


SharePoint 201 VS 2010 WF: PersistenceException: The security validation for this page is invalid


Setup: Visual studio 2010 SharePoint 2010 Workflow with custom infopath task edit form, with file attachment control. If I attach a file to the infopath task edit form, I got the following error message, though the attachment is saved, but the next task is not created and the current task is not marked as completed either.

09/27/2010 15:34:31.18     w3wp.exe (0x2B88)                           0x2844    SharePoint Foundation             Workflow Infrastructure           88xr    Unexpected    WinWF Internal Error, terminating workflow Id# 04621f32-17d4-439a-883a-7566b96481bb     
09/27/2010 15:34:31.18     w3wp.exe (0x2B88)                           0x2844    SharePoint Foundation             Workflow Infrastructure           98d4    Unexpected    System.Workflow.Runtime.Hosting.Pers

Infopath 2010 Form design with Optional Section and Option Button


I need help or a push in the right direction. I am creating new forms for sharepoint2010 using infopath2010. Trying to make it so if someone hits an option button it activates an optional section or something simular. basicly if someone answers yes I have more questions for them and dont want them to show UNLESS they say yes.

as always please and thank you

How do I keep SP 2010 from changing my HTML code? It is really ____ me off!!


Ok, I am trying to add simple html and css to a text box defined as "Enhanced rich text (Rich text with pictures, tables, and hyperlinks)"

But everytime I save and close SP changes the HTML. It is really starting to make me MAD. can I turn that "Feature" off? I am trying to add something as simple as this.

<hr noshade="true" width="1px" /> but SP keeps changing it to <hr width="1px" />


<div style="background-image:url('imgs/main_headr.jpg');"> </div>

but SP keeps removing the style all together.


I am experiencing this in CEWP's as well as pages.

MVC3 Razor - Option to Not have Html encoding


Since all calls to methods (using Razor View Engine and syntax) that return strings have their result Html encoded, is there a way (or an option) to not have the return values html encoded?

For example if I have a simple method like so:

protected string RenderTable(IEnumerable<T> data)
  /* Return some html */

and then in a view (using the Razor View engine) I have code like this:


I'd like the returned string to be inserted into the view as-is and not Html encoded.

What are my options?

Is there an option to force Strong Name Validation when Application is under Membership condition UR


i'm working in a team that develops a managment Application that manages our
Hardware Product.
The project is written in .Net Technolgy Winforms + Smart Client which is
downloaded from our hardware Web Site and running under Internet Exploerer
which acts as a container for our application.

Inorder for Our Application to run we set .Net Security Additiona Code Group
with our required Permission Set with MemberShip Condition URL.
So far So Good.

We are about to pass U.S Federal Certification for the Application and
according to the Federal Testsing for the application to be approved our
application needs to use one of the following membership Conditions: Strong
Name, Publisher, or Hash.

The problem is that when running under Internet Explorer we fall under the
URL membership condition and Creating any of the 3 member ship conditions
above will not work since application is downloaded from the URL and running
as a smart client.

Does Microsoft Security Experts have anysuggesion ? Something we do not
understand Correctly ? workaround ?

Just to Give an idea of the requirements see below some of th

Html Editor Focusing with validation


Hello Friends,

In my .aspx page I use Ajax Html editor.... and Currently I need to focus the Editor if the Editor's Content is empty.....

For That I use the following js functions in my Page.....

<script type="text/javascript">
        function pageLoad() {
            if (typeof window.ValidatorGetValue == "function") {
                if (typeof window.ValidatorGetValue_saved != "function") {
                    window.ValidatorGetValue_saved = window.ValidatorGetValue;
                    window.ValidatorGetValue = function (id) {
                        var component = $find(id);
                        if (component != null) {

how to work with html 5 in visual studio 2010


i am using visual studio 2010 professional and i need to working with html 5. are i can see HTML 5 tags in my intellisense

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