ASP.NET User Control

Discussion in 'ASP .Net' started by Brett Wesoloski, Jun 30, 2005.

  1. I have a user control that has a text box in it. Well what I would like to
    happen is when a user changes the text my aspx page will know and fire so I
    can run some code behind.

    I have tried many things and have looked on google but can't find what I am
    looking for.

    This is what I have in my user control

    Public Event DateTextChanged(ByVal sender As Object, ByVal e As EventArgs)



    Public Sub txtStartDate_TextChanged(ByVal sender As System.Object, ByVal e
    As System.EventArgs) Handles txtStartDate.TextChanged

    RaiseEvent DateTextChanged(sender, e)

    End Sub
    Brett Wesoloski, Jun 30, 2005
    #1
    1. Advertising

  2. hope this can help:
    http://www.15seconds.com/issue/031023.htm

    Gabriel Lozano-Morán

    "Brett Wesoloski" <> wrote in message
    news:...
    >I have a user control that has a text box in it. Well what I would like to
    > happen is when a user changes the text my aspx page will know and fire so
    > I
    > can run some code behind.
    >
    > I have tried many things and have looked on google but can't find what I
    > am
    > looking for.
    >
    > This is what I have in my user control
    >
    > Public Event DateTextChanged(ByVal sender As Object, ByVal e As EventArgs)
    >
    >
    >
    > Public Sub txtStartDate_TextChanged(ByVal sender As System.Object, ByVal e
    > As System.EventArgs) Handles txtStartDate.TextChanged
    >
    > RaiseEvent DateTextChanged(sender, e)
    >
    > End Sub
    >
    >
    Gabriel Lozano-Morán, Jun 30, 2005
    #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. Dan
    Replies:
    1
    Views:
    5,380
    Christophe Gijbels
    Jan 4, 2004
  2. Mad Scientist Jr
    Replies:
    0
    Views:
    624
    Mad Scientist Jr
    Mar 22, 2006
  3. AleXmanFree
    Replies:
    3
    Views:
    554
    Hillbilly
    Oct 9, 2008
  4. Jonathan Wood

    User Control to Control Other User Control

    Jonathan Wood, Jan 24, 2010, in forum: ASP .Net
    Replies:
    4
    Views:
    526
    Jonathan Wood
    Feb 2, 2010
  5. Dan
    Replies:
    5
    Views:
    331
Loading...

Share This Page