Problem again!! > imgbtn
-
' details omitted... Dim ib As New ImageButton AddHandler ib.Click, AddressOf ImageClickHandler End Sub Private Sub ImageClickHandler(ByVal sender As Object, ByVal e As ImageClickEventArgs) ' Do Something End Sub Still cant work.. why is this so? when i click on the imgbtn, the whole tables is gone and display nothing. What should i do? Dim img As New ImageButton AddHandler img.Click, AddressOf ImageClickHandler img.ImageUrl = Server.MapPath("Pics\pencil.gif") Private Sub ImageClickHandler(ByVal sender As Object, ByVal e As ImageClickEventArgs) Session.Add("newdate", lblDate.Text) Dim dt As Date = CType(Session("newdate"), Date) Server.Transfer("LoginCalendarMakeBooking.aspx?BookingDate= " & dt & "ResourceName=" & name & "ResourceType=" & type) End Sub Anything wrong with this?