Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6099739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:18:26+00:00 2026-05-23T13:18:26+00:00

I have this client-side: $(document).ready(function() { var $checkboxes = $(‘[type=checkbox]’); $checkboxes.click(function() { $checkbox =

  • 0

I have this client-side:

$(document).ready(function() {
    var $checkboxes = $('[type=checkbox]');
    $checkboxes.click(function() {

        $checkbox = $(this);

        $.ajax({
            type: "POST",
            url: "Page.aspx/Method",
            data: "{id:'" + $checkbox.attr("id") + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(msg) {
                alert('success!');
            },
            error: function(xhr, status, error) {
                var err = eval("(" + xhr.responseText + ")");
                alert('An error occurred that prevented your change being saved: ' + err.Message);
            }
        });
    });
 });

And I have this server-side:

[WebMethod]
public static void Method(String id)
{
    Guid guidID = new Guid(classid));
    //...........
}

But I’d prefer to make the WebMethod signature strongly typed:

[WebMethod]
public static void Method(Guid id)
{
    //...........
}

Can you advise what is the best way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:18:27+00:00Added an answer on May 23, 2026 at 1:18 pm

    I think you can pass the Guid as a string into your method and it should convert it. check this out

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF service with a function GetData() When my client calls this
I have a function defined in AS3 that's gonna be called from client side
Hey all, I'm about to rip my hair out. I have this client that
I have this jsp client that consumes a webservice. The problem with the client
we have this scenario: A server which contains needed data and client component which
I have this little problem. My client wanted two distinct swf on a web
I have this php code $jsonArray = array(); $sql = SELECT ID,CLIENT FROM PLD_SERVERS;
i'have a js client with JQuery, this js call a page (GET HTTP) and
We have a desktop client application developed in Swing. This application interacts with backend
Hope I'm asking this correctly: I have a project Projects.Client I have my class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.