H
hooterbite
I am using an object datasource to call a stored procedure to update an
SQL table.
THE STORED PROCEDURE WORKS FINE!
THE OBJECTDATASOURCE WORKS FINE!
When the textbox is inside a standard HTML tag <table>, it passes the
value of the textbox to the stored procedure, as expected.
When the textbox is inside an <asp:table> tag, the default value
assigned in the FormParameter tag is passed to the stored procedure, as
if it can't find the textbox.
See code below.
Thanks!
<UpdateParameters>
<asp:FormParameter formfield="subdetail_date" name="subdetail_date"
defaultvalue="1/1/01" />
</UpdateParameters>
<table><tr><td>
<asp:TextBox Text='<%# Bind("subdetail_date") %>' runat="server"
ID="subdetail_date" size="64" />
</td></tr></table>
<asp:table runat="server"><asp:tablerow><asp:tablecell>
<asp:TextBox Text='<%# Bind("subdetail_date") %>' runat="server"
ID="subdetail_date" size="64" />
</asp:tablecell></asp:tablerow></asp:table>
SQL table.
THE STORED PROCEDURE WORKS FINE!
THE OBJECTDATASOURCE WORKS FINE!
When the textbox is inside a standard HTML tag <table>, it passes the
value of the textbox to the stored procedure, as expected.
When the textbox is inside an <asp:table> tag, the default value
assigned in the FormParameter tag is passed to the stored procedure, as
if it can't find the textbox.
See code below.
Thanks!
<UpdateParameters>
<asp:FormParameter formfield="subdetail_date" name="subdetail_date"
defaultvalue="1/1/01" />
</UpdateParameters>
<table><tr><td>
<asp:TextBox Text='<%# Bind("subdetail_date") %>' runat="server"
ID="subdetail_date" size="64" />
</td></tr></table>
<asp:table runat="server"><asp:tablerow><asp:tablecell>
<asp:TextBox Text='<%# Bind("subdetail_date") %>' runat="server"
ID="subdetail_date" size="64" />
</asp:tablecell></asp:tablerow></asp:table>