B
bob
Hi,
the detailsview (default mode = insert) is used to introduce names into the
database.
I need in code-behind the introduced name. I tried this:
<aspetailsView ID="DetailsView1" runat="server" DefaultMode="Insert" >
<Fields>
<asp:BoundField DataField="name" />
<asp:CommandField ShowInsertButton="True" />
</Fields>
</aspetailsView>
code-behind:
-------------
Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DetailsView1.DataBound
dim lol as string
lol = DetailsView1.Rows(0).Cells(1).Text
Response.Write(lol)
End Sub
but this gives nothing.
Ant idea how to get the introduced name in code-behind?
Thanks
Bob
the detailsview (default mode = insert) is used to introduce names into the
database.
I need in code-behind the introduced name. I tried this:
<aspetailsView ID="DetailsView1" runat="server" DefaultMode="Insert" >
<Fields>
<asp:BoundField DataField="name" />
<asp:CommandField ShowInsertButton="True" />
</Fields>
</aspetailsView>
code-behind:
-------------
Protected Sub DetailsView1_DataBound(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DetailsView1.DataBound
dim lol as string
lol = DetailsView1.Rows(0).Cells(1).Text
Response.Write(lol)
End Sub
but this gives nothing.
Ant idea how to get the introduced name in code-behind?
Thanks
Bob