G
Guest
I have created a control that inherits from datagrid. Before I render the grid html I want to create a linkbutton. I am using the following code to do so
Dim lnk As New LinkButto
lnk.Text = "Here
lnk.ID = "LinkID
AddHandler lnk.Command, AddressOf lnkSort_Comman
lnk.CommandName = "cmdSort
lnk.CommandArgument = col.HeaderTex
cell.Controls.Add(lnk
I then also have the following event hander sub
Private Sub lnkSort_Command(ByVal sender As Object, ByVal e As CommandEventArgs
End Su
My problem is that when run, the control puts the following :
<a id="LinkID">Here</a> in the html. Obviously i do not have any postback event. What am i doing wrong. If i do this within a regular aspx page it seems to be just fine. Again, this is within a inherited control
th
dav
Dim lnk As New LinkButto
lnk.Text = "Here
lnk.ID = "LinkID
AddHandler lnk.Command, AddressOf lnkSort_Comman
lnk.CommandName = "cmdSort
lnk.CommandArgument = col.HeaderTex
cell.Controls.Add(lnk
I then also have the following event hander sub
Private Sub lnkSort_Command(ByVal sender As Object, ByVal e As CommandEventArgs
End Su
My problem is that when run, the control puts the following :
<a id="LinkID">Here</a> in the html. Obviously i do not have any postback event. What am i doing wrong. If i do this within a regular aspx page it seems to be just fine. Again, this is within a inherited control
th
dav