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. SharePoint
  4. Webmethods

Webmethods

Scheduled Pinned Locked Moved SharePoint
csharpjavascriptasp-netdesignsecurity
1 Posts 1 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.
  • A Offline
    A Offline
    Aptiva Dave
    wrote on last edited by
    #1

    I'm trying to update a list on a app page using jquery and a webmethod to do so. when I do, I get a security validation error and the only solution I have found online is to turn off security validation for the site, which is something I don't want to do. I am calling my code behind method that inserts a cafeteria menu into the list with the following code:

    PageMethods.AddNewMenu($("#theDate").val(), $("#<%= txtMenu.ClientID %>").val(), Success, Error);

    On the backend I have a standard string function that inserts an item into the menu list. Of course, if I run this a standard post back it works fine, or if I run it using an asp.net update panel, but with that I can't get my jquery ui dialogs to work. Is there a way I can use the pagemethod/webmethod approach without having to turn off validation?

    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