Can you rename the App_Code folder? - asp.net

I realize this would violate convention, but I'm curious to know if you can do this through configuration.
Edit: I understand why I wouldn't want to do this. BUT, I do want to understand the internals of this time of project.

No you cannot rename this folder and have it actually contain executable code. The web project system is hard coded to look for code in this folder and will not consider any other folder for raw code.

Reflector tells me that System.Web.HttpRuntime contains...
internal const string CodeDirectoryName = "App_Code";
So the answer is no.

I dont think this is posible, but why do you need to change it?

Google "Convention over Configuration"

Related

dll binding for asp.net (dll versioning)

I know this is a very basic question - but I did not face this issue till now - so am asking for help.
I have two dll files, with the same name (example.dll), but fortunately with diff version numbers 1.0.3180.20767 and 1.0.2490.20011. I want to use both these dll in the same project.
How do I use them? - Simply clicking "Add reference" fails with the following message
I can rename the files so that they are now called "example1.dll" and "example2.dll" - but is that ok? is there a better way to do this.
Thanks all for your help!
I think that after adding the first assembly, go to properties of that reference and assign an alias to it. Then it should be possible to add the second one as well.

QNetworkAccessManager::setProxy example

may someone give an example of using properly QNetworkAccessManager::setProxy, i meant i primaly a java developer mostly using HttpClient all the time.
Thx!
Ricardo, in Qt source code directory go to "examples/declarative/cppextensions/networkaccessmanagerfactory" or go to http://qt.gitorious.org/qt/qt/trees/4.7/examples/declarative/cppextensions/networkaccessmanagerfactory. There is nothing complicated in that class method so you should be able to use it.

Translate Resource File

I'm developing a asp.net application and I use some components. I have a component with a resource file with a lot of keys in English. I need to translate it to Portuguese (Brazil, pt-br). I would like to know, if is there any way to translate it with a program? Or if is there a program that do this?
Thanks
I have the same issues and was looking to use Google's Translation APIs, based on this article Automatic Resource File Translation via Google Translate
I will let you know how it goes - but obviously you may still need someone to validate the output, I know I will.
Maybe my free Zeta Resource Editor is of some help for you.
I have not been satisfied with the various solutions out there so I wrote something: https://github.com/ekkis/Powershell/blob/master/MT.ps1

converting virtual path to actual web path in ASP.NET

I have a virtual path (example: "~/Images/Banner.jpg") and I want to make that an absolute web path (example: "/ApplicationRoot/Images/Banner.jpg"). There is a method that will do this, I believe in a class called something like HTTPUtility or similar name. Though ever time I need this method, it takes me hours searching for it. It would be greatly appreciated if someone could post the proper method to do this so I can favorite this for easy access in the future.
Thank you very much.
System.Web.VirtualPathUtility.ToAbsolute("yourRelativePath");
There you go :)
There are various ways that are available in ASP.NET that we can use to resolve relative paths to absolute Urls -
1) Request.ApplicationPath
2) System.Web.VirtualPathUtility
3) Page.ResolveUrl
4) Page.ResolveClientUrl
Here's a article that explains the difference between the various ways to resolving paths in ASP.NET -
Different approaches for resolving URLs in ASP.NET
Control.ResolveClientUrl(url)
or
Control.ResolveUrl(url)
Whichever one you need (honestly I dont know the difference, as both seem to return mostly the same, perhaps someone can illuminate me :) ).

Flex 3 Localization: Removing a Locale

Although I'm still poking around in the docs and online, I figured I'd ask this one here, for future folks who run into it.
Using copylocale for localization, I made a typo (e.g., "en_FR" instead of "fr_FR") and mistakenly created a locale I don't want. What's the proper way to remove it? Is it enough to simply delete it from my framework directory, or is there a helper app somewhere that handles the cleanup if there's more to it than that?
Thanks in advance!
you should be able to simply delete it from the locale directory. The copylocale just creates a copy, nothing more. Just nuke it and you should be good to go. More information here:
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Localization

Resources