User Control within DataList/GridView

Discussion in '.NET' started by naomi, Sep 19, 2006.

  1. naomi

    naomi

    Joined:
    Sep 13, 2006
    Messages:
    1
    Hi there,

    I have following problem:

    I created a user control (ascx) which I want to use within a datalist. I bind the the ascx properties as usual to the columns of the data source.

    I want the user to edit the data in the datalist, however, in the updatecommand event of the list when I try to access the values of the user control using it properties, I don't see them, I just see the the default values according to the property type. For example if I have in the user control a text box that should have a number and I have a property of type integer to read/write the value, in the UpdateCommand the value of the property is 0 and not what the user input. I tried few other events and all of them have the same problem. Obviously when I use text box directly it works fine.

    I wonder if you have any clue how to get around this one.

    Thanks

    Naomi
    naomi, Sep 19, 2006
    #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. Nevyn Twyll
    Replies:
    8
    Views:
    1,832
  2. s.gregory@4castweb.com
    Replies:
    0
    Views:
    1,452
    s.gregory@4castweb.com
    Dec 6, 2005
  3. H5N1
    Replies:
    0
    Views:
    2,689
  4. s.gregory@4castweb.com

    ASP 2.0 Problem with Nesting User Control containing a GridView within a DataList

    s.gregory@4castweb.com, Dec 6, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    136
    s.gregory@4castweb.com
    Dec 6, 2005
  5. Will

    Problem with DataList within DataList

    Will, Oct 10, 2007, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    176
    Walter Wang [MSFT]
    Oct 18, 2007
Loading...

Share This Page