ASP.Net Newbie question

R

ranch99ranch99

I read a piece of code like the following

<asp:TextBox id=myTextBox ...> </asp:TextBox>

Does asp in asp:TextBox is a namespace?
 
B

bruce barker

its an xml namespace reference not to be confused with a .net namespace.

-- bruce (sqlwork.com)
 
R

ranch99ranch99

In C#, we can use using namepsace to avoid wring namespace.
I wonder for xml namespace, is there any similar usage?
 
R

ranch99ranch99

In C#, we can use using namepsace to avoid wring namespace.
I wonder for xml namespace, is there any similar usage?
 
J

Juan T. Llibre

re:
!> <asp:TextBox id=myTextBox ...> </asp:TextBox>

Although that *looks* like an xml namespace reference,
it's actually a reference to an ASP.NET web server control.

Just because the naming convention for an ASP.NET web server control
*uses* xml-like syntax, doesn't mean that it's an xml namespace reference.

For one, the <asp: reference exists within aspx source code, which isn't xml-based.

web.config and machine.config are xml documents.
*.aspx source code files aren't.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top