Can I develop a part of the website using Content management System(i.e Sharepoint) and few other sections using core ASP.NET ?
Yes you can. A sharepoint website can contain asp.net pages and run them. Just build your web app and put the asp.net pages in a directory that can be accessed by your site, create the pages in sharepoint using the aspx files and put the dll file your app spits out in the bin directory of your sharepoint site.
Related
I have an existing ASP.NET 4.0 website and am contemplating using MonoX for our CMS. Is there any way to install MonoX as a subdirectory in the existing website? I know I can have two websites in the same project, but I'd like to be able to reference some master pages and possibly other things in MonoX from the existing website without relying on virtual directories.
Can't google with a success an info about: from what parts does the built Asp web forms application consists? In a Debug folder I see only dlls, but as far as I understand the aspx pages and a web.config file should exist. Any links?
The BIN folder contains the compiled code behind. The ASPX pages and web.config stay in the same place, the root directory of your application.
Further reading:
ASP.NET Web Project Folder Structure
How to: Publish Web Application Projects
Asp applications, unlike windows forms applications need to be published first.
Right click on your project and click publish. From there pick file system option and publish to wherever you want on your computer.
Those files are the ones you upload to ftp server.
I am working with a classic asp website.
I have created a few ASP.Net pages (ASPX) that we jumped to from an asp page.
The ASP.net pages are using web services to collect and save data. When testing the pages locally I set the references to the web services in my test website (ASP.net).
My question is how to I register the web services in the classic asp website?
Is there anything I need to be aware of that may happen to the classic asp website if it is opened in studio 10 and has references added to it?
this is a live site so having it go down is not an option.
Thanks
I would like to know if there is a tutorial that teaches how to build your pages in Webmatrix but using .aspx and not razor.
All the tutorials I've found so far only teaches Razor syntax and I can't use that because my webhosting doesn't support .cshtml.
I would like to connect to a database and performs SQL Querys, so a tutorial or article that shows how to do that will work for me.
Thanks.
Not possible. ASP.NET Web Pages (what you're using in WebMatrix) ONLY uses Razor.
I seriously doubt your host doesn't support CSHTML files. If they support .NET 4.0, then they support CSHTML files. Nothing else needs to be installed on their servers.
Your hosting provider doesn't have to support .cshtml pages. Unlike Web Forms, which use a .aspx extension on the URL, and must be mapped in the IIS configuration, Web Pages uses Routing and by default drops the suffix, so no configuration is needed by the hosting provider.
When you publish a Web pages site, it copies the necessary razor rendering files to the bin directory.
It's not possible to have a Web Pages site without Razor.
How to add custom ASP.NET pages into sharepoint?
I am very new to sharepoint but what I realized is that I can only make plain text pages or links. but what if I have a website already built in ASP.NET and want to add it through sharepoint.
Or is it possible to build the website itself from sharepoint including dynamic server side controls like buttons, trees ....
Simple answer: put your *.aspx files in inside the _layouts folder, usually located at
c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\
afterwards you can access you page (named page1.aspx for example) through the sharepoint site by:
http://your site name/_layouts/page1.aspx
You can have inline code and/or code-behind, just like in a normal aspx page.
However, please note that pages added through this method are called application pages, meaning that they cannot be customized (easily) by the user and are available under all site collections in your farm.
SharePoint supports another kind of pages, called Site Pages which are site-specific, you can read more about them here.
See these questions which should cover everything you need:
How would you convert an ASP.NET site to work as a SharePoint site?
Moving from custom ASP.NET application to Sharepoint Services
Deploying custom Asp.net applications to same IIS site as Sharepoint
SharePoint - ASP.Net Controls Integration
Sharepoint controls in ASP.NET application
Also this page on SharePoint Dev Wiki.
This Visual How To walks you through the process of creating an application page step by step.
Creating an Application Page in Windows SharePoint Services 3.0
http://msdn.microsoft.com/en-ca/library/bb418732.aspx
The presenter of the video, Ted Pattison, has a book that is a great resource to help you get up and started with SharePoint development.
Inside Windows SharePoint Services 3.0
http://www.amazon.com/dp/0735623201?tag=g6consulswebs-20
If you want some .aspx-Pages in a SharePoint-Website, you can build a SharePoint-Module Feature containing the .aspx-Pages.
See How to: Provision a File and Create and Use a SharePoint Feature Package