troubleshooting Question

Default.aspx.vb file needing help on referencing objects in the DOM of the Default.aspx file

Avatar of tbirkhimer
tbirkhimer asked on
Web DevelopmentHTMLASP.NET
3 Comments1 Solution575 ViewsLast Modified:
I am creating a simple program in MS Web Developer 2005 express.  Here is my code for the Default.aspx file

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="" >
<head runat="server">
    <title>Untitled Page</title>
    <meta name="IS_ATTR_CompanyName" value="Test Company INC"/>
    <form id="form1" runat="server">
        <asp:Button ID="Button1" runat="server" Text="Button" />
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></div>
    <!--I hand wrote this section in -->    
    <form name="frmTest">
    <input type=button value="test" onclick="document.frmTest.txtValue.value = IS_ATTR_CompanyName.value" id="Button2" />
    <input type="text" name="txtValue" />
    <!--I hand wrote this section in -->

The section that I wrote in successfully displays the value of the meta tag that I am referencing... because its oldschool code that I know how to write. How can I make the button inside of the default.aspx.vb file assign Label.text = IS_ATTR_CompanyName.value? I know I have to access the DOM somehow, but how?


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros