Processing Postback Data

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nathan Sokalski

    #1

    Processing Postback Data

    I want to access the values submitted by a custom control I wrote (using
    VB.NET). My control creates an HTML Table and Input type="hidden" tags. All
    I want to do is assign the value submitted from the Input tag to a property
    of my custom control. I know that this involves implementing the
    IPostBackDataHa ndler interface, but I cannot seem to get it to work. If
    anyone could help me figure this out, or direct me to a site with some good
    examples, I would appreciate it. Thanks.
    --
    Nathan Sokalski
    njsokalski@hotm ail.com
    有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。



  • GarthS

    #2
    RE: Processing Postback Data

    Nathan,
    If you use an ASP.Net HiddenField you could just handle the OnValueChanged
    event of the control to set the property on your user control. I don;t think
    that you'll have to worry about implementing the IPostBackDataHa ndler
    interface.

    Garth.

    "Nathan Sokalski" wrote:
    I want to access the values submitted by a custom control I wrote (using
    VB.NET). My control creates an HTML Table and Input type="hidden" tags. All
    I want to do is assign the value submitted from the Input tag to a property
    of my custom control. I know that this involves implementing the
    IPostBackDataHa ndler interface, but I cannot seem to get it to work. If
    anyone could help me figure this out, or direct me to a site with some good
    examples, I would appreciate it. Thanks.
    --
    Nathan Sokalski
    njsokalski@hotm ail.com
    有声小说网为广大读者提供热门小说在线免费阅读,本站收集的网络文学小说情节跌宕起伏,有声小说网是值得书友们收藏的小说在线阅读网。

    >
    >
    >

    Comment

    • sam

      #3
      Re: Processing Postback Data

      You seem to know what you are doing, but the only reason its not
      working is becuase the UniqueID of your composite control must match
      the name attribute of the hidden field (in the client html) for that
      method to be fired. So your hidden field can catch the event (and
      should be getting its submitted value filled in), but your composite
      control can't. So the suggestion above will probably work.

      If you need more help let me know.

      Comment

      Working...