?
Solved

Help HTMLDocument

Posted on 2004-04-08
1
Medium Priority
?
574 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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 …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
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…
Suggested Courses

771 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