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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:21:12+00:00 2026-05-12T14:21:12+00:00

I am trying to use ExtJS with Asp.Net MVC, and it is going fine

  • 0

I am trying to use ExtJS with Asp.Net MVC, and it is going fine so far. (Nice work on ExtJS)
To make things easier, I need some help returning data from .net to ExtJS.

ExtJS expects to see a success flag in the JSON Respone along with additional data.

a sample expectedresponse format is something like

{success: true, data: {id: 3, text: “hello world}}

so, using either linq2sql or ado.net dataset for model objects, do you guys have any idea how to easily return data in this format.

Something like

public JsonResult Index()
{
  result.success= true;
  result.obj = repository.FindAllUsers();
  return Json(result)
}

would that work by the way? if I had a ExtJSResult class with bool success and Object data properties?

thanks in advance

  • 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-12T14:21:13+00:00Added an answer on May 12, 2026 at 2:21 pm

    Try this one…

    public JsonResult Index()
    {
        var json = new
        {
            success = true,
            data = from user in repository.FindAllUsers().AsQueryable()
                   select new
                   {
                       id = user.Id,
                       name = user.Name,
                       ...
                   }
        };
        return Json(json);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As a newbie in ExtJS I'm trying to use it with Spring MVC Controller.
Trying to use GnuPG with Delphi (Win32). I need to sign some file with
I am trying to use Ext.Ajax.request in ExtJS 4.02a but it will not run
Based on my previous thread I'm trying to use ExtJS to call a function
I'm trying to convince my boss to use EXTJS for our client side scripting,
Newbie question here. I am trying to use the django-extjs library in my django
I'm trying to use the anchor parameter inside an ExtJS FormPanel. The FormPanel is
I'm trying use double type in openCL, but doesn't work anyway, i want use
I have been trying to use a formula that is used to work out
I'm having trouble understanding how I need to define and use the MVC model

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.