codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  code behind dynamic buttons  denbob at 08:59 on Wednesday, March 10, 2004
 

I have created dynamic buttons in vb.net for an asp.net page, my question now is, how do I get code behind each button for when someone clicks it ?
mybutton.click doesn't work. Someone any idea ?



For i = 1 To 4
Dim myButton As New Button()
myButton.ID = "Button" & i
myButton.Text = "Button:" & i
myButton.Width = Unit.Pixel(100)
myButton.Height = Unit.Pixel(25)

Panel1.Controls.Add(myButton)
Dim test As New LinkButton()

Next









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: onload event
•  Active Widgets
•  Re: onmouseover change image and text
•  Line Printer Interface
•  import contacts of msn/yahoo
•  Call windows apps from web apps
•  Re: ASP.NET web controls
•  netscape 6 browser problem
•  Re: Print .doc file from the website using System.Diagnostics.Process


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005