Author: dch3 | Posted on: 7/9/2009 7:35:51 PM | Views : 285

I've got a Web Control with a link button and assoicated code that does not fire when clicked. When clicked, the page appears to post back, but the code doesn't run.
Protected WithEvents LinkButtonSelectUserDefinedDirectory As LinkButton Public Sub SelectUserDefinedDirectory(ByVal sender As LinkButton, ByVal e As System.EventArgs) Handles LinkButtonSelectUserDefinedDirectory.Click Dim x As Label = CType(FindControl("XTable"), Label) x.Text = "Test" ViewState("DirectoryType") = "userDirectory" Response.Write("ding") End SubThe Dim x & x.Text lines are there to ensure that an error is thrown if the code fires.



...

Go to the complete details ...