PC Review


Reply
Thread Tools Rate Thread

addhandler for runtime button - asp.net 2005

 
 
dgk
Guest
Posts: n/a
 
      19th Jun 2006
I'm trying to create a button in a server table cell at runtime and
wire it up to an event procedure. I tried this:

Dim x As New Button
x.Text = "Edit"
x.CommandArgument = parts(1)
AddHandler x.Click, AddressOf EditHearing

EditHearing has two arguments, sender and arguments, but if I use
System.EventArgs, nothing happens, and addhandler won't let me wire it
up to an event that has CommandEventArgs.

I guess I can use a linkbutton but I wanted to do some processing
before moving off to the next page.

Ideas appreciated.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AddHandler to a button on a new inspectors commandbar Steffen Grellmann Microsoft Outlook Program Addins 6 21st Jul 2008 08:49 PM
VC++ 2005 runtime failure Kevin Provance Windows Vista General Discussion 0 24th Mar 2008 10:42 PM
ASP.NET (Visual Studio 2005, .NET 2.0): AddHandler ..., AddressOf ...: order of execution problem Vassili King Microsoft ASP .NET 3 21st Jun 2007 08:24 PM
supported runtime VS 2005 Iwan Petrow Microsoft C# .NET 1 29th Mar 2006 12:56 PM
How do I specify the CF runtime Version in VS 2005 JamesL Microsoft Dot NET Compact Framework 4 30th Jun 2005 02:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:07 AM.