I'm designing a simple framework for small websites to be used in an intranet. The websites will all be similar, but there will be a few pages, or controls on pages, that are different. I would like to be able to version and maintain the common framework part of the websites as if they were a regular library - if I need to update CSS then I only have to do it in one place. Can I package-up ASPX files, images and CSS and distribute them like this? What am I missing?
My goal is to allow the developers of the few core content pages to get up and running with the websites quickly, with standard styles and images.
I want to know how can I load my files (file1.aspx and file1.aspx.vb) in a container on my index.aspx. My index should have my menu and my container. My problem is that i don't know how do that... options wich i tried:
Iframes: yes work it... but in html 5 iframe will dissapear...
MasterPage: isn't the solution because this refresh all index page.
Ajax: yes.. charge my File1.aspx in the container but i can't call the functions of File1.aspx.vb...
I upgraded my site from asp to asp.net.This means that all of my previous asp files became obsolete.I don't want to lose my Google Ranking of the old pages.
What is the proper way to redirect?I tried to catch all of the old asp pages is my 404 and then to:
if Request.QueryString("aspxerrorpath").contains("index.asp") = true then Response.Status = "301 Moved Permanently" Response.AddHeader("Location", "http://www.domain.com/index.aspx") Response.Redirect("/index.aspx") end if
I have a designer working on several pages in Dreamweaver. The designer is creating .aspx files with the Page directive at the top. These are getting shipped to me and I'm adding them to the Visual Studio ASP.NET WebForms Web Application Project. The problem is that there's no code-behind file by default, and I'm trying to find a shortcut to have them autogenerated as if I've added a fresh page from Visual Studio.
Does anybody know of an easy way to store Umbraco settings (Document Types, Media Types etc) on the file system in order to manage that data within source control?
Note: changes to settings made on the file system need to be easily integrated back into the CMS database.
Also, does anybody know of a way to package up settings from a development environment for rolling out to staging and live environments?
If we are deploying ASP.NET web application, Do we need to copy both *.aspx and *.aspx.cs files on the server?Also what if I am using different framework version? I mean 1.1 / 2.0 /3.0 /3.5 /4.0? What will be the answer in different .NET Framework versions?
I need to change the encoding from Western European... to Unicode... for every file in the project. I do not want to have to check out, open, change encoding, save and check-in every file, is there a faster way?
I was wondering whether there is away to compare two .aspx pages. I have a website on my local machine and the same website on a production server. What i will like to do is compare .aspx page from my local and production server to see what the differences are.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyPage.aspx.cs" Inherits="MyPage" %> <script type="text/javascript"> //<!-- I want to inject a JSON string here, which is generated per side-request --> function doStuffToMyData(){ // ..... } </script>
how I can inject a JSON string here? I got no problem generating the string, or parsing it in the browser..
It could be there's an easier way to do this? I basically want to manipulate the looks of the side, depending on changes to this data, so I figured it would be easiest to have the data as a JSON string.
I've created a new web application project in Visual Studio 2008, and then copied in some code from a project created with an older VS version. For instance, I'll add a new web form item in my project, say, "Shop.aspx". Then copy the older code into the new file. The trouble is that referenced supporting files get a "not found" warning.
The file ShopStyle.css resides in the same root folder of my project as Shop.aspx, but I get a "not found" warning about it. Or I'll have something like
I am converting an old asp project to a new .NET project. Now, all vb code are inside aspx files, and we are on the process of moving all vb script from aspx files to .vb files. My problem is, I can't debug the vb script inside most of the aspx files. All my friends don't have this problem. I think the problem is with vb text editor.
I am using Visual Studio 2008.
Is there anyway, I can make visual studio understand that aspx files have vb script inside them.
What I am doing right now is I have a dev machine where I have the solution for the old web app (1.1) usually if i have to add new pages to the app what I used to do is add .aspx pages in the dev mechine and compile the solution generate new dll's and copy the .dlls and .aspx pages to the server used to work fine.Now I needed to add a page.I did the same thing some how the server is not reconizing the new page I have created. Please tell me what Should i do to make the server recognize the new page?
As I understand it, I should be able to change an aspx file in VS, update in the browser and then see the changes without rebuilding the entire solution. For me thats not the case...
Edit: I use VS 2008, .NET 3.5 and development server. It is a Web Application project and I always need to rebuild to see the changes in the aspx files. I use master pages and aspx controls. I use edit and continue and have no problem updating the code behind files without rebuilding.
In my website I have two files home.aspx and tab.aspx with code behind files home.aspx.cs and tab.aspx.cs. I have a table variable in tab.aspx.cs which needs to be sent to home.aspx.cs when I click a button on home.aspx.
I am using Visual Studio 2008 and my project is a Web Application Project so that I can compile my all files in just one assembly.
It is working but web form code behind files are compileing into single assembly but aspx files are not compiling. In addtion, these aspx files are present in the directories and they can be viewed.
Is there any technique to compile my all files into single assembly?
I have a problem within a project in Visual Web Developer. The program will not allow me to open the aspx.vb file associated with an aspx file when I choose the "View Code" option. The aspx.vb file exists; however the program is prevented from loading it and seeing it in Solutions Explorer.
The problem may be related to how the entire project is loaded -- loading it as a project vs. as a website. When I load it as a project, I have compilation errors that do not exist otherwise, but can see the aspx.vb files. When it is loaded as a website, I can't open the aspx.vb files as described above.