passing custom variables TO a user control

Discussion in 'ASP .Net Web Controls' started by darrel, Mar 2, 2004.

  1. darrel

    darrel Guest

    I'm doing some .NET work using usercontrols.

    I have a usercontrol that I'd like to be able to place on a page and set
    some variables to it. Ie, change the number of columns shown, or the type of
    data pulled.

    I'm reading a bit about doing this here:

    http://radio.weblogs.com/0101986/stories/2002/04/16/aspnetCustomPropertiesForUsercontrols.html

    And I'm not really sure why this is better than the old way of just checking
    for some Querystrings and acting upon that. It seems a LOT more verbose.

    Are there any other examples that maybe show off the benefit of passing
    variables to a custom user control from it's parent page rather than through
    a query string?

    -Darrel
     
    darrel, Mar 2, 2004
    #1
    1. Advertisements

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. adam
    Replies:
    0
    Views:
    2,786
  2. Philip Poole
    Replies:
    3
    Views:
    601
    Jim Corey
    Sep 23, 2004
  3. =?Utf-8?B?RGFuIE5hc2g=?=

    passing variables to a user control

    =?Utf-8?B?RGFuIE5hc2g=?=, Oct 7, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    607
    =?Utf-8?B?RGFuIE5hc2g=?=
    Oct 7, 2004
  4. Leeor Chernov
    Replies:
    2
    Views:
    953
    Leeor Chernov
    Oct 16, 2005
  5. Mad Scientist Jr
    Replies:
    0
    Views:
    892
    Mad Scientist Jr
    Mar 22, 2006
  6. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    806
    Jonathan Wood
    Feb 2, 2010
  7. Matt Sokol
    Replies:
    2
    Views:
    622
    Theo Tillotson
    Aug 7, 2003
  8. hmikki
    Replies:
    1
    Views:
    268
    Nathan Sokalski
    Oct 19, 2007
Loading...