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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:09:55+00:00 2026-06-18T10:09:55+00:00

I am working on as asp.net application. Its view has a button like this:

  • 0

I am working on as asp.net application. Its view has a button like this:

<input type="button" id="btnCall" title="Call" value="Call" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />

and in document.ready, I have this:

$("#btnCall").click(function () {
    alert("here");
    $.ajax({
        type: "POST",
        dataType: "text/json",
        url: "/account/getGenericPassword",
        success: function (data) {                   
            alert("data" + data);
            if (data == null || data == "") {
                 alert("Generic Password is empty. Please enter generic password");
            }
            else {
               //saveCallRecording();
            }
       }
   });
});

and method is like this:

[Authorize]
public JsonResult GetGenericPassword() {
     using (IUserProfileManager profilemanager = new ManagerFactory().GetUserProfileManager())            {
          UserProfile profile = profilemanager.GetProfile(CurrentUser.Id, CurrentAccount.Id);
          return Json(profile.GenericPassword == null ? "" : profile.GenericPassword, JsonRequestBehavior.AllowGet);
     }
}

but alert in success is not shown. Please suggest solution.

  • 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-18T10:09:57+00:00Added an answer on June 18, 2026 at 10:09 am

    Try setting the dataType like so:

    dataType: "json"
    

    See the valid dataType options at http://api.jquery.com/jQuery.ajax/

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

Sidebar

Related Questions

I am working on asp.net application and I have an update panel like this:
I have a working asp.net 4.0 application inside IIS. We will call this 'App
When working with an ASP.Net application, when I rebuild the solution, I would like
I am working in an ASP.NET MVC Application. I have a view model as
I'm working on an ASP.NET web application. There's a bill page which has two
I'm working on an ASP.Net MVC application. My action is returning a view with
I am working on an ASP.Net MVC application, and its architecture consists of the
I am currently working on an ASP.NET application in VB.NET and one of its
I am working with a ASP.NET MVC4 application. I have created a view model
I've been working on a ASP.NET MVC project with LinqToSql. The application has 3

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.