Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > sintax explaination

Reply
Thread Tools

sintax explaination

 
 
josh
Guest
Posts: n/a
 
      08-28-2008
Hi, I post this newbie question: I don't understand when I can use
<asp:something> and when I must use
only tag like <Columns>

Ex. in the following snippets I use <Colums> and then <asp:BoundFiled>
but which is the difference?
but the pager settings I can use as properties or like tag.

<asp:GridView ID="grid_view_1" runat="server"
DataSourceID="data_source_1" AutoGenerateColumns="false"
AllowPaging="true" PagerSettings-Mode="NextPreviousFirstLast"
PagerSettings-Position="Bottom">

<PagerStyle BackColor="Aqua" ForeColor="White" />

<Columns>
<asp:BoundField HeaderText="ID" DataField="au_id"
ReadOnly="true"
SortExpression="au_id" />
<asp:BoundField HeaderText="Last Name" DataField="au_lname"
SortExpression="au_lname" />
<asp:BoundField HeaderText="First Name" DataField="au_fname"
SortExpression="au_fname" />
<asp:BoundField HeaderText="Phone" DataField="phone"
SortExpression="phone" />
<asp:BoundField HeaderText="Address" DataField="address"
SortExpression="address" />
<asp:BoundField HeaderText="City" DataField="city"
SortExpression="city" />
<asp:BoundField HeaderText="State" DataField="state"
SortExpression="state" />
<asp:BoundField HeaderText="ZIP" DataField="zip"
SortExpression="zip" />
<asp:CheckBoxField HeaderText="contract" DataField="contract"
SortExpression="contract" />

</Columns>
</asp:GridView>

I'm confused!

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How to bind jtextfield to Query result or List in EL sintax intoNB6? Andrew Thompson Java 1 11-27-2007 12:29 PM
How to bind jtextfield to Query result or List in EL sintax intoNB6? Beatifull Java 0 11-27-2007 09:40 AM
[ANN] New script engine (Basic sintax) MKTMK C++ 0 10-05-2005 01:35 PM
Sintax error simon ASP .Net 1 09-21-2005 10:12 AM
please help! unknown sintax errors with my code? bob VHDL 5 12-05-2003 06:17 PM



Advertisments