see also Which C#/.NET Dependency
Injection frameworks are worth looking
into?
There are now many dependency injection frameworks to choose from. You used to often be forced to use a given dependency injection framework due to a library you were using. However the Common Service Locator library has enabled library code to be i...
I designed an ascx control (I refer to it in this question as customControl). The control is just a series of drop downs with text values in each drop down. The drop downs are inside a panel.
Here it is below:
I then place a few of them on a page that also has a textbox (I refer to it here as textbox)
Here it is below:
So what I ...
Are there any disadvantages in performance by using the CallByName function in VB.NET? Is there any better way to do the call by Name in .NET 2.0 onwards.
...
A co-worker said this is possible (but it looks a bit strange to me).
If there's a way to do it, where can I do this?
I'm talking about winXP OS.
...
In C#(.NET), what are the regular "formatting" standards?
For instance, for parameter names, so far I noticed camelCase with no prefix, is that right?
For object names, camelCase and no prefix either, right?
For namespaces, classes, functions and properties, first letter of the word is capitalized and there is no prefix, is this right ...
I have a graphic made dynamically with a polyline object. It produces something interesting but I would like to keep only the last 10 coordonates and once we have reach the 10th position, every coordinate would move to the left by X pixel and the new value will be added at the end.
In the Add function of my drawing class I tried this ki...
I'm using WatiN to run IE inside a VB .NET function:
Dim ie8 As New IE("[some website]")
Login(ie8)
Logout(ie8)
It runs perfectly fine when I call the function from a console application.
However, when I call the function from a unit test, then WatiN throws a TimeOut exception on the Dim statement.
I tried putting:
Dim ie8 As New I...
How do I set a background sound on a Web page?
...
Hi
Does anyone know how Asp.net membership generates their salt key and then how they encode it(ie is it salt + password or password + salt)?
I am using sha1 with my membership but I would like to recreate the same salts so the built in membership stuff could hash the stuff the same way as my stuff can.
Thanks
Edit 2
Never Mind I mi...
At the moment I am using powershell hosted in an asp.net app to communicate with Exchange, and create Exchange objects. Does anyone know of any other means of interacting with Exchange? These methods need to allow the creation of items such as mailboxes and distribution lists, so Exchange Web Services is out.
...
Does anyone know how to convert a NSDate to JSON Date(ticks) to have sent to a .net web service?
...
I have a function that looks similar to the following. I'd like to modify it so I can pass in multiple types to filter on instead of just one. I don't suppose there's a params/paramarray option for type parameters, is there?
Public Shared Function Filter(Of T)()
Dim results As New List(Of T)
For Each item In GlobalCollection.Al...
Hello everyone!
A couple of weeks ago I've discovered log4net and I couldn't be happier with my initial results. So far I've been using the factory settings (BasicConfigurator.Configure()), but now I feel like going a step further and trying some customized configurations.
I've wrestled my way to make the application read the configura...
I am writing a Visual Studio add-in to process C++ code, and think that COM interop is slowing me down to much. I therefore want to pass a C# reference to a COM object to a small C++ DLL, have the DLL perform the necessary calculations and return back a string.
I would be passing a CodeFunction2 object to the DLL and getting an XML str...
What is the proper way to call a ASMX Web Service with MicrosoftAjax.js if your just including the JavaScript in static HTML?
What I have so far:
<html>
<head>
<title>Testing</title>
<script type="text/javascript" src="scripts/MicrosoftAjax.js"></script>
<script type="text/javascript">
function testCallSoap() {
...
Just looking for a short overview of GAC for a layman, not a link please.
...
Hey, I'm having an issue seperating packets using a custom binary protocol.
Currently the server side code looks like this.
public void HandleConnection(object state)
{
TcpClient client = threadListener.AcceptTcpClient();
NetworkStream stream = client.GetStream();
byte[] data = new byte[4096];
wh...
<a href="#" onclick="declineWindow(<%= Html.Encode(item.ConnectionRequestId) %>);">Decline</a>
Can anybody explain why the inline code block doesn't work when I use it to populate the value of an attribute? Intellisense stops working and the page throws an error. If I move the block outside a the "a" tag then it works fine.
...
I have used the RhinoMocks product for quite some time and have been quite happy with the product - never had a reason to look elsewhere really. I was recently asked by the good folks at TypeMock to give their product a whirl and was wondering what other developers opinions are about Typemock Isolator. Are there any other isolation/moc...
Is anybody aware of any libraries for working with MHT files (Multi-Part MIME files) in .NET? I need to programmatically extract the contents from an existing MHT file containing a Flash website. I haven't been able to locate any such libraries.
Also, if there's a native way in .NET that I'm not aware of, please feel free to let me know...