I was talking with a friend the other day, and he was saying to me that it is able to create desktop based software in ASP.net. With what I know, ASP.net is only for web-pages. I made few searches around the google, and most of the results say it is a web designing page. But there was many others who said it can, but need to use 3rd party desktop or something..
So, I am asking here to get a better answer. Is it possible to create a computer based software in ASP.net?
you can create a desktop app (with WPF for example) that has a WebBrowser control to host your asp.net site.
but yes, asp.net is at the end a web technology.
read more about: https://msdn.microsoft.com/en-us/library/system.windows.controls.webbrowser(v=vs.110).aspx
In theory it is possible. You run a web server and get a browser shell to communicate with the web server on localhost. This is of course stupid but possible. Also he is probably talking about .NET, not ASP.NET which makes much more sense because the desktop frameworks for .NET are pretty good for desktop development.
Related
Right now, I'm in C# Winform and I would like to use my Windows Application with ASP.NET including with Xamarin. So, I need to know, what kind of program do people often use to make application run in all kind of devices (Computer + Web Browser + Smartphone)? And what should I use, WPF or UWP or which one?
This question is a bit broad/unclear, but you could consider porting your app to an ASP.NET frontend, and then load it with a wrapper on mobile phones and desktops.
Essentially create native apps that in turn load the ASP.NET web app. This is a quite common approach as it reduces development time.
If I understand you clearly, you want to make an ASP.NET Core application.
That is an webapp and if you use bootstrap it will scale on every device.
And because you use Core, you can host the webapp on every server (windows, linux etc.)
I have a desktop webscraper application written using C#.NET.
It works very simply. The user imports input data in txt/csv/Excel. The app exports scraped and orginized results in an output file (csv, html).
How can I make this accessible online, as a website?
I haven't done web programming before (only desktop) and I do not know any web programming languages. But I think I can learn ASP.NET and create similar webscraper functionality with it.
What kind of webhosting requirements do I have?
What you need to do is turn your desktop application into a library. Turn your EXE into a DLL with an API that does specific functions. This means separating functional operations from UI operations. Then, build a web application that uses this library to offer the same functionality online.
If you want to learn something new to build web applications, I suggest ASP.NET MVC and not ASP.NET Web Forms. MVC is much closer to web development than web forms.
As for web hosting requirements, Any web host that support ASP.NET should be able to run ASP.NET MVC.
I have done a little with ASP.NET but I think this will help you
I wish to build a Windows application that will generally run in the background, but have a configurable front-end Windows Forms GUI. I also would like this program to publish a small web page which can be accessed from other machines/devices and interact or call functions of the server application.
I'd rather not deploy a full-fledged ASP.NET web site with IIS, etc. I just need something simple.
So how would I go about doing this?
Take a look at Kayak. It's a relatively small and lightweight HTTP server that you can embed into your application and should provide all the functionality you're looking for.
FWIW, I am in no way associated with this project.
Maybe it's just because i've been doing asp dev for years, but I really think you should go the iis asp route as its very simple and built into windows. I can't imagine a more straightforward way of serving a webpage that has c# behind it to programmatically effect the host system.
Thanks to Kev in the comments on my question, he pointed me to this question, in which I found a link to a lightweight C# HTTP server component I could just drop in to my application: http://webserver.codeplex.com/
Works well for little stuff like I was doing.
I'm in the process of designing an iPhone app and I need to create a login mechanism written in ASP.NET on the server. Any ideas how the best way to go about doing this would be?
We would need to be able to create a username/ pass, login, then send a (small) amount of information back and forth from user application to server.
This is one of the more "packaged" (I guess is a good word) parts of ASP.NET, but it sounds like you would do great w/ the provided ASP.NET login controls: http://msdn.microsoft.com/en-us/library/ms178329.aspx
This gets you pretty far for free (metaphorically) and if you need more later, the MembershipProvider support is pretty rock solid.
I'm assuming that by iPhone app you are referring to a native (Objective-C) application. If this is the case then I would probably look at creating a web service (WCF) to interact with the server rather than a web site. The service would allow you to use the native widgets without having to scrape (or manipulate) a DOM object to perform a post back.
Note that there's no reason why a well written web service couldn't also be exposed as a web site if the software follows good design principles. As #Rikon mentioned the MembershipProvider support provides a good quick out of the box experience although it's easy to out grow what it provides.
I have lots of code snippets on my pc that do a whole bunch of cool things in C# (not asp.net, these are mainly console apps). I store all my results in a mysql database on my home PC.
What is the best way forward for converting this all into an online web service with login portal etc? My asp.net knowledge is limited, so I may have to hire someone for this. Trouble is I know C# and PHP, but no asp.net!
Is cloud hosting recommended versus dedicated server versus normal hosting? The database will be several gigabytes with a growth rate of 150 megabytes per day.
If it was me i'd create a simple asp.net mvc app with forms authentication. The learning curve is much easier than web forms, especially for making end points/web services, i'm assuming you don't require automated discoverability/automation that you'd get from SOAP services.
Of course with web forms you can create an asmx web service but i just much prefer mvc! Go have a read, its really easy, you just need to no a few bits to get started, then its all c#, html/css javascript, no horrible life cycles!