Some CSS property is not a known one in asp.net - How to over come?

Posted by Thiru under ASP.NET on 9/15/2011 | Points: 10 | Views : 39174 | Status : [Member] | Replies : 10
Hi,

While using JQuery and CSS file in asp.net

i am getting some error as:

Error 1 Validation (CSS 2.1): 'border-radius' is not a known CSS property name.
Error 13 Validation (CSS 2.1): 'format(' is not a valid value for the 'src' property.
Error 24 Validation (CSS 2.1): 'box-shadow' is not a known CSS property name.

Project is working fine but i don't want to see these error.

is there any thing like ignoring these type of errors?




Responses

Posted by: Vishvvas on: 9/15/2011 [Member] [MVP] HonoraryPlatinum | Points: 25

Up
0
Down
This property pertains to CSS3. Which browser and version you are using? Did you check this on Firefox and Chrome? looks like it more a brwoser issue and not ASP.Net.

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 9/16/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi Thiru,
As told by Vishvvas, the property that you have mentioned pertained to CSS3. Have you checked in IE 8.....?

Thanks and Regards
Akiii

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Thiru on: 9/16/2011 [Member] Starter | Points: 25

Up
0
Down
Thanks for your reply Vishvvas, Akiii
I am using Chrome - its working fine and showing what i expected in the screen.
I mean its showing error (not warning) in asp.net application - its makes me tension when i see these type of error/warning messages :-)

Any option to avoid showing CSS related error/warning message in asp.net application ?

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 9/16/2011 [Member] Bronze | Points: 25

Up
0
Down
Exactly,What error is reflecting ?


Akiii

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Thiru on: 9/16/2011 [Member] Starter | Points: 25

Up
0
Down
Already mentioned above:
Error	1	Validation (CSS 2.1): 'border-radius' is not a known CSS property name. 

Error 13 Validation (CSS 2.1): 'format(' is not a valid value for the 'src' property.
Error 24 Validation (CSS 2.1): 'box-shadow' is not a known CSS property name.


Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vishvvas on: 9/16/2011 [Member] [MVP] HonoraryPlatinum | Points: 25

Up
0
Down
The error is displayed when you are running in debug mode, right? If it is that the default browser attached with IDE (it must be IE of course), doesn't support that functionality. There is nothing wrong with the ASP.NET application. Make sure you have IE browser installed which supports CSS 3 and to best of my knowledge IE 8( also mentioned by Akiii) should remove your tension. Don't forget there is solution to every problem :)

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Thiru on: 9/16/2011 [Member] Starter | Points: 25

Up
0
Down
Thanks Vishvvas,
Let me try.

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Akiii on: 9/16/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi Thiru...

IE8 doesn't support the above CSS property....
but there is a hack you can do......
see this link -

http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser

http://dimox.net/cross-browser-border-radius-rounded-corners/

http://dimox.net/personal-css-hacks-for-ie6-ie7-ie8/

Thanks and Regards
Akiii

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Softtech on: 6/26/2012 [Member] Starter | Points: 25

Up
0
Down
Hi vishvash,

I can set for my browser but I do not know about user's browser so the problem for user is still there. so how can I overcome with that user's browser problem for
text-shadow property or other property which is in this original question.

Please response,
Hetal

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Johnbhatt on: 6/27/2012 [Member] Starter | Points: 25

Up
0
Down
Open CSS file in Visual Studio and change CSS 2.1 to CSS3 from Standerd Toolbar.
This will not warn you again even you are using any browser.

John Bhatt
Glad to Know, Free to Share.....
http://www.johnbhatt.com

Thiru, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response