C
con
I have created a aspx page which contains a formview with the state set to
"insert", I prepopulate some of the data as seen below and this is visible
on the form.
The information appears on the form but when I view the post via sql
profilter , the data that was "created" from the eval is null?
SQL server 2003
vs 2005
..net framework 2.0
code snippet from aspx page
<asp:TemplateField HeaderText="by User" SortExpression="lastid">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%#
Setid(Eval("lastid")) %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%#
Bind("lastid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
VB backend code
Public Function setid(ByVal itemtype As Object) As Object
Return "test"
End Function
sql snippet value passed to storedprocedure
@lastid = NULL
"insert", I prepopulate some of the data as seen below and this is visible
on the form.
The information appears on the form but when I view the post via sql
profilter , the data that was "created" from the eval is null?
SQL server 2003
vs 2005
..net framework 2.0
code snippet from aspx page
<asp:TemplateField HeaderText="by User" SortExpression="lastid">
<EditItemTemplate>
<asp:TextBox ID="TextBox4" runat="server" Text='<%#
Setid(Eval("lastid")) %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%#
Bind("lastid") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
VB backend code
Public Function setid(ByVal itemtype As Object) As Object
Return "test"
End Function
sql snippet value passed to storedprocedure
@lastid = NULL