runat="server"

L

Lubomir

Hi,

I have a BoundColumn in a DataGrid:

<asp:BoundColumn DataField="lastname" SortExpression="lastname"
ReadOnly="True" HeaderText="Last Name"></asp:BoundColumn>

Column is sorted. I am wondering why this code is working properly as there
is missing the statement runat="server".

When I click on a header of the column, the grid posts back to the server
and sorting is done. Why does it work without runat="server"? In my books is
always used runat=â€server†expression. Is it a preferable way?

Thanks,

Lubomir
 
B

Bob Barrows [MVP]

Lubomir said:
Hi,

I have a BoundColumn in a DataGrid:
There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
 
L

Lubomir

Bob Barrows said:
There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

OOPS,
Thanks for a link.
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,431
Latest member
ElyseG3173

Latest Threads

Top