Web User Control Events vs. Controls Content

Discussion in 'ASP .Net Building Controls' started by Donald Welker, Aug 12, 2004.

  1. I have a textbox embedded in a DataGrid which in turn is part of a web user
    control.
    I want to save any changes made to the text on postback. This works fine if
    I inspect and update the dataset in response to a control event fired from
    the web user control (such as a linkbutton) but Bad Things happen if the
    postback is triggered by some other control (such as a Submit button on the
    parent page) -- the textbox control is located but the system evaluates its
    text as an empty string! Thus in my test case the entire set of items is
    updated to blank values and the dataset is happily saved to the table :-( I
    don't want to restrict the updates to only happening in response to a local
    control, so how do I cause an event to fire in the proper context (or is this
    perhaps a naming/id issue?)
    Donald Welker, Aug 12, 2004
    #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. Vannela
    Replies:
    0
    Views:
    317
    Vannela
    Dec 16, 2003
  2. =?Utf-8?B?REo=?=
    Replies:
    2
    Views:
    461
    =?Utf-8?B?REo=?=
    Dec 1, 2005
  3. hazz
    Replies:
    6
    Views:
    49,281
    SkyUCHC
    Jun 9, 2010
  4. Chris

    Events Events Events Please Help

    Chris, Aug 30, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    327
    Chris
    Aug 30, 2005
  5. Kurt
    Replies:
    0
    Views:
    174
Loading...

Share This Page