DetailsView and DropdownList binding

Discussion in 'ASP .Net' started by viktor, Aug 13, 2007.

  1. viktor

    viktor Guest

    Can some body help me. Look at at the code bellow
    <InsertItemTemplate>

    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("item_id") %>'
    Visible="False"></asp:TextBox>

    <asp:DropDownList ID="DropDownList1" runat="server"
    DataSourceID="item_retreive"

    DataTextField="item_id" DataValueField="inv_mast_uid" SelectedValue='<%#
    Bind("inv_mast_uid") %>' AutoPostBack="True" >

    </asp:DropDownList>

    </InsertItemTemplate>

    after the post back inv_mastUID field is still empty. what am i doing wrong?
    viktor, Aug 13, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Murugan V via DotNetMonster.com

    How to add the DropDownList and TextBox Control in DetailsView

    Murugan V via DotNetMonster.com, Jan 8, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    659
    Murugan V via DotNetMonster.com
    Jan 8, 2005
  2. =?Utf-8?B?Q2VyaV9EYXZpZXM=?=

    Binding a textbox to a detailsview in asp.net 2.0

    =?Utf-8?B?Q2VyaV9EYXZpZXM=?=, Mar 22, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    986
    =?Utf-8?B?Q2VyaV9EYXZpZXM=?=
    Mar 22, 2005
  3. Replies:
    0
    Views:
    484
  4. JJ
    Replies:
    1
    Views:
    5,210
  5. Feege
    Replies:
    0
    Views:
    448
    Feege
    Dec 20, 2005
Loading...

Share This Page