Browse by Tags
All Tags »
.Net
Because I have pages with the markup <%= someVariable%> like < script type ="text/javascript"> function ConfirmCallBack(arg) { if (arg) <%= this ._nextPostBack%> } </ script > I get the following error: "The Controls
Read More...
Started today using Codesmith tools today after a year or so since the last time that I used this great generation template based tool. I had to generate all the layers of an existent portal and I decided to use the netTiers templates to accomplish this
Read More...
I have a class library project where I want to add the assembly to the GAC but only when the configuration is Debug. The solution is: if "$(ConfigurationName)" == "Debug" "C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\"gacutil
Read More...
If you have created a custom section like this , and if you want to add it programmatically to web.config then you have to: Use the WebConfigurationManager class and open the web Configuration config = WebConfigurationManager.OpenWebConfiguration(path,
Read More...
First we need to create a custom ConfigurationElement. This configuration element only has a value attribute. public class MyConfigurationElement : ConfigurationElement { /// <summary> /// Initializes a new instance of the <see cref="ValueConfigurationElement"/>
Read More...
In the project that I'm currently working I had a problem because my connection strings are different from the other developers: I want to work locally in my SQL Express so the connections strings are different and since we are developing with Visual
Read More...
Imagine you have file saved in a database. Then you have an aspx page that gets that page and sends it back to the user. If you just simply use Response.BinaryWrite you get the browser's download dialog box and the file's name will be the aspx
Read More...