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. WSS and Ajax

WSS and Ajax

Scheduled Pinned Locked Moved Web Development
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.
  • N Offline
    N Offline
    Not Active
    wrote on last edited by
    #1

    I have a custom application page with code-behind in WSS. The page has two dropdownlists, one with AutoPostback=true so it will filter the contents of the second. They are wrapped in an Ajax UpdatePanel. When I select from the first dropdown I get the below Javascript error. Doing a Google search finds 5 hits (and two are from us). Has anyone come across this? System.Runtime.CompilerServices.StrongBox`1..ctor(System.__Canon) This is definitely a WSS issue since the code has been tested in an ASP.NET page and it works as expected.


    only two letters away from being an asset

    I N 2 Replies Last reply
    0
    • N Not Active

      I have a custom application page with code-behind in WSS. The page has two dropdownlists, one with AutoPostback=true so it will filter the contents of the second. They are wrapped in an Ajax UpdatePanel. When I select from the first dropdown I get the below Javascript error. Doing a Google search finds 5 hits (and two are from us). Has anyone come across this? System.Runtime.CompilerServices.StrongBox`1..ctor(System.__Canon) This is definitely a WSS issue since the code has been tested in an ASP.NET page and it works as expected.


      only two letters away from being an asset

      I Offline
      I Offline
      I am BATMAN
      wrote on last edited by
      #2

      Maybe it's the javascript.

      N 1 Reply Last reply
      0
      • I I am BATMAN

        Maybe it's the javascript.

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Brilliant! :rolleyes:


        only two letters away from being an asset

        1 Reply Last reply
        0
        • N Not Active

          I have a custom application page with code-behind in WSS. The page has two dropdownlists, one with AutoPostback=true so it will filter the contents of the second. They are wrapped in an Ajax UpdatePanel. When I select from the first dropdown I get the below Javascript error. Doing a Google search finds 5 hits (and two are from us). Has anyone come across this? System.Runtime.CompilerServices.StrongBox`1..ctor(System.__Canon) This is definitely a WSS issue since the code has been tested in an ASP.NET page and it works as expected.


          only two letters away from being an asset

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          I've been trying to narrow the problem down. I'm trying to filter a list of states based on the selected country

          int countryID = Convert.ToInt32(CountryList.SelectedItem.Value);
          // This doesn't work
          var states = context.State.Where(c => c.Country.ID == countryID).ToList();

          // This does
          var states = context.State.Where(c => c.Country.ID == 2).ToList();

          StateList.DataSource = states;
          StateList.DataBind();

          No matter how I try filter the EF object, Select, Where, etc., if it uses a variable, it fails. I've even tried creating a DataTable and populating it from states, but that doesn't work either. Very perplexing.


          only two letters away from being an asset

          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