.net

How can I track version numbers with ASP.NET MVC and WinForms?

I'm having trouble finding what built-in mechanisms there are in the .NET framework for setting version information at build time. Our development efforts are primarily directed at a WinForms application deployed with ClickOnce. For this, we already have a system in-place and working. I would like to try to extend what we already have...

Winforms .net Datepicker does not respect 24 hour format?

I have a timepicker (datetimepicker) formatted as HH:mm - 24 hour clock. It displays as 00 to 24 and 00 to 59 and will not allow invalid values to be entered. This is exactly what I want. However, it returns values as 12 hours with AM and PM indicators. This means that when the user enters "00" it is returned as "12", and "14" is retur...

ASP.NET FREE WEBHOSTING

Hi guys, very easy question. Can somebody give me advice, where to find free webhosting with support of sql server 2008, .net framework 3.5 ? Sorry for this kind of question, but I'm in hurry and I can't help myself with finding something usable. ...

LINQ inner join

I have two collections: List<int> ids; List<User> users; Where User has id, name, etc. I would like to inner join these two collections and return a new List<int> with ids from the first collection which are also in the second collection (User id's). I am new to LINQ and don't know where to start. Thanks. ...

Capturing a snapshot of a running .net application for playback in a debugger later.

This is probably just a crazy pipe dream but I thought I would ask if something like this exists anyway... Have you ever been here... Somebody in the QA team files a bug but when you (the developer) try to repro the bug, its almost impossible to reproduce the exact set of steps that lead to the problem. This is especially common where m...

Single x86-built Assembly Causing entire Assembly to execute as 32-bit

Hey all, My program (a console application) references several other assemblies (many open-source libraries). I built the assembly with the "Any CPU" option set (using VS2008). When I start the assembly from a 64-bit command prompt on a Windows Server 2008 x64 machine the process always starts as a 32-bit process! I looked through my...

What puzzles me...Are .NET languages the mainstream languages for Windows (standalone) applications?

I'm an inquisitive .NET student without any commercial working knowledge and I have been puzzled by what exactlty are .NET languages meant for? Q1.If you look on job websites, .NET seems mainly used for web applications, not much for Windows applications? (My dream job is to develop standalone small Windows applications.) Q2.Are most ...

ASP.NET Validation not firing even when my form is obviously invalid.

I've got the following View <% Using Html.BeginForm()%> <%: Html.ValidationSummary(True) %> <div class="displayright"> <h3> <%: Html.LabelFor(Function(model) model.About) %></h3> <noscript> <h3> Please use <%: Html.ActionLink("Markdown", "Markdow...

XmlInclude to (De)Serialize Inherited Types in Separate Assemblies

hey all, I have this scenario: namespace MyApp.Animals { public class Dog : MyApp.Categories.Canine ... So I'm trying to serialize/ deserialize the dog class. Unfortunately I can't use the [XmlInclude] attribute, because by adding it to the parent class (MyApp.Categories.Canine), I need to add a reference to the assembly in whic...

Events being sent to disabled control

I have a problem that I'd like some advice on. I have a button in my GUI that starts a complicated setup sequence (to connect to a analogue to digital converter and start logging data from an echo sounder). Once it is finished setting up, the button changes from START to STOP and has the expected behaviour. What I was experiencing is tha...

Storing number of dynamically inserted controls for postback

I need to create the following functionality, and looking for the best way to store info on multiple postbacks: Say I have a TextBox, that is related to a question, i.e. "Places I've visited". Once TextBox will be loaded on first load. Under that, there is a button to "Add another place". This will postback, which will then add another ...

Using a queue in a multithreaded situation in C#

I just learned about queues in .NET and I have a few questions. Let's say that I'm building an application that downloads the HTML of pages and then processes it. Here's how I want it to operate: A main thread adds URLs to a queue This queue is read by two other threads. They "dequeue" a URL and then download the corresponding HTML. T...

What do you do with unused code in your legacy applications?

On huge legacy applications it is fairly common to see change in business rules leading to unused code. Is the deleting the best way? or Are there any standards of marking the unused code? SCM does help to get the old code back if needed. Also this is specific to .NET code bases. ...

Nested Masterpage problem with Page Class (HttpContext.Current.Handler) when using Page.GetRouteURL

So for Asp.net 4.0 they have the routing feature. For some reason, the GetRouteURL doesn't work in my nested masterpages. They work fine in my non-nested masterpages, and pages that don't have masterpages...so I'm thinking it's a nesting issue. Anyways, I couldn't find any info on it. Maybe there are similar problems with other Page cla...

The lan.Net 3.5 Application working in Windows 7 ultimate but not in Windows 7 professional.

Installation of application in windows 7 professional and Ultimate. In ultimate it is working fine but not working fine in professional. The application is developed in .Net 3.5 framework. Is there any possible difference in functioning of the application in Professional and Ultimate editions. By not working i mean the windows forms...

free Image manipulation tool in WPF?

Is there any free(source code) image manipulation tool available?. The functionality should contain Free Text, Drawing tools (Circle, Rectangle), Pencil , Line , Zoom in, Zoom out and rotate. ...

Enterprise library validation application block with inheritance

I'm using Enterprise library Validation application block. abstract Class A { public int fieldA; } class B:A { } I add validators to type B. I'm not able to find the field fieldA and also even if I enter it in configuration, the validation does not succeed. Does VAB not take the abstract class and inherited properties or fields into...

Azure and Dot net

Hi Guys, As we all know Microsoft came up with the Windows Azure platform. I want to know is that do we'll need to work(learn) on Azure platform to make cloud based application or we can also do the same with the dot net. If not then I think Dot net will be surppressed by this Platform or Microsoft will do it. Thanks ...

Authorize filters vs Action Filters

Hello, i m using .NET mvc2 for my application. i want some custom authorization on my actions. i have googled a bit and there seems to be two options available. Impelement logic in onActionExecuting in custom Action Filter see this post subclass authorizeattribute or implement Iauthorization interface and put my logic there My quest...

Why does binding my radiobuttons to application settings change their behaviour when clicked?

Possible Duplicate: Using ApplicationSettings to store Checked property for WinForms RadioButtons I have three radiobuttons in a groupbox. When they are not bound to application settings, they behave normally. After binding each of their checked properties to application settings, the following happens: I have to click an unc...