How to put a C# application on a webpage - c#

I've been learning C# this week by building a few simple financial forms and I'd like to put them on a website, but some Google searches didn't come up with any useful information. What would be the best way to embed the applications I'm building into a website?
If it matters, I'm currently learning in C# Express, but I have access to Visual Studio Professional as well.

ASP.NET is actually the best way of putting .NET applications on a web page. If you want more richness and interaction you could always use Silverlight. If you have a specific programming related question with an actual problem you are encountering you could always use StackOverflow.

I am gonna disagree Darin, and say it's much easier to embed Silverlight applications onto a web.
Silverlight can deployed on pretty much any webhosting company, while ASP.NET requires special hosting.

you can use asp.net check this video How to Create a Web Site with Visual Studio HTML Control Tab and this Creating a Visual Studio Web Application

Related

What are the minimum browser requirements for a base level MVC5 website project?

I intend to develop a new MVC5 website in Visual Studio, and before I start I would like to know the minimum browser requirements of such a project before I even think about customising anything.
I've been googling for half an hour now and can't find an answer. I even tried Bing since it is Microsoft's search website.
What I'm trying to find out are the browser requirements that are imposed upon a website being a basic MVC5 project in Visual Studio.
I would like to support IE8 if possible, but mainly I just want to know one way or the other.
EDIT: What I mean is that the MVC5 project is bound to impose a certain minimum requirement on the web browsers being used to view it e.g. the version of bootstrap, jquery, etc. I can't find this information anywhere, and this is what I need to find out.

asp.net vs asp.net mvc or wpf broswer based application

I need to make an application that will be used over the internet.
Detail: My application would be a some kind of word processor like ms-office (i know i can't make ms-office but can add some functionalities) in which any body can come and write documents for eg. (Applications,essay,books ,etc...) in our national language.
I have considered three options ASP.NET MVC and WPF (web) and ASP.NET(Web Forms).
WPF Web Browser applications can be accessed on IE and Firefox.
What are the pros and cons of using ASP.NET MVC and WPF (web) and ASP.NET(Web Forms) over the Internet ?ms-office is a desktop application can i acheive maximum functionalities by using web ?
Any suggestion would be appreciated
You probably want ASP.NET MVC.
Windows Presentation Form (WPF)
WPF is used more for desktop Applications rather than web applications. It probably isn't viable for this situation.
ASP.NET MVC
ASP.NET MVC is Microsoft's current method of developing Web Applications. From personal experience, it's a great system. It does have a bit of a learning curve but it shouldn't be too tough to pick up. There's a lot of good resources out there to learn it. I would recommend this for building a web application.
ASP.NET Web Forms
Web Forms is Microsoft's older way to develop web applcations. ASP.NET MVC is build off of this platform, but development doesn't resemble it in any way. It's a lot less robust system than MVC and doesn't have a very active community for help.
If you're looking for a good in browser text editor with options similar to Microsoft Word, I'd look at CKEditor. I've used it and it's pretty easy to work with.
You should consider ASP.NET Web Forms or ASP.NET MVC 3+.
As Thomasov mentioned, WPF is intended to make Desktop Applications. It may be possible to make a WPF Web Site, but don't. ASP.NET Web Forms and ASP.NET MVC are much better solutions for internet applications.
ASP.NET Web Forms is the older version of ASP.NET MVC. Web Forms and MVC have syntactic differences, feature differences, as well as performance differences. MVC will definitely perform better for a larger application and give you more flexibility than the older counterpart.
It is possible to get all the functionality from Microsoft Word into a web site, but this will entail a lot of time and effort. Everything is possible in the world of programming! ;)
Google Docs is a good example of a Web version to Microsoft Word, though not completely covering all of the functionality Microsoft Word has. I'm sure there are other examples as well.

How can I port my Windows Phone game to a Silverlight thing that I can use on a webpage?

