Author: Arsalan03 | Posted on: 1/7/2010 11:10:09 PM | Views : 479

i need help programmatically creating an ImageButton.  i am getting an error, object reference not set to an instance of an object. The application is not finished so most of it will not work but my question is about the ImageButton only.  The application can be viewed at:
http://sclever.com/definet/MyCalendar.aspx
user: aansari
pass: aansari
as you can see in the C# code below.  i create an ImageButton imgBtn and attach the properties to it but when i click on the ImageButton from the calendar, it gives me an error.  can someone please tell me what i am doing wrong?  at the moment, clicking on the imgbtn is only suppose to write something to the trace.  i am not sure whether or not the fact that the imgbtn is created inside a for loop has anything to do with it.
 
using System; using System.Configuration; using Sys ...

Go to the complete details ...