[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

custom attribute disappears at runtime

Posted on 2011-10-12
9
Medium Priority
?
183 Views
Last Modified: 2012-05-12
In my asp.net markup:

<cc1:TextBoxWithCustomAttributes ID="tbFirstName" runat="server" GatherKind="createnewuser_requiredfield"></cc1:TextBoxWithCustomAttributes>


<input name="ctl00$ContentPlaceHolder1$create_new_user$BillingInfo$tbFirstName" type="text" id="ctl00_ContentPlaceHolder1_create_new_user_BillingInfo_tbFirstName" value="" />


"GatherKind" is not surviving.  It does not show up in the rendered HTML.


How can I correct this?
0
Comment
Question by:Tom Knowlton
  • 5
  • 4
9 Comments
 
LVL 28

Expert Comment

by:strickdd
ID: 36958211
I believe you can prefix it with "data-" so it becomes "data-GatherKind"
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 36958455
Please show me the updated markup...I am not sure I understand what you mean.
0
 
LVL 28

Expert Comment

by:strickdd
ID: 36961889
<cc1:TextBoxWithCustomAttributes ID="tbFirstName" runat="server" data-GatherKind="createnewuser_requiredfield"></cc1:TextBoxWithCustomAttributes>
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Author Comment

by:Tom Knowlton
ID: 36962497
Where is some online documentation on "data-"  ??

I've never seen this before!

Thanks!
0
 
LVL 28

Expert Comment

by:strickdd
ID: 36962631
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 36962862
Which browsers do not support HTML5?

This is very cool - but it must work at far back as IE7.  Will it?
0
 
LVL 28

Accepted Solution

by:
strickdd earned 2000 total points
ID: 36962968
Yes, I believe they can "work" in IE 5.5 even.
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 36963212
So it does not depend on browser version?

Is it DOC TYPE that determines it?  Is that accurate?

Where can I find a correct DOC TYPE for using HTML 5?
0
 
LVL 5

Author Closing Comment

by:Tom Knowlton
ID: 37008201
thx
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question