How to access form properties in Custom control

Discussion in 'ASP .Net Web Controls' started by NKaufman, Jul 22, 2008.

  1. NKaufman

    NKaufman Guest

    I have a custom control that creates some labels, textboxes and
    buttons. In the PreRender() I am trying to set up something similar to
    the following;

    form.defaultbutton = Button1
    form.defaultfocus = TextBox1

    It does not work. Any pointers would be appreciated.

    Thanks
     
    NKaufman, Jul 22, 2008
    #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. Mark Olbert
    Replies:
    4
    Views:
    404
  2. Nathan Sokalski
    Replies:
    0
    Views:
    920
    Nathan Sokalski
    Oct 17, 2005
  3. Harlan Messinger
    Replies:
    0
    Views:
    374
    Harlan Messinger
    Feb 18, 2008
  4. Nathan Sokalski
    Replies:
    0
    Views:
    215
    Nathan Sokalski
    Oct 17, 2005
  5. Nathan Sokalski
    Replies:
    0
    Views:
    235
    Nathan Sokalski
    Oct 17, 2005
Loading...

Share This Page