|
|
 |
RE: FN-FORUM: .NET Newbie Q
date posted 21st July 2005 10:10
Hi Norman,
Thanks for that. I tried the sequence you detailed and it worked nicely:)
I'll have a look on www.mswebdev.org.uk, I'm sure there are some very
friendly people on it, as you say. Would one be called Norman perchance?
Lol
Regards,
Craig
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Norman
Beresford
Sent: 21 July 2005 08:44
To: FN-FORUM / [EMAIL REMOVED]
Subject: RE: FN-FORUM: .NET Newbie Q
Hi Craig
If you're dragging controls from the web forms toolkit onto the designer
surface then VS will automatically add the reference in the code behind.
If you write a control out in the code view then switch to the design
view VS will automatically add the reference in the code behind. The
only time you'll need to manually add the reference is if you only ever
work in the code view.
What I think Wayne was saying is that if you drag a Label from the HTML
toolkit you'll need to rhc on it and select run as server control if you
wish to access it's properties on the server side. If you add it within
the code view you'll need to add an id and a runat=server to it, and add
the reference to it within the code behind.
The error does sound like you've not added the reference to it in VS.net
I wouldn't worry about System.Reflection if I was you. It basically
allows you to work out what something is without being told what it is.
It's used by lots of bits of the Framework and VS.net, but tbh it's not
something I've touched (to my shame) in the years I've been doing .Net
development for.
You can tweak a lot of the VS.net settings. There's also a whole host
of plugins to change it's behaviour. Often just a case of asking
around. You could try on the MsWebDev list (www.mswebdev.org.uk), which
is host to a lot of very friendly UK .Net developers.
Norman
|
 |
|