• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 436
  • Last Modified:

where to find asp.net control declaration syntax - complete reference

I am learning ASP.NET but am getting frustrated as I can't find anywhere a complete reference on the declarative syntax for the web controls.

Say I want to declare a listbox, for example, in an *.aspx file

I type

<asp:ListBox runat="server" id="listbox1".....

but what attributes am I allowed to use next ?
how do I spell them?
what values can they take?

I know roughly what I want, but if I were using HTML thered be 1001 references on the web that gave me all the possible attributes for every tag.

If I look up ListBox in the VisualStudio documentation, II get all the members, properties, events etc. for the ListBox CLASS in a CODING LANGUAGE (like C# or VB.net).

Fine, but I want the ASP.NET DECLARATIVE syntax, the stuff that goes into the aspx file instead of (X)HTML !!

I'm sure I'm just being dulll and someone will point me the way to the obvious place. That's what i'm hoping anyhow.....
  • 4
2 Solutions
zorba111Author Commented:
When one get angry enough, sometimes one finds a way :-)
ok, this (and its sub-sections) looks like a better attempt than what I've been finding before....


points awarded for any improvements
ie. better laid out, or more comprehensive version?
Muhammad Ousama GhazaliSolution Analyst & ArchitectCommented:
I think you have already found the best resource available on the topic as it is from the authors/developers (Microsoft/MSDN) of the ASP.NET itself
When using Visual Studio it should give you suggestions about the available properties and the type of value they expect (IntelliSense) as you type.

Most of the properties and events of standard ASP.Net controls are rather self-explanatory. For the ones that aren't googling them like "ASP.Net <ControlName> <PropertyName>" will most likely give you some valid results, most of the time MSDN which has good examples.

If you're learning ASP.Net you might want to consider getting a good book that walks you through with example projects.

Good Luck!
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

zorba111Author Commented:
The book I'm using isn't bad: "Pro ASP.NET 3.5 in C# 2008" (third edition), though I've found a few errors in the text and sample code. But you'd expect that in 1300+ pages the author isn't going to have time to double check everything....
zorba111Author Commented:
any advances on the msdn pages ?
zorba111Author Commented:
free points basically! I answered the Q. myself but want to award points to say thank you for your interest
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now