.net

How would I create this report in reporting services for the report viewer control?

I have this dataset created in Visual Studio 2008 in my project. I have already filled each table with the data that I need. There will be multiple tickets and each child table will have either 0 or more items relating to the ticket table. There are no relationships established as part of the dataset (yet). I also have this report create...

Learning Web Development-Choosing a Language and Framework

This is a subjective question and let me make it clear that I AM NOT asking for what the best language is. That being said, I want to do web development. I want to create sites around various topics, some for myself and some to sell and also do freelance down the road. I would also like to be able to create applications (RIAish and We...

WCF Custom Service Behaviour

Context: I am hosting a number of services using WCF. I'd like for each of them to support a Ping operation (heartbeat, keep-alive, whatever...). But, I'd rather not go implement IPingable on each one. Instead, I'd love to do something like the serviceMetadata behavior does and dynamically add a channel dispatcher. This would mean a...

ADO.NET Entity Framework and NHibernate - when to use one over the other

I am working in a Microsoft .NET shop where it is okay to use NHibernate or ADO.NET EF. What guidance should we be using about when you should choose one over the other? For example, it seems like when writing a Silverlight app the EF -to-> ADO.NET Data Services -to-> Silverlight would offer a productivity boost, and provide you with a ...

Stack overflow from native DLL called from managed application

I'm getting the infamous 0xC00000FD (stack overflow) exception from my application when I call into a native DLL. This is being done from a managed C# application on Windows CE 5 (SH4 processor). Compiling the same DLL for Windows XP using the same managed application and everything works fine (no overflow). The routine in the DLL is ...

Lightspeed vs NHibernate

What is the experience with LightSpeed? The comparison provided by Mindscape doesn't say too much about NHibernate. Lightspeed seems flexible, but I don't see much about performance. How well does Lightspeed perform? Also are there any drawbacks to using Lightspeed? ...

Chinese language codes

We are updating an old .net 1.1 website to 2.0. The site currently supports Chinese (Traditional) & Chinese (Simplified) I'm getting a run time error when trying to detect the language & culture using the codes: zh-CHS (simified) & zh-CHT (traditional): Please select a specific culture, such as zh-CN, zh-HK, zh-TW, zh-MO, zh-SG. From...

How can I avoid AmbiguousMatchException between two controller actions?

I have two controller actions with the same name but with different method signatures. They look like this: // // GET: /Stationery/5?asHtml=true [AcceptVerbs(HttpVerbs.Get)] public ContentResult Show(int id, bool asHtml) { if (!asHtml) RedirectToAction("Show", id); var result = Stationer...

Using "Microsoft Chart Controls for .NET Framework", how to set a bubble's diameter in a dynamically generated bubble chart?

m_chart.Series("TestSeries").ChartType = SeriesChartType.Bubble m_chart.Series("TestSeries").MarkerStyle = MarkerStyle.Circle m_chart.Series("Default").Points. ... at this point, how can i set x, y and diameter values? ...

Expressing recursion in LINQ

I am writing a LINQ provider to a hierarchal data source. I find it easiest to design my API by writing examples showing how I want to use it, and then coding to support those use cases. One thing I am having trouble with is an easy/reusable/elegant way to express "deep query" or recursion in a LINQ statement. In other words, what is th...

beyond dot net large int

Duplicate: Working with incredibly large numbers in .net Does anyone know of a dot net class that will store LARGE integer values? and by LARGE values, I mean values that exceed the maximum size of the basic data types. I would hope that there would be a microsoft supplied class, but failing that I would be open to a 3rd party library...

How do I share MenuItems between a ContextMenu and a ToolStripMenuItem?

I have a context menu attached to a panel, that should mirror commands available in a toolbar menu. Currently in my MouseUp event, I set the enabled state of the MenuItems, and add them to the context menu: ctxMnuLinks.Items.Clear() ctxMnuLinks.Items.Add(mnuLinksOpen) ctxMnuLinks.Items.Add(New ToolStripSeparator) ctxMnu...

Webservice or WCF or what

Hi, I have an application that users access via phone (touchtone) or SMS. Now want to give them web access. Thought a webservice communicating with app via TCP would do it. TCPClient connection code that works OK in the app fails in the webservice with 'Host actively refused connection' Makes me think that IIS won't allow a Webservice ...

WorkflowMarkupSerializer doesn't keep positions in a state machine workflow

I am using WorkflowMarkupSerializer to save a statemachine workflow - it saves the states OK, but does not keep their positions. The code to write the workflow is here: using (XmlWriter xmlWriter = XmlWriter.Create(fileName)) { WorkflowMarkupSerializer markupSerializer = new WorkflowMarkupSeri...

What happened to MEF type, "AttributedAssemblyPartCatalog"?

Many simple MEF examples (listed below) uses AttributedAssemblyPartCatalog. Hosting MEF in an application on CodePlex MEF page Simple Introduction to Extensible Applications with the Managed Extensions Framework by Brad Adams Managed Extensibility Framework Tutorial - MEF by David Hayden I have downloaded MEF source from CodePlex but...

polling joystick C#

i have an application that records a date/time when the space bar is pressed unfortunately, the window doesn't always have focus, for various reasons. eg virus checker popup, itunes update, windows update, etc so what i though would be a cool idea is to use a joystick button, then regardless of which window has focus, i can always detec...

How do you programatically find Vista's "Saved Games" folder?

I am using XNA and I want to save files to Vista's "Saved Games" folder. I can get similar special folders like My Documents with Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) but I cannot find an equivalent for the Saved Games folder. How do I get to this folder? ...

Best design practices for .NET architecture with LINQ to SQL (DAL necessary? Can we truly use POCOs? Design pattern to adopt?)

I was avoiding writing what may seem like another thread on .net arch/n-tier architecture, but bear with me. I, hopefully like others still am not 100% satisfied or clear on the best approach to take given today's trends and new emerging technologies when it comes to selecting an architecture to use for enterprise applications. I suppo...

How to "watch" character values of a string on Visual Studio?

I remember I could add modifiers to a watched variable during debugging to make its display in different formats in Delphi. Such as "str,m" would display string in its binary representation. Similarly I'd like to look at binary representation of a string to see character values for .NET applications on Visual Studio 2008. What's the eas...

Should I use Umbraco for this?

I have a requirement to setup a website that allows users, user blogs, a forum and is flexible enough to add other features via .net. I'm just about to evaluate Umbraco, but for another website that's clearly up the CMS alley, however the aforementioned project needs faster turnaround. ...