Ask a Question related to ASP.NET General, Design and Development.
-
Trevor Hartman #1
(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
-
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... -
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... -
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... -
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... -
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 ?... -
Trevor Hartman #2
Re: (Object source, EventArgs e)
thanks a lot
- Trevor
"Kevin Spencer" <kevin@SPAMMERSSUCKtakempis.com> wrote in message
news:%23o6qzfAPDHA.1608@TK2MSFTNGP11.phx.gbl...source,> 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> the> > EvenArgs e)? how do you go about using those parameters? I need to get>> > ID of the source object (this is the event handling function for that
> > object). How do i do this?
> > thanks
> > -trevor
> >
> >
>
Trevor Hartman Guest
-
Kevin Spencer #3
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...the> 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> ID of the source object (this is the event handling function for that
> object). How do i do this?
> thanks
> -trevor
>
>
Kevin Spencer Guest



Reply With Quote

