(Object source, EventArgs e)

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default (Object source, EventArgs e)

    Hi,
    You know the parameters i'm talking about? void whatever (Object source,
    EvenArgs e)? how do you go about using those parameters? I need to get the
    ID of the source object (this is the event handling function for that
    object). How do i do this?
    thanks
    -trevor


    Trevor Hartman Guest

  2. Similar Questions and Discussions

    1. What does (ByVal sender As System.Object, ByVal e As System.EventArgs) mean?
      I just don't get what the () after the sub name does...kind of stupid question, but it would be nice to understand it. Thanks. Kathy *** Sent...
    2. connect to the data source with or without Connection object
      To connect the ASP application to data source, we can use ADO.Connection object Const connectionString = "Provider=Microsoft.Jet.OLEDB.3.51; Data...
    3. Why are sender and object used as in sender As System.Object, ByVal e As System.EventArgs?
      Why specifically are sender and object used? I could use dfs as Object and l as Evenat args. Some books show s instead of sender. Just wondering why...
    4. What's 'Image source' in FHMX object inspector?
      When an imported or embedded image is selected in FHMX, the object inspector shows a grayed pop-up list under "Image source". This is always...
    5. How to set default to TRUE: Overrides Function OnBubbleEvent(ByVal source As Object, ByVal args As EventArgs) As Boolean?
      Hello, how can I set the default value to TRUE of Overrides Function OnBubbleEvent(ByVal source As Object, ByVal args As EventArgs) As Boolean ?...
  3. #2

    Default Re: (Object source, EventArgs e)

    thanks a lot
    - Trevor

    "Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
    news:%23o6qzfAPDHA.1608@TK2MSFTNGP11.phx.gbl...
    > Cast the source as System.Web.UI.Control and get the ID from it:
    >
    > string strID = ((System.Web.UI.Control) sender).ID;
    >
    > HTH,
    >
    > Kevin Spencer
    > Microsoft FrontPage MVP
    > Internet Developer
    > [url]http://www.takempis.com[/url]
    > Big things are made up of
    > lots of Little things.
    >
    >
    > "Trevor Hartman" <synapsee@hotmail.com> wrote in message
    > news:eOw05y$ODHA.1608@TK2MSFTNGP11.phx.gbl...
    > > Hi,
    > > You know the parameters i'm talking about? void whatever (Object
    source,
    > > EvenArgs e)? how do you go about using those parameters? I need to get
    > the
    > > ID of the source object (this is the event handling function for that
    > > object). How do i do this?
    > > thanks
    > > -trevor
    > >
    > >
    >
    >

    Trevor Hartman Guest

  4. #3

    Default Re: (Object source, EventArgs e)

    Cast the source as System.Web.UI.Control and get the ID from it:

    string strID = ((System.Web.UI.Control) sender).ID;

    HTH,

    Kevin Spencer
    Microsoft FrontPage MVP
    Internet Developer
    [url]http://www.takempis.com[/url]
    Big things are made up of
    lots of Little things.


    "Trevor Hartman" <synapsee@hotmail.com> wrote in message
    news:eOw05y$ODHA.1608@TK2MSFTNGP11.phx.gbl...
    > Hi,
    > You know the parameters i'm talking about? void whatever (Object source,
    > EvenArgs e)? how do you go about using those parameters? I need to get
    the
    > ID of the source object (this is the event handling function for that
    > object). How do i do this?
    > thanks
    > -trevor
    >
    >

    Kevin Spencer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139