The Testimony of Jerry Wells, my pastor
My name is Jerry Wells. My parents were Wilbur and Opal Wells. I was born in December, 1954. I grew up in Oklahoma City. My Mom Opal died just before my 4th birthday. My Dad Wilbur was devastated by her death as was our whole family. He turned to alcohol to escape his pain. For the next 14 years of my life, I lived with an alcoholic.
Wilbur was a bad drunk. To his credit he maintained his job and only drank after work and on weekends. He attended clubs where he met various women and slept with them. I was five the first time I...
If you want to retrieve a value produced by an Eval within an TemplateField within an ItemTemplate, this is how...
Here's the code:
string _id = ((DataBoundLiteralControl)GridView1.Cells[0].Controls[0]).Text;
Here's the Design View:
<asp:GridView ID="GridView1" runat="server" DataSourceID="sdsDataSource" DataKeyNames="ID">
<Columns>
<asp:TemplateField HeaderText="ID">
<ItemTemplate> <%#Eval("ID") %></ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>