Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Accesing datasource fields from inline code in a GridView.

Thread Tools

Accesing datasource fields from inline code in a GridView.

Posts: n/a
In the code below, how to access the 'FirstName' field value of the
datasource from with in the code segment (enclosed in <% %>)?

<asp:GridView ID="GridView1" DataSourceID="SqlDataSource1" runat="server">

<asp:BoundField DataField="FirstName" HeaderText="FirstName"/>


string firstName = /** do something here to access the 'firstName'
field value>; **/




Reply With Quote

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
accesing controls in code-behind R.A.M. ASP .Net 2 12-20-2006 05:28 PM
Tool which expands implicitly inline inline functions C++ 3 06-16-2005 12:54 AM
To inline or not to inline? Alvin C++ 7 05-06-2005 03:04 PM
External inline functions calling internal inline functions Daniel Vallstrom C Programming 2 11-21-2003 01:57 PM
inline or not to inline in C++ Abhi C++ 2 07-03-2003 12:07 AM