imagebtn
-
I have an event calendar. If there is an event for a particular day, an icon will show. (Now that the imagebutton is created programatically). The problem is when i create it, how can i do the event handling? img.navigateurl? (imgbtn does not have the property of navigateurl) What is the way create the link handler? Dim img As ImageButton = New ImageButton img.ResolveUrl("Error.aspx")-----> resolveurl cant be used. img.ImageUrl = Server.MapPath("Pics\pencil.gif") urgent urgent!!!!
-
I have an event calendar. If there is an event for a particular day, an icon will show. (Now that the imagebutton is created programatically). The problem is when i create it, how can i do the event handling? img.navigateurl? (imgbtn does not have the property of navigateurl) What is the way create the link handler? Dim img As ImageButton = New ImageButton img.ResolveUrl("Error.aspx")-----> resolveurl cant be used. img.ImageUrl = Server.MapPath("Pics\pencil.gif") urgent urgent!!!!
Like so:
' details omitted...
Dim ib As New ImageButton
AddHandler ib.Click, AddressOf ImageClickHandler
End SubPrivate Sub ImageClickHandler(ByVal sender As Object, ByVal e As ImageClickEventArgs)
' Do Something
End SubWhat a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.