Need to change html via vb code
Hi guys, i have a quick question about access to my html via the dom?
So first I have an aspx page called MyTestPage.aspx that look like this:
Code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="MyTestPage.aspx.vb" Inherits="MyProject.MyTestPage"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test2</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
</head>
<body>
<p id=MyP>HELLO</p>
</body>
</html>
Now i wanna go into MyTestPage.aspx.vb and programmatically change the word "HELLO" to "GOODBYE" on the load up event of the page.
Any help would be greatly appreciated.