views:

55

answers:

1

Is Possible to put some server tag in Session Field to access a constant string???

    <asp:EntityDataSource ID="EntityDataSourceProcesos" runat="server" ConnectionString="name=Entities"
    DefaultContainerName="Entities" EntitySetName="PROCESO" EntityTypeFilter="PROCESO"
    Select="it.[DE_PROC], it.[ID_PROC], it.[ST_PROC]" 
    Where="it.[ST_PROC] = 1 and it.[TMEMPR].[CO_EMPR] = @EmpresaID">        
    <WhereParameters>
        <asp:SessionParameter Name="EmpresaID" SessionField='<%= stringPublicVariable %>' Type="String" />
    </WhereParameters>
</asp:EntityDataSource>
A: 

Instead you can add your parameter at code behind :

EntityDataSourceProcesos.WhereParameters.Add(
    new SessionParameter("EmpresaID", TypeCode.String, stringPublicVariable));
Canavar