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 8164713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:22:41+00:00 2026-06-06T19:22:41+00:00

<WebMethod()> Public Shared Function micro() As String Dim context As HttpContext = HttpContext.Current Dim

  • 0
<WebMethod()> Public Shared Function micro() As String
    Dim context As HttpContext = HttpContext.Current
    Dim ClientID As String = context.Session(const_SESSION_CLIENT_ID)
    Dim UserID As String = context.Session(const_SESSION_USER_ID)

    If (ClientID Is Nothing OrElse UserID Is Nothing) Then Return SerializeErrorMessage("User not logged in")

    Dim serializer As JavaScriptSerializer = New JavaScriptSerializer()
    serializer.MaxJsonLength = Integer.MaxValue    

    Dim s As String = U.Settings(ClientID, UserID)

    'Return serializer.Serialize(s).ToString()
    Return s.ToString()
End Function

s returns the string that I want but when I get and alert from the client side I’m getting [object Object]

Client side:

datsaa = {};
    $.ajax({
        type: "POST",
        url: "v.aspx/micro",
        data: datsaa,
        contentType: "application/json; charset=utf-8",
        dataType: "text json",
        beforeSend: function (xhr)
        {
            xhr.setRequestHeader("Content-type",
                         "application/json; charset=utf-8");
        },
        success: function (b)
        {
            alert(b);
        },
        error: function (XMLHttpRequest, textStatus, errorThrown)
        {

        }
    });
  • 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-06-06T19:22:42+00:00Added an answer on June 6, 2026 at 7:22 pm

    You will get string in b.d , for details read this

    success: function (b)
    {
          alert(b.d);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

web method: <WebMethod()> Public Shared Function Pcpacking() As IEnumerable(Of Packing) Dim db As New
Code Behind: [WebMethod] public static string emp() { return BlaBla; } Aspx Page: $(document).ready(function()
I have a VB.NET function which looks like this: <WebMethod()> _ Public Shared Function
I have this function: [System.Web.Services.WebMethod] public static string EditPage(string nodeID) { DataTable dt =
I have an ASP.NET PageMethod with the following signature: <WebMethod()> _ Public Shared Function
I have following webservice: [webmethod] public string MakeReservation(?? PassengersInfo)//what data type use for PassengerInfo
I have a page with this method in CreateTicket.aspx.cs: [WebMethod()] public static string Categories()
am accessing a class from my webservice as [WebMethod(EnableSession = true)] public string fetchAbsentees(string
I have a web service that has one method: [WebMethod] public bool SyncUserData(string userxml)
I have webservice, with method: [WebMethod] public byte[] GetFile(string FName) { System.IO.FileStream fs1 =

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.