|
Is it enough for methods to be capture and report JavaScript errors on web applications on computer and mobile devices?
window.onerror = function (msg, url, lineNo, columnNo, error) {
return true;
};
|
|
|
|
|
Just starting with an ASP.Net Core project and my first instinct is to separate the web api project and the UI project because that is the way all desktop apps should be written.
Does that apply for web apps. The API will also be accessed from a mobile app, will that make a difference.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Yes, you can do it.
You could create an asp.net core API and then, for example, a UI application in Angular or React.
In Visual Studio 2017 there is a template that you could create the API and de UI together too.
|
|
|
|
|
The question was not whether I can do it but whether i should do it. I should have posted this in the design forum
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
Sorry man, my bad.
But I prefer to build the API in a separate project and then the UI, mainly if others will need to access the API like a mobile app.
|
|
|
|
|
Yet every example I see has the UI and the API in a single project. I wonder if it makes a difference if the mobile app references the single app (including the UI components) or an API only app.
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
I think the examples that commonly exist on the web are made in a single project for simplification. But there is no difference for a mobile app to references a blended project or only the API.
In my opinion, if possible, creating the UI separate from the API gives me more flexibility, for example, to develop another UI to update the previous.
|
|
|
|
|
Good day. I would like to create a simple API using C#.Net that read Oracle Database. Where must I start?
|
|
|
|
|
sellol wrote: Where must I start? At the beginning.
But seriously, what do you expect your API to do or, what features will it provide? The most likely starting point is probably to work on the basic design, and decide how many of the Oracle features you want to expose.
|
|
|
|
|
Hi. I want to create just a simple CRUD. Just want to create endpoints. Like myserver.com/v1/employees/all,
myserver.com/v1/employee/id/{1}
Etc
|
|
|
|
|
Sorry neither your original question nor this make any real sense. These forums are for technical questions, so you need to be much more specific. We cannot guess what your design requirements are. And the above URL is not valid; no idea what myserver.com is supposed to lead to.
|
|
|
|
|
Hi. Are you going to help me with creating basic API reading from Oracle?. If you cant please refer me to a specific link.
|
|
|
|
|
|
I'll be a little more specific than Richard - Google[^]
Only because he managed to get more detail out of you. API means you want to expose the capabilities of Oracle, CRUD is a solved problem!
Never underestimate the power of human stupidity -
RAH
I'm old. I know stuff - JSOP
|
|
|
|
|
sellol wrote: Where must I start?
Part 1
1. Learn basics of C#
2. Learn basics of accessing Oracle from C#
3. Create test application that includes both of the above.
Part 2
1. Learn basics of "web' process
2. Create code that provides basic UI screen.
3. Create test application that includes both of the above.
Part 3
1. Learn how a web application interacts with a server application
2. Optional: At least read up a bit on security (how to do a user login.)
Part 4
1. Decide on a minimal table to which you can create, update, query and delete entries.
2. Create a UI that allows you to do 1
3. Create a server side code that allows 2 to interact with it and that does the database actions.
Part 5
1. Put all of the above together to create your application.
|
|
|
|
|
Thank you very much man. You are a true leader.
|
|
|
|
|
Hi,
I have written a VS 2010 Windows application with SQL server 2014. Application works well on Windows 7 and above.
It cannot work on Windows XP.
Windows XP PC can access the Sql Server 2014 by using udl.
I hope can get some pointers on how to overcome this problem.
Thank you
ShanR
|
|
|
|
|
Member 13918184 wrote: I hope can get some pointers on how to overcome this problem. You need to provide some proper details of what happens on XP. No one here can begin to guess what your code is doing or trying to do. Please edit your question and add the required information.
|
|
|
|
|
Es posible recibir estatus de pago de una transaccion directamente en mi sitio web sin tener que ir al panel de control de paypal?
|
|
|
|
|
Good day everyone!
Please I need help in this issue as I have tried but the result am getting is not good enough to my satisfaction.
I know how to save and retrieve html tags to/from database but believe me doing it for codebehind is really tough for me.
Now, my request is that, how and what is the best way to display posted codebehind in asp.net just codeproject do to all content within code tag.
For instance, codeproject would identify the following function and even markoff comment line as visual studio does.
Public Function Something(val As Integer) As Integer
Return Something
End Function
How can I achieve this please.
|
|
|
|
|
It depends on how you're displaying the code. If you're displaying it in a web page, then the simplest option is to use a Javascript syntax highlighter. For example, highlight.js[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
how can i do website using html javascript via visual studio 2017
|
|
|
|
|
You can't expect to learn such a massive topic from scratch by asking "How do I write a website?" on a forum. Get a book on ASP.net website development, or at least go through some "getting started" tutorials online. One you know the basics feel free to ask specific questions about specific problems.
|
|
|
|
|
Hi,
I have been given a project, which has Angular CLI code, but the project or solution itself is created at the time the Angular CLI is not released yet, so the package.json file is also created at that time only, now when I run the npm install command on that Angular folder, it gives me the below error:
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\SourceCode\customerserviceweb\CustomerServiceWeb.Web\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\SourceCode\customerserviceweb\CustomerServiceWeb.Web\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\SourceCode\customerserviceweb\CustomerServiceWeb.Web\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\SourceCode\\customerserviceweb\\CustomerServiceWeb.Web\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\SourceCode\customerserviceweb\CustomerServiceWeb.Web\node_modules\node-sass
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.5.3 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.5.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\e09795\AppData\Roaming\npm-cache\_logs\2019-01-24T21_03_42_886Z-debug.log
I went into the log file, it displays the same message.
Is there any way to fix this package.json file to be able to work with angular cli without any interruptions.
After making this change I want to run npm install, ng generate component etc commands. Any help would be very very helpful - thanks a lot.
|
|
|
|
|
Look at the first line of the messages: "Can't find Python executable "python".
|
|
|
|