2
Reply

Im Super New, Why cant i create a List in ASP.net, and CSS3 in VWD? please help.

dobby

dobby

May 20 2008 4:44 PM
3.8k

ill start by saying, ive just picked up C# after doing a bit of VB6 and VB.net, C# seemed a more attarctive language to learn, something my college seems to disagree with. (still using VB6)

i know that in std C# coding i can make a list like this: (where shout is a Class with 3 Vars)

List<Shout> ShoutData = new List<Shout>();

im creating a Shout box, kind of thing; it's more of an experiment, but im going to add it to my site when it done : ) i would use an array but i dont want to cap the amount of items in the list/array.

anyway when i add that declaration into a aspx.cs file it doesnt compiler as Visual Studio c# does. i was wondering why, and if there is a work around? or am i just doing something wrong?

im running Visual Web Dev 2008

also while im here is ther anyway of getting VWD to recognide CSS 3? becasue i don't like how it reports my CSS as an error, even though IE7, Fx & Opera will hapily render it, (it in this case is a opactity), i dont really care if i broswer cant support it as it not nessary it just look nice.

thank you very much, dobby156.

BTW i like the Office style Forum code entry


Answers (2)