Connecting Tech Pros Worldwide Forums | Help | Site Map

do you know how i to create events dynamicaly?

leon
Guest
 
Posts: n/a
#1: Nov 18 '05
hello friends, i am writing a page aspx and creating controls dinamicaly and
then
i must to create for each control the events as well.

Anybody to know how?????

happy day

lion



Lucas Tam
Guest
 
Posts: n/a
#2: Nov 18 '05

re: do you know how i to create events dynamicaly?


"leon" <faleusqui@hotmail.com> wrote in
news:OyUramweEHA.2908@TK2MSFTNGP10.phx.gbl:
[color=blue]
> hello friends, i am writing a page aspx and creating controls
> dinamicaly and then
> i must to create for each control the events as well.
>
> Anybody to know how?????[/color]

Use AddHandler to add event handlers to controls.



--
Lucas Tam (REMOVEnntp@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
leon
Guest
 
Posts: n/a
#3: Nov 18 '05

re: do you know how i to create events dynamicaly?


but it is in VB, I need in C#?

lion


"Lucas Tam" <REMOVEnntp@rogers.com> wrote in message
news:Xns953C81434C6nntprogerscom@140.99.99.130...[color=blue]
> "leon" <faleusqui@hotmail.com> wrote in
> news:OyUramweEHA.2908@TK2MSFTNGP10.phx.gbl:
>[color=green]
> > hello friends, i am writing a page aspx and creating controls
> > dinamicaly and then
> > i must to create for each control the events as well.
> >
> > Anybody to know how?????[/color]
>
> Use AddHandler to add event handlers to controls.
>
>
>
> --
> Lucas Tam (REMOVEnntp@rogers.com)
> Please delete "REMOVE" from the e-mail address when replying.
> http://members.ebay.com/aboutme/coolspot18/[/color]


Michelle Hlaing
Guest
 
Posts: n/a
#4: Nov 18 '05

re: do you know how i to create events dynamicaly?


In the Visual Studio Help, search for:

1)Creating an Event Handler at Run Time in Web Forms Pages
2) Creating Event Handlers at Run Time for Windows Forms

Hope that helps,

Michelle

***Disclaimer: This posting is provided "as is" with no warranties and confers no rights.***
--------------------[color=blue]
>From: "leon" <faleusqui@hotmail.com>
>References: <OyUramweEHA.2908@TK2MSFTNGP10.phx.gbl> <Xns953C81434C6nntprogerscom@[/color]
140.99.99.130>[color=blue]
>Subject: Re: do you know how i to create events dynamicaly?
>Date: Thu, 5 Aug 2004 11:51:47 -0500
>Lines: 26
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
>Message-ID: <OYuKDyweEHA.2848@TK2MSFTNGP10.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 200.75.94.158
>Path: cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTF EED01.phx.gbl!TK2MSFTNGP08.phx.gbl![/color]
TK2MSFTNGP10.phx.gbl[color=blue]
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:252376
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>but it is in VB, I need in C#?
>
>lion
>
>
>"Lucas Tam" <REMOVEnntp@rogers.com> wrote in message
>news:Xns953C81434C6nntprogerscom@140.99.99.130. ..[color=green]
>> "leon" <faleusqui@hotmail.com> wrote in
>> news:OyUramweEHA.2908@TK2MSFTNGP10.phx.gbl:
>>[color=darkred]
>> > hello friends, i am writing a page aspx and creating controls
>> > dinamicaly and then
>> > i must to create for each control the events as well.
>> >
>> > Anybody to know how?????[/color]
>>
>> Use AddHandler to add event handlers to controls.
>>
>>
>>
>> --
>> Lucas Tam (REMOVEnntp@rogers.com)
>> Please delete "REMOVE" from the e-mail address when replying.
>> http://members.ebay.com/aboutme/coolspot18/[/color]
>
>
>[/color]


Closed Thread