RE: Adding CssClass property default to custom checkbox wraps with span tag



Hi TS,

From your description, you're meeting some problems when use the ASP.NET
checkBox server control(custom control derived from it) ,correct?

As for the ASP.NET checkbox Server control, it is an encapsulated one which
doesn't 100% identical to the html checkbox input element. The <Span>
wrapper tag is used to add some addtional features such as DisplayText, for
standard html checkbox, it doesn't have "Text" setting. So when you want
to use clientscript to manipulate the actual underlying html checkbox
element inside the ASP.NET checkbox server control, you may need to
manually query the checkbox element inside the <span> tag. Also, one way
to get the html like checkbox element is to use the CheckBox html server
control. Here are some web threads also discussing on this:


http://www.thescripts.com/forum/thread449893.html

http://forums.asp.net/p/541142/541562.aspx

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: Adding CssClass property default to custom checkbox wraps with span tag
    ... As for the ASP.NET checkbox Server control, ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: multiple row updates in MYSQL using HTML
    ... > if the checkbox is checked incase you are updating most of the records ... >>all to another perl script to perform the update. ... >>I basically need maintenance of one table with unlimited rows containing ... HTML? ...
    (comp.lang.perl)
  • Plain text and html not getting along in net.mail.message
    ... text with html formatted text and set the isBodyHTML = true that I get ... I've a checkbox that if checked sets the IsBodyHTML=true. ... Dim MyMail As MailMessage = New MailMessage ... Dim SMTPMail As SmtpClient = New SmtpClient ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem with Javascript in a UserControl
    ... Make a look at the HTML generated by your code and find your checkbox ID. ... fine if I put the UserControl Data directly in my Web Page. ... I am used to seeing this from DataGrids, but not as a regular control on the page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How can I code to get more than One value from checkbox?
    ... > I'm a newbie that just started to learn python, html and etc. ... > html form that consists of about 10 checkbox and a textbox where user ... > %(qtype) in my query statement so that the script will look for the ...
    (comp.lang.python)

Loading