Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Databases Also see the forum ASP Databases for more general discussions of ASP database issues not directly related to these books.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET Databases 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 January 25th, 2005, 07:32 AM
Registered User
 
Join Date: Jan 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default new qs using html elemnts w vs.net (cha 5)

Hi,

In cha 5, Displayrows.aspx file i tried to divide the page to the .vb file and the aspx file but with no success.

I got the comment: 'display' is not declared.
I try adding the :
Protected WithEvents display As System.Web.....
but nothing....

the 'display' is the id of an object called 'div' which is an HTML control not a server control.

so.... what can I do???
thx!

 
Old January 25th, 2005, 08:00 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You do have the following page declaration at top?:

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="<page>.aspx.vb" Inherits="<fully-qualified type of page <namespace>[.<namespace>].<class>"%>

Also, if a code-behind page, and you aren't using VS.NET 2003 or some other tool, you have to compile the *.vb into a component.

Brian





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically cha nging root node!!!!!!! rakesh XSLT 4 July 29th, 2008 09:31 AM
Qs! asadullah Java Basics 1 April 16th, 2007 11:35 PM
Chapter 1: Building an ASP.NET Website Qs & As groupmatch BOOK: ASP.NET Website Programming Problem-Design-Solution 4 August 27th, 2004 08:57 AM





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