Parameters for ObjectDatasources

Discussion in 'ASP .Net Web Controls' started by Brennan Stehling, Dec 12, 2006.

  1. When I drag a GridView onto a page and attach a new ObjectDatasource I
    can select controls which will provide the parameters to the
    ObjectDatasource. By default it lists TextBoxes and ListBoxes but I
    have a User Control which acts as a date range control and it exposes a
    couple of properties, StartDate and EndDate. I want to be able to
    select this User Control and assign these properties as parameters from
    the form, yet I am not given that option.

    I can still change the control and property name values manually in the
    markup.

    Is there a way to mark these properties or this User Control with an
    attribute so that it is picked up in the visual form like a TextBox
    does?

    Brennan Stehling
    http://brennan.offwhite.net/blog/
     
    Brennan Stehling, Dec 12, 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. Jonck van der Kogel
    Replies:
    2
    Views:
    1,004
    Jonck van der Kogel
    May 27, 2004
  2. =?Utf-8?B?Um9iZXJ0byBOdW5lcw==?=

    ObjectDataSources

    =?Utf-8?B?Um9iZXJ0byBOdW5lcw==?=, Oct 17, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    263
    Chris Fulstow
    Oct 17, 2006
  3. Jason
    Replies:
    2
    Views:
    542
    Jonathan Mcdougall
    May 13, 2006
  4. kito
    Replies:
    2
    Views:
    436
  5. Florian Loitsch
    Replies:
    11
    Views:
    259
    Michael Winter
    Mar 15, 2005
Loading...

Share This Page