473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Control Attributes

Tom
Hi,

At design time I am adding attributes to my controls (too detailed to get
into) with warnings (Warning 9 Validation (ASP.Net): Attribute 'ProductID'
is not a valid attribute of element 'CheckBox'). The application builds
fine and I can access the attributes at runtime. Should I be concerned
about these warnings or can I disregard them?

Thanks
Nov 8 '06 #1
3 1932
Just disregard them. You can add any attributes and Visual Studio can't
validate them without your custom schema.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Tom" <tb***@ball.comwrote in message
news:OX**************@TK2MSFTNGP03.phx.gbl...
Hi,

At design time I am adding attributes to my controls (too detailed to get
into) with warnings (Warning 9 Validation (ASP.Net): Attribute 'ProductID'
is not a valid attribute of element 'CheckBox'). The application builds
fine and I can access the attributes at runtime. Should I be concerned
about these warnings or can I disregard them?

Thanks

Nov 8 '06 #2
Tom
What do you mean "custom schema"?

Thanks

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uQ**************@TK2MSFTNGP04.phx.gbl...
Just disregard them. You can add any attributes and Visual Studio can't
validate them without your custom schema.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Tom" <tb***@ball.comwrote in message
news:OX**************@TK2MSFTNGP03.phx.gbl...
>Hi,

At design time I am adding attributes to my controls (too detailed to get
into) with warnings (Warning 9 Validation (ASP.Net): Attribute
'ProductID' is not a valid attribute of element 'CheckBox'). The
application builds fine and I can access the attributes at runtime.
Should I be concerned about these warnings or can I disregard them?

Thanks


Nov 8 '06 #3
I just assume that there should be a way of describing your attributes and
introducing them to the Visual Studio Designer. I don't have any particular
information on this but I would be very surprised if it is not possible.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Tom" <tb***@ball.comwrote in message
news:uw**************@TK2MSFTNGP02.phx.gbl...
What do you mean "custom schema"?

Thanks

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uQ**************@TK2MSFTNGP04.phx.gbl...
>Just disregard them. You can add any attributes and Visual Studio can't
validate them without your custom schema.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Tom" <tb***@ball.comwrote in message
news:OX**************@TK2MSFTNGP03.phx.gbl...
>>Hi,

At design time I am adding attributes to my controls (too detailed to
get into) with warnings (Warning 9 Validation (ASP.Net): Attribute
'ProductID' is not a valid attribute of element 'CheckBox'). The
application builds fine and I can access the attributes at runtime.
Should I be concerned about these warnings or can I disregard them?

Thanks



Nov 8 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mevar81 | last post by:
Hi to everybody.I have a problem with the PropertyGrid control.I want to display not all the properties of a generic Control(Button,TextBox,ComboBox,ecc.).In general I don't want to display only...
7
by: localhost | last post by:
What is the best and/or fastest way to enumerate attributes of an HTML control? In my page template, I have: <body id="myBody" bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0"...
7
by: moondaddy | last post by:
I have a user control being used instead of a frame page. when the user clicks on a menu item I need to send the ID (integer value) of that menu as a parameter in the postback of the user control...
7
by: Sky | last post by:
What I have currently: I have a user control called mod_container.aspx that is basically two divs -- the top a toolbar, that expands/collapse the second div which can contain other...
4
by: Brian W | last post by:
Hi All, I know this is a dumb question, but I'll ask it anyway... How do you do client-side scripting with an ASP control? For example I have: <asp:hyperlink id="Hyperlink1"...
6
by: Selden McCabe | last post by:
I have a form with a bunch of image buttons. When the user moves the mouse over a button, I want to do two things: 1. change the Imagebutton's picture, and 2. make another control visible. I'm...
3
by: | last post by:
For a given web form, I want to know what the +simplest+ way to add an attribute to all of a particular control type on that page. For example, I might want to add an onClick attribute to all...
0
by: Anonieko | last post by:
Are there any javascript codes there? Answer: Yes On the PageLoad event call InitialClientControsl as follows /// <summary> /// This will add client-side event handlers for most of the...
0
by: Eniac | last post by:
Hi, I've been working on a custom user control that needs to be modified and the validation is causing me headaches. The control used to generate a table of 4 rows x 7 columns to display all...
1
by: ptcoder | last post by:
Hello everyone. I have done a lot of reading regarding the recursive issue with FindControl. I have a FormView with an <EditItemTemplate> and all I want to do is add javascript attributes to the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.