Understanding ASP Namespace and RunAt

G

Guest

Please forgive if this isn't the right place for this question...

A data grid contstructed in ASP .NET (in a .aspx file) might look like this...

<asp:DataGrid ID="dg" RunAt="server" ...>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Label ID="lbl" RunAt="server" .../>
</ItemTemplate>
</asp:TemplateColumn>
</asp:DataGrid>

Two apparent inconsistencies stand out, and I wondered what the reasons for
them are:

1) The "RunAt=Server" is key for the <asp:DataGrid> and the <asp:Label>
tags, but isn't necessary for the <asp:TemplateColumn> tag. Why not?

2) Why doesn't the "<ItemTemplate>" tag require an "<asp:" prefix (i.e.
"<asp:ItemTemplate>" instead of "<ItemTemplate>")?

Thanks!
Keith Spitz
Wall Street On Demand
 
G

Guest

I didn't quite get the syntax right either. There is a "<Columns>" tag that
goes after the asp:DataGrid but before the asp:TemplateColumn. Note that it
doesn't have the <asp: prefix or the "RunAt=Server" specifier either.
 

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

Top