Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!

I am struggling with passing a jquery var into a Code block in Razor :
VB
if ($(window).scrollTop() + $(window).height() > $(document).height() - 200) {
                var CurrentSeqDB = 1;
                @Code
                    Dim UserSession As String = Session("UserSessionID")
                    Dim EntryID As Integer = 0
                    Dim context As TripRebel.LocalEntities = New TripRebel.LocalEntities()
                    Dim testRtsrf As Integer = Request.Params(@:CurrentSeqDB)
                    Dim getHotelsFromDB = (From gh In context.temp_hotels Where gh.Session = UserSession And gh.sequence = Request[""] And gh.shown = "false" Select gh).SingleOrDefault

                   
                End Code
            }


Can anyone help me with that?

thanks in advance!!
Cheers
Posted
Updated 4-May-14 2:51am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900