P
Patrik Zdarsa
Hi,
I'm try VS 2005 and need UPDATE database record in viewform, all working
when every filed is type TextBox (html INPUT) but I need change one TextBox
to Listbox or dropdownlist and read data from another table and store it in
table1 in parameter "stav". Load data to ListBox is not problem but when I
try update record there is error "stav is null", is any way how to bind
listbox or dropdownlist.
Code:
<UpdateParameters>
<asparameter Name="puvod" Type="String" />
<asparameter Name="stav" Type="String" />
</UpdateParameters>
<asp:TextBox ID="puvodTextBox" runat="server" Text='<%# Bind("puvod")
%>'></asp:TextBox><br />
<asp:dropdownlist ID="stavListbox" runat="server"
DataSourceID="SqlDataSource2" DataTextField="rolename"
DataValueField="rolename"></asp:dropdownlist>
thank you
Patrik
I'm try VS 2005 and need UPDATE database record in viewform, all working
when every filed is type TextBox (html INPUT) but I need change one TextBox
to Listbox or dropdownlist and read data from another table and store it in
table1 in parameter "stav". Load data to ListBox is not problem but when I
try update record there is error "stav is null", is any way how to bind
listbox or dropdownlist.
Code:
<UpdateParameters>
<asparameter Name="puvod" Type="String" />
<asparameter Name="stav" Type="String" />
</UpdateParameters>
<asp:TextBox ID="puvodTextBox" runat="server" Text='<%# Bind("puvod")
%>'></asp:TextBox><br />
<asp:dropdownlist ID="stavListbox" runat="server"
DataSourceID="SqlDataSource2" DataTextField="rolename"
DataValueField="rolename"></asp:dropdownlist>
thank you
Patrik