Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Help HTMLDocument

Posted on 2004-04-08
1
Medium Priority
?
582 Views
Last Modified: 2012-05-04
Hi,,

 This is the code I have:


Dim XMLDOM As XmlDocument = New XmlDocument()
        Dim i As Integer
        Dim elementObj As IHTMLElement
        Dim HTMLDoc As HTMLDocument
        XMLDOM.LoadXml(s_strXMLData)
        Dim XMLNode As XmlElement = XMLDOM.DocumentElement()
        TemplateURL = s_URLString
        HTMLDoc = ParseHTML()
        Dim objElements As IHTMLElementCollection = HTMLDoc.all
        For i = 0 To XMLNode.ChildNodes(0).ChildNodes.Count - 1
            For Each elementObj In objElements
                If elementObj.id = "X_" & XMLNode.ChildNodes(0).ChildNodes(i).Name Then
                    elementObj.innerText = XMLNode.ChildNodes(0).ChildNodes(i).InnerXml
                End If
            Next
        Next


This doesnt work INPUT tag of type radio. That is if elementObj  is "Radio" how do I insert a value for the tag????? With INPUT tag of type "radio", it is innertext...Same question for checkboxes and selection lists....Can someone help???Thanks.
0
Comment
Question by:rajesh75
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
gillit earned 375 total points
ID: 10787822
INPUT tags are used primarily for html. There is a way to change its values with the InputId.Attribute feature.

With .NET you are given similar tools with its webform controls which are much easier to use and understand. Here is a list of HTML -> .NET Control and some links that gives examples on how to use them.

INPUT (radio) -> RadioButtonList
 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolsradiobuttonlistclasstopic.asp

INPUT (checkboxes) -> CheckBoxList
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolscheckboxlistclasstopic.asp

INPUT (selection) -> ListBox
  http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIWebControlsListBoxClassTopic.asp

Hope this helps.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
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. …

650 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