Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
Am new to node.js as Am learning it to implement node.js in my real time web application project.
Am having very strong doubt with node.js as I learnt how to install and use node.js in .net application.
My doubt is that How to use node.js script in my asp.net application.
I have searched in several sites regarding node.js, but in all sites node.js application can be created separately and they have not used node.js script like jquery,angular.js scripts in web application.I need a some good explanation for this doudt.Please do the needfull for me.
I need to use node.js script in my .net web application to create a web page fully with node.js script..

What I have tried:

I have searched in several sites regarding node.js, but in all sites node.js application can be created separately and they have not used node.js script like jquery,angular.js scripts.
Posted
Updated 11-Sep-17 21:54pm
v2
Comments
Afzaal Ahmad Zeeshan 11-Sep-17 7:31am    
Why a Node.js in an ASP.NET web application? Node is a complete framework, for web development unlike jQuery or Angular — because they are merely front-end frameworks.

Is there any logical, and real reason to do this?
Unique Marketing Concepts 31-Jan-21 0:31am    
It is always good to answer the OP question because they will be plenty of us waiting for the same answer and such comments just frustrate our searching efforts.
Unique Marketing Concepts 31-Jan-21 1:14am    
Rule Number 4 : Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
premkumar.r 11-Sep-17 9:17am    
Thanks for your comment Afzaal.I had confusion in this.You cleared the doudt.thanks for your update.

1 solution

Just like in ASP.NET you have IIS running which serves some pages right, in the same way Node.JS is a framework capable of running a server which will serve pages (or requests to be more specific).

Sample scenarios where you can integrate both:
1. Suppose your .Net application wants to read a very large file. Then most probably you would keep a file control and accept that file. Now instead you can send that file via ajax request to a particular URL (web method) which will be configured in NodeJS say via the Express module and return the bytes read.

2. Suppose you want to save some records in SQL as well as MongoDB, then on click of aspx button, you will again hit a URL which will be configured in NodeJS and in turn that NodeJS module will save the contents to MongoDB. Off course you will need to take care of object conversion

Hope you atleast got some idea :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900