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

  • Home
  • SEARCH
  • 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 6205639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:18:35+00:00 2026-05-24T05:18:35+00:00

After looking at knockoutjs, it looks like you define your view and model directly

  • 0

After looking at knockoutjs, it looks like you define your view and model directly in your pages. Can your cshtml files for example share asp.net mvc views and knockoutjs views. It would seem that if your application is not javascript intensive, there is no need to use knockoutjs or something similar. Am I looking at this the wrong way? Does the knockoutjs framework replace your asp.net mvc frameworks view/models?

  • 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-24T05:18:35+00:00Added an answer on May 24, 2026 at 5:18 am

    Knockoutjs is the client side MVVM framework. It’s general purpose is to get rid of directly using those “onclick”, “onchange”, “onblur” event handlers and act with the UI in the way MVVM pattern defines it – through model. From the Knockoutjs.com:

    By encapsulating data and behavior into a view model, you get a clean, extensible foundation on which to build sophisticated UIs without getting lost in a tangle of event handlers and manual DOM updates.

    I agree with you that if your client side has got just trivial forms to just fill in and submit to server, using knockoutjs may be design overhead. But if there’re calculations, UI updates, dependent inputs that should act synchronously with each other’s selected value, knockoutjs gives the more clean way to achieve desired results on UI.

    But these all are client side matters. They are not meant to replace models on server side. You need models on server side to perform repository operations, business validations and cases. Good server never relies on anything on client – it is the independent actor that does all that stuff that application requires. As knockoutjs is library to make you act with models on client side, in asp.net mvc viewModels are defined on server to ease the server specific operations. And technically, for the current version of asp.net mvc, you would need view models to generate the knockoutjs ones. So if you need to write the server side for your web, you will need use separate models on it. By design they may be like the knockoutjs ones, but they are not replacable by each other.

    And for views – comparing asp.net mvc views and knockoutjs ones is wrong. knockoutjs views are just the concrete implementations of the general “view” that asp.net mvc defines. asp.net mvc does not define anything specific for “view”, it’s generally what the user receives on his browser after some interaction with server. And yes, if you use knockoutjs, then your generated views will contain knockoutjs specific markup, of course.

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

Sidebar

Related Questions

After looking at this post , it looks like I can just use cat
After looking at various pages like OSR Online and NtInternals , it seems like
After looking at questions like this it doesn't make sense that my __init__(self, parrent,
I would like to create a process in my application. But after looking around
After looking (Googling) on the web for a while, I can find nothing that
after looking through a lot of similar questions on SO, I still can't iterate
After looking into WCF, I don't believe it can do what I need it
After looking at the documentation i see the following: DELETE https://graph.facebook.com/[request_id]?access_token=USER_ACCESS_TOKEN Though i can't
After looking at other questions related to sharing solutions between VS 2005 and VS
After looking at another question on SO ( Using NaN in C++ ) I

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.