I'm confused about how to port my WP7 C# game to the web using Silverlight.
I know that code written in C# using the Windows Phone (add-in? plugin? other?) for Visual Studio makes a Silverlight app. But how can I embed my finished WP7 app in a webpage?
I've seen some things such as ExEn, SilverSprite, and XnaTouch {the page redirects to MonoGame}, but I'm confused if I even need something like this in order to make my game playable on the web. I've got a feeling the capability may even be embedded in Visual Studio. Is it even possible to do this without rewriting all the code?
Shortened version: How can I port my WP7 C# game to the web using Silverlight?
Create a new project in Visual Studio targeting Silverlight beside your WP7 project. Then if your existing code is structured nicely, you should be able to re-use most of your "back-end" code (the views, viewmodels people talk of). The best way to do this for files that are common is to add them as links to the new project, so you don't have to keep them both up to date - if there are small changes between versions you can use conditional compilation to do this.
You'll want to use some completely new classes for some things, such as probably the top level view. Some XAML (eg a UserControl definition) might be usable between both with changes, though some people will favour always creating different versions. Have a look at this extensive article on cross-platform SL/WPF/WP7 development.
What have you tried?
If you create a Silverlight application in Visual Studio, you should be able to include all your existing Views, ViewModels, resources and so on. I don't know if you'll be able to make a single project that both builds into a WP7 and a Silverlight application but I personally wouldn't bother trying.
You can't directly - there are missing runtime components and features that are only available to Windows Phone applications.
You can, however, reuse lots of code, especially C# - all XAML code, I beleive, you'll have to copy/paste from WP7 XAML to Silverlight XAML.

Windows application using Silverlight

I want to develop a windows based application in silverlight. I went through many articles and every where I found that "Silverlight is for web based application". I don't know whether I am wrong or right, as my superiors told me that in Silverlight5 we can develop Windows based application. Can any body help me to give a clue for how to start. Any help would be highly appreciated.
Thanks in advance
If you mean a Windows based application which can connect with internet you go for Out of Browser application which silverlight supports but if you want simple plain desktop application, there is no point in using Silverlight, WPF would be the right choice in that case.
Look at this article for building an out of browser app using Silverlight.
Silverlight specializes in building rich UI based Web applications and WPF is best for making UI rich applications for Desktop.
You can run silverlight apps "Out Of Browser", its just a setting in the config. Here's a video with more info: http://www.silverlight.net/learn/videos/all/out-of-browser-experiences/
silverlight is a web-based technology that runs on the client machine. it is, basically, Microsoft's version of Flash.
Now, that being said, you CAN write silverlight apps that run out of the browser. but, they are not "really" windows apps. silverlight is a sub-set of WPF. However, you can also make WPF apps that run in a browser. Confused yet?
The bottom line is that WPF is for desktop apps and is full-featured with access to the machine resources.
while silverlight is a light-weight version of WPF that is intended to be run in a browser, similar to flash. it does not have all the features of a full desktop application due to security model and that sort of thing.
Both have elements that cross into the domain of the other.
Like all good things, the answer is "it depends on what you're trying to do". If you want an application that can run inside the browser, outside the browser, plus on Windows and Mac then Silverlight is the answer. You also get for free/are restricted by a security sandbox; you can get around this sandbox by requiring additional permissions from the user. If you're trying to do something that requires multiple monitor support, access to COM objects, stroke/pen/stylus input, 3D hardware acceleration, or access to a large local file store then WPF is probably the better answer. Silverlight out of browser applications also have a nice "phone home" feature that will automatically download updates; WPF requires you to roll this by hand.
Some folks have mention XBAPs (running WPF inside of a browser). Stay away from this error prone steaming pile of stuff. It's good for demoware, but is not something which you'd want to support.
You heard right.
This is called "out of browser":
Silverlight-based applications typically run within Web pages, but you can enable users to install them from the Web and run them outside the browser.

How to develop website for mobiles using asp.net(C#)

Is there any tool available for developing mobile websites using asp.net (C#)...
or else any other tool???
The same tools as you develop any other websites in C#: typically, Visual Studio. A mobile website only differs in presentation and in some capabilities (eg: javascript/css may be limited), but functionally it's the same as a "non-mobile" site.
There's no fundamental difference between regular cross-browser development and mobile development. You're still writing the same code, the same markup, etc. You probably need to be more aware of the limitations of the browser than usual, but that doesn't change the tooling or process.
Is there a particular problem you're having that you can't solve?
If you are going to develop a website for mobiles (as opposed to a native app), then the server side language does not matter that much. It's more a matter of the css and client-side framework (if any) you are using.
One option would be to use asp.net mvc on the server side and jQuery Mobile or http://jQtouch.com for the client side. There are also other options, but these are the best I have found for my own use.
As other people have said, if it's a website you're developing then the tools are the same as any non-mobile website.
Another option for the client side is Sencha Touch.
Take a look at Mobile Device Browser File (http://mdbf.codeplex.com/). Actually that particular project is no longer supported, but it used to work quite well. It basically automates a lot of the leg work of identifying the mobile client and rendering the right styles and script. You may be able to find something similar with a bit of searching.

Categories

Resources