Multiple Calendar Controls in a Datagrid or List, handling OnSelectionChanged()

Discussion in 'ASP .Net Datagrid Control' started by Andrew Spencer, Apr 8, 2004.

  1. List:

    Having trouble with a asp:calendar control implementation. I have a
    datalist, with multiple rows, and some simple edits (calendar + textbox
    included). I can get the calendar controls rendered fine, but can't seem to
    get a handle on the controls post_back, since they all share the same name,
    a name-based _OnSelectionChanged() sub in the code-behind doesn't do it. I
    can hard-code a function, but still not sure which row's control I am
    working with? Any ideas? Thoughts?

    Thanks,
    Andy
    Andrew Spencer, Apr 8, 2004
    #1
    1. Advertising

  2. you will need to set each calenders id appropriately. when the event fires,
    you cast to the appropriate calendar type and examine the id to find out
    which control fired it.

    --
    Regards,
    Alvin Bruney [ASP.NET MVP]
    Got tidbits? Get it here...
    http://tinyurl.com/27cok
    "Andrew Spencer" <> wrote in message
    news:%...
    > List:
    >
    > Having trouble with a asp:calendar control implementation. I have a
    > datalist, with multiple rows, and some simple edits (calendar + textbox
    > included). I can get the calendar controls rendered fine, but can't seem
    > to
    > get a handle on the controls post_back, since they all share the same
    > name,
    > a name-based _OnSelectionChanged() sub in the code-behind doesn't do it.
    > I
    > can hard-code a function, but still not sure which row's control I am
    > working with? Any ideas? Thoughts?
    >
    > Thanks,
    > Andy
    >
    >
    Alvin Bruney [MVP], Apr 11, 2004
    #2
    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. George Durzi
    Replies:
    0
    Views:
    721
    George Durzi
    Aug 15, 2003
  2. S. Justin Gengo
    Replies:
    0
    Views:
    3,140
    S. Justin Gengo
    Aug 15, 2003
  3. Trond
    Replies:
    6
    Views:
    2,070
    Trond Wahlstrom
    Sep 27, 2004
  4. =?Utf-8?B?UCBL?=

    Commmon handling of Calendar controls

    =?Utf-8?B?UCBL?=, Nov 8, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    314
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Nov 8, 2005
  5. Mark Tarver
    Replies:
    22
    Views:
    1,298
    J Kenneth King
    Apr 26, 2009
Loading...

Share This Page