.net

Stop exception from being thrown for non-existant controller

Ok, so I am stumped on this issue. I have seen a lot of things that are supposed to resolve this issue, but I am not getting a resolution that can fulfill my requirements. I am using ELMAH to log exceptions and am getting this exception when either a URL with invalid controller or proper controller and invalid action. System.Web.HttpEx...

How to handle mututally/recursively related tables?

Hi, I'm pretty new to databases and sql. I have a problem where I have two tables which both contain a foreign key to the primary key of the other. My problem is I have a large number of elements which can have multiple names in different languages, but MUST have a single primary name/language. Firstly, I want to know if this is possib...

Can I have multiple PDBs for the same AssemblyVersion in the Symbol Server?

I have a Class Library that has an AssemblyVersion of 1.0.0.0 and has to keep it even when it's updated (SharePoint...). So I'm using the AssemblyFileVersion as the "real" version. Now, I want to setup a Symbol Server and I wonder if it's actually possible to have multiple PDBs for the same AssemblyVersion and have it automagically wor...

.NET equivalent Java tools and libraries

So I am pretty much been a Java programmer but I play with F# on the weekends. One of hardest part I have with .NET is trying to find the equivalent to some tool or library I had in Java. Sure I can google the equivalent for each tools but I would rather see a side by side equivalent for each tool in one place. I also would like to know...

Programmatically find how much RAM available

Is there a portable way, that works on both .Net and Mono on the various supported operating systems, for a program to tell how much RAM (i.e. physical not virtual memory) is available in the machine it's running on? The context is a program whose memory requirement is "as much as possible please"; it needs to know how much memory it sh...

Convert DateTime to String value?

How do I convert DateTime to an Integer value? Edit: How do I convert DateTime to a String value? Example String return value of 20100626144707 (for 26th of June 2010, at 14:47:07) ...

.NET ComboBoxStyle.DropDownList selecting while typing

I have a ComboBox with a list of names. I don't want to allow new values, so I set the DropDownStyle to DropDownList. When typing to select a name, it only allows one letter. So if I type "T" it will jump to the first name starting with "T". If I then type "o", it will not jump to the first item starting with "To", but to the first item...

find bold text in excel sheet using C#

How to find bold text inside cells of Excel sheet? I'm using C#, OLEDB and ADO.NET for reading xls file, but I don't resolve how to resolve my task. Do I need to use Iterop.Excel? ...

Is there any way to focus ( tab control ) picture box ?

I am working on .NET 2.0 with C#. How to make focus the control to picture box after pressing the tab from text box ? Please, give me a solution. ...

Writing a Password Filter for Windows in C# and registering the dll

I'm looking to write a custom password filter for windows using C#.Net. Any inputs on that? I have already read the programming considerations for writing a password filter. I'm not able to find any code sample in C#. ...

Any way to associate a HtmlElement (.NET) to a JavaScript element?

I'm trying to make an extended version of a WebBrowser with stuff like highlighting text and getting properties or attributes of elements for a Web Scraper. WebBrowser functions doesn't help much at all, so if I could just find a way from HtmlElement to a JavaScript element (like the one returned by document.getElementById), and back, an...

DatetimePicker in asp.net 2005

Using C# and ASP.Net 2005 I want to add the Datetimepicker Control in my web page. I cannot able to find the control in VS 2005 How to get the DateTimePicker Control in VS2005 ...

Simulate multiple client connections to a server

Hi. I want to test my server as to how many simultaneous connections it can handle .. having considerably low connection problems... in other words to simulate a stress testing Scenario. How do I go about it? Thanks for your advice. ...

Searching for an interesting Topic for my Bachelor Thesis .NET

Hi I am currently searching for good topics for my Bachelor Thesis. I definately want to do something with .NET and maybe WPF. So far I have no idea what to write about :( Maybe anyone of you guys have a good idea ? It mustn't be WPF related but it should have to do with .NET and C# At first I thought I could write about WPF in combin...

WPF beginners video tutorials

Hi, Can someone please suggest some site/reference for WPF video tutorials for beginners? Thanks for your interest. ...

How to get max digits for the decimal part that non-integer numeric data types can support?

An user must enter a number into a mask-edit control. But that number is, depending on the underlying property, one of any .NET numeric type. For instance. If the property is sbyte, the maximum number the user can enter (with any digit, from 0 to 9) is 99 and the minimum is -99 (because sbyte ranges from -128 to 127). That is something ...

How can I normalize/canonize a regular expression pattern?

Hi, I have a complex regular expression I've built with code. I want to normalize it to the simplest (canonical) form that will be an equivalent regular expression but without the extra brackets and so on. I want it to be normalized so I can understand if it's correct and find bugs in it. Here is an example for a regular expression I ...

.NET Equivalent of Snipping Tool

I'm looking for .NET code which performs the same as Snipping Tool - capturing a screen area. I believe it uses hooks. Would be interesting to know how does it highlight the selected fragment. Update: Found http://www.codeproject.com/KB/vb/Screen_Shot.aspx . Though people say it's missing some important files for proper compilation. ...

How does one create a single instance of Notification<T>?

Using Rx, is there a simple way to create a single Notification<T>? The closest I've been able to find is: T value = ..; var notifyValue = EnumerableEx.Return(value).Materialize().First(); This seems rather roundabout. The constructors for Notification<T> are inaccessible, but is there a factory method that I'm not aware of? ...

how to specify one property to come under a node as subnode in xml using attributes

public class abc { public string b; public string c; } <a> <b></b> <c></c> </a> and can we explicitly specify "a" ...