G
Guest
I have a datagrid with
<asp:TemplateColumn HeaderText="Needs">
<ItemTemplate>
<%# MySplit(DataBinder.Eval(Container.DataItem, "UnitRequestNeed")) %>
</ItemTemplate>
</asp:TemplateColumn>
my asp.vb page has the function:
Public Function MySplit(ByVal s As String)
Dim var
Dim strString As String
Dim arrArray() As String
Dim strItem As String
Dim x As Integer
strString = s
arrArray = strString.Split("/")
If arrArray.Length = "2" Then
var = "<asp:Button runat=""Server"" CommandArgument=" &arrArray(0)
&">"
Else
End If
Return var
End Function
When I try it I get the page displayed, but no button. It seems to be hard
coded in the html.
<asp:TemplateColumn HeaderText="Needs">
<ItemTemplate>
<%# MySplit(DataBinder.Eval(Container.DataItem, "UnitRequestNeed")) %>
</ItemTemplate>
</asp:TemplateColumn>
my asp.vb page has the function:
Public Function MySplit(ByVal s As String)
Dim var
Dim strString As String
Dim arrArray() As String
Dim strItem As String
Dim x As Integer
strString = s
arrArray = strString.Split("/")
If arrArray.Length = "2" Then
var = "<asp:Button runat=""Server"" CommandArgument=" &arrArray(0)
&">"
Else
End If
Return var
End Function
When I try it I get the page displayed, but no button. It seems to be hard
coded in the html.