I have an ASP.Net website built in .net 3.5. When clicking on one of the aspx page, I want to open an MVC appliation inside that page. MVC app is developed by another company. What is the best way of doing that?
Scott Hanselman's Article doesn't include this scenario I guess.
It depends on what kind of interaction you are expecting between your app and the externally developed app. If the UI isn't going to interact between them then an iframe is probably what you're looking for. If it is going to interact then you can interact between them using exposes apis or web services on both sides.
Related
We have an ASP.NET MVC project to serve as a master portal. The portal has links to controllers/views in other ASP.NET MVC projects. When the link is clicked, we want to a view from a different MVC project is loaded into the body of the master portal.
We know ASP.NET MVC provides Area within the MVC project to organize related functionality into a group functions. But instead everything in a project, we prefer to have related functionality into a separate project but they share the same master portal.
Is it doable within ASP.NET MVC and how?
Depend on what is your exact requirement,
If you want to share only data between projects expose controller
actions and share the data by means of JSON.
Sharing UI between project may not come handy in the long run.
Before anything, have a look at this article
Always there is way to do everything in programming, but consider performance and best practices to keep your application long living.
I need to write a simple app which will work in a cloud where I can store data about clients and it will be avaiable from Windows and Android and I assume it has to be a website.
What is the difference between ASP .NET Web Forms Applcation and ASP .NET Web Forms Site? Which one should I use?
Web Form Site is nothing more than previously called Website projects where you work with webpages which is just small php like (with Razor/aspx) script files which render as html.
Webform is more like a component oriented framework. Web Form Site or WebSite should only be used for small projects or if the project needs to be compile in C#/VB both language. Also if you want to put your all source code in web-server then it can be used. On contrary with WebForm application you don't need to put code base files to run the projects - you'd be better off only putting scripting .aspx files.
This has been explained in detail in the following question:
ASP.NET Web Site or ASP.NET Web Application?
Also, you can check out the differences between the two here:
MSDN
Regarding your first question if your app is native or hybrid then you need REST(WebApi in .net world) which any app can access natively regardless of the device and will meet your needs of the "cloud".
If you what you want is a website instead that is "viewable" by mobile devices you may want to make your website "responsive" and you can look at various bootstraps templates that can help you with that.
Regarding your second question I think it has no bearing nor it will make any difference in creating a mobile app which project type you use.
This question is coming from a Front-End developer new to .NET.
I'm working on a web app that was built a while ago using Webforms. I was asked to integrate two new features to this application. The features would be accessible via two new tabs added to the navigation bar.
What I want to happen is, when the user clicks on the new tab, the application loads up the MVC project as a view inside of the Web Forms app. Here's a link to a picture to explain it better:
The way the project was originally setup is we have the original Webforms project, and we created an MVC project which are siblings inside the same parent folder. The backend devs think this will work fine for them. I have no idea how to get the two projects to load up simultaneously. There hasn't been much work done on either side yet so we're open to ideas of how to restructure this.
I should also add that for the new features the Back-end is just serving up JSON, and I will use AngularJS on the Front-End as opposed to Razor.
Other potentially relevant project info:
Using Visual Studio 2012 (I think we have access to 2013 however)
.NET MVC 4
Webforms (2.0 or 3.5 possibly)
I have built several ASP.NET web applications in the past but have always struggled to get the application's basic structure in place. Building a framework using a combination of Silverlight/RIA services (or LightSwitch) is quite easy, but this makes your application not accessible through browsers that do not support Silverlight.
Is there any ASP.NET application framework with an HTML UI that provides the basic services that lightswitch provides?
By basic services I mean:
User Management
Themes
Standard way of displaying/editing basic records and master/detail records
see:
Integrating Visual Studio LightSwitch Application Into An Existing Website using IFrames
Check out http://www.evolutility.org/ or http://www.rapidwebdev.org/, both are opensource.
I have been building a Web Application (ASP.NET, .NET Framework 4, VB, visual studio 2010). To be very brief the application interacts with a database and performs several actions (Insert Delete Select etc..).
I am using several Gridviews, ListBoxes etc and I am not happy with the presentation outcome and the functionality provided by asp.net. In simple words my application looks bad, outdated and unprofessional.
I figured that using Windows Forms that will be incorporated to the ASP app would be a great improvement and solve all of my problems.
I have created a Windows Form Control Library to use the dll created in my app as a user control. I found out that this is not supported in .NET Framework 4 (is this true? or am i doing something wrong?).
Is there any way to make my application have the 'look and feel' of a windows application?
Please note that it is has to be a web app and the clients should not have to download any other application to interact with the server.
Have you checked out the third party controls from other vendors?
I currently use them for rapid development.
http://www.telerik.com/
http://www.infragistics.com/
http://www.devexpress.com/
Anyhow all controls in .net you can change there look and feel using plain CSS.
Try using Silverlight 4, it has all that you need. What u are trying to do is traditional ASP.NET and that's as good as it can get coz its all server side code, but with Silverlight things are totally different, its all client side with specific server interactions. Have a look at the tutorials about how to use Silverlight and WCF RIA services to do what you are trying to do.
Try this link: WCF RIA services and Silverlight
Edit: Silverlight is designed to create stunning web GUIs. Just in case you were wondering what the heck it is.. :)