I currently have my web.config location section set up like this
<location path="page1.aspx">
<system.web>
<httpRuntime maxRequestLength="65536" executionTimeout="3600"/>
</system.web>
</location>
<location path="page2.aspx">
<system.web>
<httpRuntime maxRequestLength="65536" executionTimeout="3600"/>
</system.web>
</loc...
I am creating a .NET website, and this is my first time using a createuserwizard control.
I need to pre-fill the email address for users (the website is by invitation only) and disable it. However, the email field still needs to be required.
I have managed to edit the template and disable the email field, and fill it programatically i...
Is there an easy way to get the relative complement of two sets? Perhaps using LINQ?
I have to find the relative compliment of a set A relative to B. Both A and B are of type HashSet<T> but I think the algorithm could be made more general (IEnumerable<T> or even ISet<T>)?
I could use a solution in either VB.NET or C#.
...
I am working on a website with a scheduled dataloader exe. The website lives on the web server and the dataloader lives on the DB server. One of the steps in the process is for the dataloader to access the WEB server (to copy/paste a maintenance page file..e.g.\192.168.1.101\c$\maintenance.htm).
I am, not surprisingly, running into ...
I have a single linq to sql class. I would like to detect if it is new (meaning an insert will be done) or if there are any pending changes (update will be done). I realize that I can do this by using a partial class and hooking into the on change events for each property. However that is a lot of maintenance for a class that is const...
I am populating a table based on a javascript function. I want to limit the data entered to 2, afterwhich I hide the table. Is there a way to track how many hits the javascript code gets hit?
function addNewRow() {
$('#displayInjuryTable tr:last').after('<tr><td style="font-size:smaller;" class="name"></td><td style="font-size:sma...
Hi I tried filling a Hashtable in the following way:
ResearchCourse resCourse= new ResearchCourse();//Class Instance
resCourse.CID="RC1000";
resCourse.CName="Rocket Science";
TaughtCourse tauCourse= new TaughtCourse();//Class Instance
tauCourse.CID="TC1000";
tauCourse.CName="Marketing";
Hashta...
Hi there,
when creating a new ViewModel within the locator class using the snippet it creates a Cleanup Method but there is already one available from the Main so hence an error....
Should we merge them all??
Or should we be renaming the method to Cleanup[Name of viewmodel] for example.
I am a little confused here
Another question i...
Hi everybody,
I have a strange problem sometimes when I try to merge a data table with a typed dataset
my data table is filled in with a stored procedure and when I checked the content of this table it is ok, everything is in there
straight after I merge it with my core typed dataset like this :
MyTypedDataSet.TheTable.Clear();
MyTyp...
I have a WCF Service that I have boiled down to next to nothing because of this error. It is driving me up the wall. Here's what I have now.
A very simple WCF service with one method that returns a string with the value, "test".
A very simple Web app that uses the service and puts the value of the string into a label.
A web server r...
Hello,
.NET 4.0
I am looking for the easiest way to generate a Word document on our server.
Limitations :
Server side
I don't want to install word on the server
Data source is XML
I tried to generate a DOCX with XSLT which is fast and easy but the only way I could find to validate the generated document is to open it with Word and...
Two problems:
1) Basic .NET Assembly Not Included in ILMerged Assembly
I'm having trouble using ILMerge in my post-build after upgrading from .NET 3.5/Visual Studio 2008 to .NET 4/Visual Studio 2010. I have a Solution with several projects whose target framework is set to ".NET Framework 4". I use the following ILMerge command to mer...
Hi,
I've configured a simple CXF endpoit with spring wich expose a simple object with a java.util.Date property.
once remotely invoked with a .NET client the date property is always null.
endopit:
<jaxws:endpoint id="simpleService" implementor="cxf.base.SimpleServiceImpl" address="/SimpleService" />
.NET call:
SimpleServiceClie...
I am using FileSystemWatcher to monitor a folder, and it seems to be preventing the folder's parent from being deleted.
For example, I have the file structure:
C:\Root\FolderToWatch\...
with the FileSystemWatcher targeting FolderToWatch. While my program is running, if I go to Windows Explorer and try to delete Root, I get an error ...
I have a user control with a property that is of a reference type. The Windows Forms designer keeps generating code that assigns the property's initial value to null. How can I prevent this?
I tried adding Reset and ShouldSerialize methods -- Reset had an empty body and ShouldSerialize always returned false -- but that did not work. ...
Suppose I have a WinForms app that is built and compiled against .NET 2.0 using VS2008.
It is my understanding that at runtime, the app will attempt to load the .NET 2.0 CLR first, (because that is what it was compiled against), regardless of anything that may be listed in any "supportedRuntime" element of the app.config file.
If it ca...
I doubt it is good practice but I was wondering if it is possible to register a control that is in the global namespace.
something like
<pages>
<controls>
<add namespace="global" assembly="MyControlAssembly" tagPrefix="mca" />
</controls>
</pages>
Thanks!
...
In Visual Studio Team Edition there is a load test tool where you can select unit tests, integration tests etc... to form scenarios which are then used in a load test session with different configurations for example varying usage levels.
Looking at for example the NUnit framework, it would be possible to develop a form of such a tool, ...
I'm running Visual Studio 2010 on a Windows 7 x64 machine, and occasionally VS is giving me the good old "The remote procedure could not be debugged.This usually indicates that debugging has not been enabled on the server" error that a lot of people ask about.
My problem, though, is that it seems to only do this randomly(it can be anywh...
In .NET 3.5 List<> gains a ForEach method. I notice this does not exist on IList<> or IEnumerable<> what was the thinking here? Is there another way to do this? Nice and simple short way to do this?
I ask because I was at a talk where the speaker said always use the more general interfaces.
But why would I use IList<> as a return type i...