473,320 Members | 1,991 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,320 software developers and data experts.

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


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

Nov 19 '05 #1
0 1379

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

Similar topics

8
by: Mervin Williams | last post by:
From within a Windows form, I need create a html page and open it within Internet Explorer. Does anyone know whether this is possible within a Windows Forms application? If so, please provide an...
5
by: Sunny | last post by:
Hi all, I have to get a HTML content of a given URL, to inspect links and images and to change something in there, and to save the result. I have done it already with: System.Net.WebClient source...
7
by: Stephen | last post by:
I have some code which I call from a custom validator however I seem to have got the logic wrong and im having trouble figuring out how to write my code to get things to work the way I require....
1
by: sneha123 | last post by:
There will be some 20 questions and for each question there will be 4 choices.what i want to do is to select multiple answers by clicking the checkbox. i m using asp.net,vb.net pls help me we...
9
by: Jay Kim | last post by:
Hi, We're implementing a Windows application using Visual Basic .NET. One of the key features we need to implement is that we should be able to get the accurate byte offset of user selected...
5
by: Atara | last post by:
I am trying to convert the following code to VB .Net, I still have some gaps (the lines that are marked with (*)) and also I need an ending condition for the while loop. any help would be...
0
by: Rey | last post by:
Howdy all. Am using visual web developer 2005 (vb), xp pro sp2. In testing of the system.net.mail to send email from an aspx page where I'm pulling the email contents from a textbox, find that...
19
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
11
by: Faisal Vali | last post by:
Are there any guidelines people use that help them decide when it is better to dynamically generate all html elements using javascript versus actually writing some html and using it as scaffolding?...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.