gridview - Using a session variable in the where clause of a LINQ statement -
Hello all. I select a text box desire for a material and how they look in a radiobutton list page displays data based on a gridview what user. To log in to this page, a session variable is created for MemberID, MemberKey. I have tried to insert the session variable but appears through the motions without LINQ. What can you tell me where I'm wrong? If it does not work, or is not possible, you can give any advice of any way around this? That is, using this session variable in LINQ where the clause. Make
ContextTypeName = "VDSWeightsReportingService.CompleteWeightsDataContext" EnableInsert: I would like to do so can only be logged into that specific member sees your data LINQ statement this session variable is passed = "right" EnableUpdate = "right" TableName = "tblOnlineReportingCOMPLETEWEIGHTSFINALDEMOs" where = "MaterialText == @MaterialText & amp; amp; & amp; amp; Productpriority & amp; lt; = @Productpriority & amp; Amp; amp; MemberId == @ MemberId "& gt; & Lt; WhereParameters & gt; & Lt; asp: ControlParameter ControlID = "radMaterial" name = "physical text" Property name = "selected value" type = "string" / & gt; & Lt; asp: ControlParameter ControlID = "tbxHowMany" name = "productivity" Property name = "text" type = "Int32" / & gt; & Lt; ASP: Satrpametr name = "member ED" Satrfild = "user's" type = "string" / & gt; & Lt; / WhereParameters & gt; & Lt; / ASP: LinqDataSource & gt;
Make sure you select the right session variables !! !!
Comments
Post a Comment