473,382 Members | 1,376 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Understanding ASP Namespace and RunAt

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
Nov 22 '05 #1
1 1119
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.

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Keith Spitz | last post by:
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" ...>...
29
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using...
3
by: Steve Richter | last post by:
I have a .cs file that contains the c# script of a page: <script language="c#" runat=server src="item.cs"/> The file item.cs contains c# code that contains a namespace: namespace ItemPages {...
2
by: Steve Richter | last post by:
I have a simple project that builds ok in Visual Web Developer, but which fails when I navigate to it at //localhost. The error is "namespace 'ac' could not be found". the problem page is at...
8
by: David | last post by:
I have a problem which I have worked around for some time. I would appreciate any comments on the following statements. When the enter key is pressed it causes a postback. After postback code has...
1
by: John Boy | last post by:
Hi I have a ASP.NET Solution with two projects. Project 2 has a reference to Project1 Project 1 contains a folder with path 'ctrlContacts\Address\. Under this path is a Class called...
7
by: cartoper | last post by:
XML, Schemas, and XSLT has been part of my life for a number of years now, but I have always used it in desktop application where I simply make the noNamespaceSchemaLocation attribute the name of...
2
by: Nico Vonckx | last post by:
Hello, As I am taking my first steps in C#.NET i wrote this but I always receive an error message. <%@ Page Language="C#" %> <script runat="server"> void Submit_Click(object obj, Eventargs...
2
by: User | last post by:
Hi, I have a custom user control. How do I write the script in a way which i can import custom namespace within the custom control? Please advise.. Thanks! mycontrl.ascx <script...
0
by: RN1 | last post by:
The following code resides in a user-control (UCProperties.ascx) ------------------------------------------- <%@ Control Language="VB" Inherits="UCPropertiesNS.UCProperties"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.