Configuration :: Change In Aspx Files Does Not Stick
Aug 8, 2010
I have no experience in ASP.NET development.We have installed a Webmail product from Afterlogic. we have to remove the markup for a logout button. but we are not able to edit the .aspx files. we can remove the markup for the button compleately.but it is still there on the page when we refresh.Do we have to recompile the whole thing each time we make a change ? Is this some sort of cache problem ? We have tried to delete the browser cache. but it had no effect.
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?
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 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 published my brand new site the first time to the brand new server and when testing it I noticed that none of the .aspx.vb code behinds was deployed and I got an error that those were missing.
I have made an application for some customer that I'm going to transfer to a webhotel.I want to make sure that the application is not copied and used elsewhere without my knowledge. So I have thought of stripping the aspx files from their code behind, that is not the aspx.cs file itself. But from all code inside the cs file, not the one that is automatically generated like page_load etc, but everything else. And when done, then just upload the compiled DLL file(s). Does this work? Are there something to be mindful of if I carry out with this plan.
I want to publish my web application as a single .dll file without all the source code and .aspx markup pages.
I am using VS 2010 with the "Web Deployment Project" add-in. In the compilation settings, I unchecked "make this site updatable" because I want the .aspx files to be compiled as well.
Publishing my web application using the publish feature in VS 2010 works fine, and a single .dll file is created in the "bin" directory.
But all the .aspx markup files are still copied to the web server! I've read that those files are merely marker files which can be deleted, but not in my case. They still contain the whole markup and when I delete them, my application won't run anymore.
It's like I had checked the "make this site updatable" option, but I haven't!
I am running a web-site with simple .aspx files on a standalone workgroup Windows Server 2008 called 'Max'.I had assumed that the .aspx files were accessed by the 'Network Service' account.The application pool for the website is running with 'Network Service' as the process account.I was puzzled, since 'Network Service' had no permission on these files. So I added event level auditing to the files, and I was suprised to learn that the .aspx files were being accessed by an account called Max$ (ie the computer account).this correct ?Why is the Network Service account not being used ??
I've just setup a new site on my IIS6 and I'm experiencing the following problem:
I can run normal HTML pages, but no .aspx files. If I call the aspx page directly I get a 404 - file not found - error message. This only happens with .aspx files.
I am having an issue where if I change my url to .asp from .aspx i get a 404 error but it is not handled by my custom errors. If I change the url to def23947823h.aspx it is caught and redirects to correct page.
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
When I update a js file in my asp.net project, I refresh the browser and the change shows up as expected. If I change a css file or an .aspx file, the change does not show in the browser. Not when I clear the browser's cache, not when I restart IIS (iisrestart). What could this possibly be?
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.
I have an application that uses resource files to display items in multiple languages. My app uses quote a lot of javascript and the alerts need to display in the local language. To do this, I have created an http handler which will read the keys and values of the culture-specific resource file and write them to a JSON array which is then embedded in the page in a script tag, the messages can then be accesses using, for exmaple:
Message.Error (en-GB = "Error", fr-FR = "Erreur")
The messages http handler works great in development, however when I run the application on a test server, I get the error: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Resources.Alerts.resources" was correctly embedded or linked into assembly "App_GlobalResources.b0n9j90e" at compile time, or that all the satellite assemblies required are loadable and fully signed. The code that I use to acccess the resource file is:
Where Resources.Alerts is the type that contains my multi-lingual definitions. The build action for the Alerts.resx file is set to "Embedded Resource". Any ideas why this works locally but not on my test server, am I missing something?
The majority of files in the Temporary ASP.NET File folder for a given application get deleted by ASP.NET following compilation -- .DLL and .PDB files amongst others remain.
Our compiler produces proprietary debug information files which are amongst those that get deleted.
Marking the files read-only prevents this but are there other options available?
I have worked almost for a year now on PHP. I was using C#.NET for my academic projects. But, i am getting offers to switch to ASP.NET/C# these days. Would leaving my current platform be fruitful? My familiarity with Open Source technologies is deep & couldn't decide what should i do with these offers.
I think that there is a good solution to remove white spaces from aspx page and from aspx.cs files. There are some solutions how to remove white spaces from html (aspx) but there is nothnig about aspx.cs.
I'm a front-end guy who's picked up ASP.NET WebForms through working on various projects at my agency.I have a project with a developer in mind, and I want to use/learn MVC for it - but he thinks it not worth using MVC at all. His opinion is that the benefits of MVC are perceived, and that performance won't be an issue, and it better to just push forward with WebForms.
The project is a web app that will give people project planning tools, creation of a personal contact database, and their own basic website.My personal feelings are that I hate all the bloat that comes with WebForms sites - the ViewState, the one , the enormous JS files, the lack of control of markup (e.g. validation controls).Obviously, ASP.NET WebForms is linked to resources, but MVC is about URL structures and interpreting them.
After discussion and research I'm thinking now that because of the supposedly large transition/learning curve of MVC, it really is better to just stay with WebForms.I watched Ryan Singer work with RoR MVC in person, and I was stunned at how rapid everything was to develop.Should I just accept that it's more pragmatic and productive to keep with WebForms now, and not use MVC, or should I find a way of convincing my co-worker that MVC is the right thing to do?