do you know how i to create events dynamicaly?

L

leon

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
 
L

Lucas Tam

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?????

Use AddHandler to add event handlers to controls.
 
M

Michelle Hlaing

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.***
--------------------
From: "leon" <[email protected]>
References: <[email protected]> <Xns953C81434C6nntprogerscom@ 140.99.99.130>
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: <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 200.75.94.158
Path: cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl! TK2MSFTNGP10.phx.gbl
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top