Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Execute LINQ query

Execute LINQ query

Scheduled Pinned Locked Moved ASP.NET
csharpjavadatabaselinqtools
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zeeShan anSari
    wrote on last edited by
    #1

    hello :) , i just want pass the LINQ query in string format from java script to the code behind and then here execute the this string formatted LINQ query.....

    public static IList getUserListForGrid(string sQuery)
    {

        DALDataContext Context = new DALDataContext();
    

    -->i want your help here
    ->-> Execute sQuery ?????? :omg:

      }
    
    T 1 Reply Last reply
    0
    • Z zeeShan anSari

      hello :) , i just want pass the LINQ query in string format from java script to the code behind and then here execute the this string formatted LINQ query.....

      public static IList getUserListForGrid(string sQuery)
      {

          DALDataContext Context = new DALDataContext();
      

      -->i want your help here
      ->-> Execute sQuery ?????? :omg:

        }
      
      T Offline
      T Offline
      Tamer Oz
      wrote on last edited by
      #2

      Try assigning value to a server side created hiden field in javascript then get value from codebehind and execute query.

      Z 1 Reply Last reply
      0
      • T Tamer Oz

        Try assigning value to a server side created hiden field in javascript then get value from codebehind and execute query.

        Z Offline
        Z Offline
        zeeShan anSari
        wrote on last edited by
        #3

        how execute?

        T 1 Reply Last reply
        0
        • Z zeeShan anSari

          how execute?

          T Offline
          T Offline
          Tamer Oz
          wrote on last edited by
          #4

          I thought you were asking how to pass a string value with javascript to codebehind. For executing a string as linq query issue this[^] may help

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups