I have exactly 1 month until I start a web app project (standard 3-tier) using Java. I can probably decide on the frameworks and (frontend) technology used. The app will most likely be contained in Websphere.
I am coming from a .NET (mostly) backend development world (SQL Server, basic NHibernate, basic ASP.NET).
If I can spend all my ...
Has anyone managed to get administration rights through the UAC without restarting the application or embedding a manifest file?
I'd like to write to some files that only administrators can modify, without relying to another elevated application. Is it possible to impersonate an administrator previously calling with some native API the ...
I have a .NET CF program (running on a Smartphone) and I have written an options page for it.
On the options page I have links to 6 other forms which contain the actual options.
When the main form loads it creates the 6 subforms and stores them in a list ready to be launched. The issue with this is the initial creation time required to...
I'm working on a silverlight application where I'm checking the url to see if the user is trying to access the "Spanish" version. My methods work fine on Windows 7 and Windows Vista but I'm getting a crash throwing an Argument_InvalidCultureName exception when a user of Windows XP tries to load the application. Can someone look at the ...
All,
I have a big list of user emails, and I need to get the username and domain name for each one of them.
My organization contains lots of domains and our users log on to their machine using usernames that are different from their email addresses.
Please advise if we can write a C# utility that can search AD using the email of each ...
Im using the css friendly adapters from codeplex with sharepoint.
It appears to be working although when i go to "manage content and structure" page the page returns an error:
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>). at System.Web.UI.ControlCollection.Add(Control child)
...
I have an MDI WinForms app in which the MDI parent form has a ToolStrip, MenuStrip and StatusStrip. Whenever the mouse is moved over one of these controls the cursor changes to a 'wait' cursor (a arrow with an hourglass). This seems to be default behaviour in that there is no code to make this happen. The UseWaitCursor property of both t...
Lets say i have the following c# classes:
abstract class a
{
protected abstract void SomeMethod();
}
abstract class b : a
{
protected abstract override void SomeMethod();
}
class c : b
{
protected override void SomeMethod()
{
}
}
Is there actually any point in overriding the method in b when it could just as eas...
My situation is that I screwed up essentially. I inherited my code base about 1.5 years ago when I took this position and rather than reinventing the wheel, even though I know now that I should have, I kept the DAL in pretty much the same structure as the previous developer.
Essentially there is one file (now at 15k lines of code) that...
In the example below, if client code using GetPeople wanted to print the name and age of each person to the console, it would have to use reflection (I suppose) to determine that query contained an IEnumerable(Of Person) and then cast it as such to get at its properties.
Public Function GetPeople() As IEnumerable
Dim query = From p ...
EDIT: This question is a duplicate of What is the difference between managed and native resources when disposing? (.NET) and many others. Please answer the others if you have something to add.
According to the Framework Design Guidelines by Krzysztof Cwalina and Brad Abrams, a type that contains instances of disposable types should im...
I am trying to use C# to access the content of a webpage. For example, I want to grab the text of the body of google homepage.
I know this is doable in C# with its web browser control. But I couldn't find a good, simple example of doing it. All the resources I found online involve creating Forms and GUI, which I don't need, I just need...
Hello
Currently looking at the Google Analytics Export API (http://code.google.com/apis/analytics/docs/gdata/gdataDeveloperGuide.html)
Does anyone know of any decent .NET wrappers that exist for this?
My only requirement is to extract the data, so if there are even off-the-shelf software packages out there that would allow me to down...
Hello ,
in the past hour i have been trying different variants of this query but i get error at the username , and the username is just a normal string with username that i get from xml file containing no special characters or whatsoever
I'm using SLQ compact 3.5
P.S i tried to use ? instead of @username also not working
all feild...
We've got a winforms LOB application, which under normal circumstances should be started from a launcher that should do basic version checks and download any updated components, before spawning the main process.
One problem we're seeing is that some members of staff have found it loads faster by not running the update application, howev...
I'm using WCF to let multiple peers connect to each other using the NetPeerTcpBinding.
Is there a way to contact a single peer in this mesh?
Preferably I would like to contact this peer transparently, so that the receiver simply continues to listen to the channel it always has, while the sender jumps through some hoops to deliver the m...
Is there any chance Chrome OS will support .NET framework?
Or will we need to learn Java...
...
My colleague and I have been having a discussion about what Collections should be called.
For example:
Class Product - Collection - Class Products
or
Class Product - Collection - Class ProductCollection
I've had a look around to see if I can see any guidelines or reasons for using one or the other but nothing seems to spring out. Th...
From Framework Design Guidelines:
DO NOT implement value equality on mutable reference types. [p-270]
From Eric Evans's DDD:
Each ENTITY must have an operational way of establishing its identity with another object. [p-94]
Should I treat overriding Object.Equals method as identity operation or just compare the Identity attrib...
I have a .NET application running on a Smartphone.
I want a way for the application to close when it is pushed into the background.
I.e. if a user presses the off button once itll take them to the desktop. The application is still running in the background though.
I want a way to detect that the application is no longer in the foregro...