|
|
 |
Re: FN-FORUM: .NET Newbie Q
date posted 21st July 2005 18:09
yes you are right..
from my experience, using the VS .Net designer for web forms is a big pain.=
.
anyways most of these have been fixed in VS 2005..
On 21 Jul 2005 11:54:59 -0000, Craig [EMAIL REMOVED] wrote:
>=20
> Hi Hibri,
>=20
> Thanks for your detailed reply.
>=20
> I have all the settings I can find set to lowercase but only inline style
> selectors seem to miss out, they are all capitalised while their attribut=
es
> are lowercase. Very weird.
>=20
> Regards,
>=20
> Craig
>=20
>=20
> -----Original Message-----
> From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Hibri
> Marzook
> Sent: 21 July 2005 12:31
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: Re: FN-FORUM: .NET Newbie Q
>=20
>=20
> Hi Craig,
> to do it by hand this is what you do..
> in your html you would add this
> asdf
>=20
> and then in your code behind (i'm using c# but is the same for vb.net)
> you should declare the control like
>=20
> protected System.Web.UI.WebControls.Label label1;
>=20
> in your class constructor you have to create a new instance of the contro=
l
> by
> label1 =3D new System.Web.UI.WebControls.Label();
> and then attach any events to it.
> VS.Net does this for you and writes this code in the
> InitializeComponent method when you drag and drop a control.
> what i do is drag the control to the web form and then place the
> control in HTML manually, this way i get the code behind and have more
> control.
>=20
> in vs.net settings there is an option to make all your tags and
> attributes lowercase.
>=20
> HTH
> Hibri
>=20
>=20
>=20
> On 20 Jul 2005 23:32:22 -0000, Craig [EMAIL REMOVED] wrote:
> >
> > Hi,
> >
> > A Visual Studio.NET question...
> >
> > If I drag a label web form control on to the design surface then go to =
the
> > "code behind" page I can programme it and all is well. However, if I a=
dd
> > one in the HTML screen and then add references to it in the "code behin=
d"
> > page I get errors. Is VS doing things that aren't apparent in Designer
> mode
> > or is there a way to get it done by hand and it work properly?
> >
> > I'm getting a bit frustrated with the designer, I have more control by
> hand
> > coding, hence the question.
> >
> > Thanks in advance,
> >
> > Craig
> >
>=20
>=20
>=20
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>=20
> To advertise here: http://www.freelancers.net/advertising.html
>=20
> |
 |
|