473,385 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Div server control not working in VS2002

I have some code that works at work but not at home.

I am using VS2002 at home and get the following error:
The type or namespace name 'div' could not be found (are you missing a using
directive or an assembly reference?)

My code behind page as:

*******************************************
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace WebApplication4
{
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected div Message;
public void Page_Load(object sender, System.EventArgs e)
{
//we create the base class below:
Profile profile = new Profile();
************************************************** ******

In my aspx file I have:

<div id="Message" runat="server"></div>

What is causing the message?

Thanks,

Tom
Nov 19 '05 #1
3 2034
It's probably a bug. Replace the <div> with <asp:panel>.

Eliyahu

"tshad" <tf*@dslextreme.com> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...
I have some code that works at work but not at home.

I am using VS2002 at home and get the following error:
The type or namespace name 'div' could not be found (are you missing a using directive or an assembly reference?)

My code behind page as:

*******************************************
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace WebApplication4
{
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected div Message;
public void Page_Load(object sender, System.EventArgs e)
{
//we create the base class below:
Profile profile = new Profile();
************************************************** ******

In my aspx file I have:

<div id="Message" runat="server"></div>

What is causing the message?

Thanks,

Tom

Nov 19 '05 #2
Could be.

I did replace it with asp:label and it worked fine. Just couldn't figure
out why 2002 was giving me the error on Div.

Thanks,

Tom
"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
It's probably a bug. Replace the <div> with <asp:panel>.

Eliyahu

"tshad" <tf*@dslextreme.com> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...
I have some code that works at work but not at home.

I am using VS2002 at home and get the following error:
The type or namespace name 'div' could not be found (are you missing a

using
directive or an assembly reference?)

My code behind page as:

*******************************************
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace WebApplication4
{
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected div Message;
public void Page_Load(object sender, System.EventArgs e)
{
//we create the base class below:
Profile profile = new Profile();
************************************************** ******

In my aspx file I have:

<div id="Message" runat="server"></div>

What is causing the message?

Thanks,

Tom


Nov 19 '05 #3
these is no builtin "div" class in asp.net. div with a runat server are of
class HtmlGenericControl.

-- bruce (sqlwork.com)

"tshad" <tf*@dslextreme.com> wrote in message
news:uH**************@tk2msftngp13.phx.gbl...
I have some code that works at work but not at home.

I am using VS2002 at home and get the following error:
The type or namespace name 'div' could not be found (are you missing a
using
directive or an assembly reference?)

My code behind page as:

*******************************************
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace WebApplication4
{
/// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected div Message;
public void Page_Load(object sender, System.EventArgs e)
{
//we create the base class below:
Profile profile = new Profile();
************************************************** ******

In my aspx file I have:

<div id="Message" runat="server"></div>

What is causing the message?

Thanks,

Tom

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lou Stein | last post by:
Here is the steps I took to produce this problem with VS2003 1. Create a Windows Application. Place a DataGrid control on a the Windows form. Name the control dgCustomers. Set the CaptionText...
1
by: thdevdex | last post by:
I recently upgraded to Visual Studio.Net 2003. I'm a bit hesitant to remove VS2002.Net in fear of the removal messing up 2003. However, I need the disk space but don't want the hassle of...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: Bob | last post by:
I have both VS2002 and VS2003 installed on the same machine with IIS. In VS2002 I can create a new web application , but when I try in VS2003 I get an error stating "500 Internal Server Error".
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
15
by: Tom Leylan | last post by:
Something is messed up... I was using MSDE but I just bought/installed SQL Server instead and stuff has stopped working. I used to be able to connect to the server through VS2002 (and VS2003)'s...
14
by: Graham Blandford | last post by:
Hi there, A quickie I think... If I create a new class that inherits the values of a windows form component class, can there ever be a visual representation of this in the .Net IDE? E.g. if...
1
by: Andrew Jocelyn | last post by:
Hi I have a Formview control in a UserControl. The server-side validation is not working, i.e. the events are not firing when a button control which causes validation is fired or even when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.