Wrox Programmer Forums
Visual Basic 2005 Basics If you are new to Visual Basic programming with version 2005, this is the place to start your questions. For questions about the book: Beginning Visual Basic 2005 by Thearon Willis and Bryan Newsome, ISBN: 0-7645-7401-9 please, use this forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Basic 2005 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 17th, 2006, 04:34 AM
Registered User
Join Date: Apr 2006
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<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()" />


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errata Chapter 17 sahyouni ASP.NET 2.0 Professional 1 July 9th, 2009 06:07 AM
Chapter 17 First Try It Out paloyme BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 7 August 23rd, 2006 11:14 AM
Chapter 17 problem twr195 BOOK: Beginning ASP 3.0 0 May 25th, 2006 09:34 AM
Chapter 17 Gaby BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 3 September 8th, 2005 11:50 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.