missing an assembly reference

hi!i am developing a asp.net web application with c# ,using visual studio 2003.i want to align text in a label . this is what i found in a help topic:

Example

The following code example demonstrates how to center the text of a label.

[C#]

private void Form1_Activate(object sender,System.EventArgs e) { Label1.Alignment =Alignment.Center; Label1.Text = "Earnings Update"; }

Requirements

Namespace:System.Web.UI.MobileControls

Assembly:System.Web.Mobile

See Also

System.Web.UI.MobileControls Namespace

when i start my application the following error message appears:

d:\web\intranet\intra2\appl\pettycash\default.aspx.cs(13,21): error CS0234: The type or namespace name 'MobileControls' does not exist in the class or namespace 'System.Web.UI' (are you missing an assembly reference?).


what does this mean?how can i get the assembly reference?

[1608 byte] By [johnpauth] at [2007-12-16]
# 1

In Visual Studio / Solution Explorer Right Click on your Project File. And Select Add reference..

In the .NET TAb select System.Web.UI.MobileControls And Press Select.

This is how you set your project to use other assemblies.

The Using Statement is only for not typing System.Web.UI.MobileControls evrytime you use something of this assembly.

MarinusHolkema at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Base Class Library...

.NET Development

Site Classified