Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HTML required for selecting text along with checkbox? (WebForms/mshtml designer question)

Reply
Thread Tools

HTML required for selecting text along with checkbox? (WebForms/mshtml designer question)

 
 
Joergen Bech
Guest
Posts: n/a
 
      07-27-2005

Trying to implement my own webforms designer to be hosted
in a WinForms environment.

Basically: I know that mshtml is used in the VS.Net 2003 WebForms
designer, but the HTML behind the scenes is not the same as what
is found on the HTML tab, i.e.

<asp:CheckBox id=" ...

would be translated to something like

<INPUT id=CheckBox8 type=checkbox name=CheckBox8><LABEL
for=CheckBox8>CheckBox8</LABEL>

for the benefit of rendering in mshtml. Then, when the user switches
to HTML editing, the ids are translated back to <asp: ...

Or so I believe.

This works nicely for, say, a button, where I get the drag handles
around the whole button, but for a checkbox, I only get the handles
around the check mark itself - not the text that goes along with it.
Yet in the VS.Net 2003 WebForms editor, the whole checkbox with
the text is selected and processed at once.

When using GetDesignTimeHTML on the checkbox (actually,
RenderControl),
I only get the <INPUT ....><LABLE for=...> as shown above, but
there must be more to it.

Additional tags around the RenderControl HTML?

Or a property of mshtml that needs to be modified?

Getting desperate Tried to dump the whole memory of my machine
to disk, then hunt for some html that might be what the designer was
using behind the scenes, but I only found the RenderControl HTML
above, wrapped in <span> </span> tags, so I believe it is an mshtml
setting?!?

Joergen Bech



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Building Controls 3 07-30-2007 09:09 PM
Designer Property Serialization -- Sycning inner properties to designer property window Alexander Higgins ASP .Net Web Controls 0 07-21-2007 12:58 AM
Sharepoint Designer/ Expression Web Designer : adding item in toolbox ? Steve B. ASP .Net 4 06-01-2007 04:29 AM
Plain text and html not getting along in net.mail.message Rey ASP .Net 0 11-13-2006 08:30 PM
Designer Support for Selecting Web Form control Paul Ingles ASP .Net Building Controls 4 07-19-2003 04:53 PM



Advertisments