View Single Post
  #1 (permalink)  
Old April 17th, 2006, 04:44 AM
paloyme paloyme is offline
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 17 First Try It Out

My page is not working properly, the Client button is not working and it generates this error

//Line 12
//Column 30
//Invalid Character
//Code 0

<%@ 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>My First Page</title>
    <meta http-equiv= "content-script-type" content="text/VBScript" />
        <script language="VBscript" type="text/VBscript">
// <!CDATA[

function btnClient_onclick() {
document.getElementById("lblclient").innerText = "Changed"
document.getElementById("lblServer").innerText = "Server"


// ]]>
    <form id="form1" runat="server">
        <asp:Button ID="btnServer" runat="server" Style="z-index: 104; left: 72px; position: absolute;
            top: 128px" Text="Server" />
        <asp:Label ID="lblServer" runat="server" Style="z-index: 101; left: 168px; position: absolute;
            top: 128px" Text="Server"></asp:Label>
        <asp:Label ID="lblClient" runat="server" Style="z-index: 102; left: 168px; position: absolute;
            top: 176px" Text="Client"></asp:Label>
        <input id="btnClient" style="z-index: 103; left: 72px; position: absolute; top: 176px"
            type="button" value="Client" onclick="return btnClient_onclick()" />