Ah claro, no me había fijado. Como estás utilizando etiquetas asp no se puede poner <%= %> dentro de ellas.
Tendrás que usar las etiquetas <selectparameters> y <asp:SessionParameter>:
Código ASP:
Ver original<div class="gensoporte">
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:trackpasoConnectionString %>" SelectCommand="SELECT DISTINCT W.WORKITEMKEY, S.LABEL as ESTADO, W.PACKAGESYNOPSYS
FROM TWORKITEM as W, TSTATE as S, TCLIENTE as C
WHERE (W.STATE = S.PKEY)
AND
(W.CLIENTEKEY = C.PKEY)
AND (C.LABEL = @var_user)
AND (S.LABEL != 'closed')">
<SelectParameters>
<asp:SessionParameter Name="var_user" SessionField="var_user" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True"
DataSourceID="SqlDataSource1">
</asp:GridView>
<asp:Label ID="label11" runat="server" Text="Label"></asp:Label>
</div>
Pero, tendrás que cambiar el Context por Session:
Código vb:
Ver originalPublic Class soporte
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim strUser As String = System.Web.HttpContext.Current.User.Identity.Name
Me.label11.Text = strUser
Session.Add("var_user", strUser);
End Sub
End Class