I'm thinking about how to design my service, especially the part which will provide data for an gridview on the clien side.
The GridView needs this data:
-A list of objects
-Count of all records
The question is:
Should I create one method for getting these data which will return an object which would includes the count and the list....
is there anything similar to .Net's
LinkedListNode<(Of <(T>)>)..::.Next and LinkedListNode<(Of <(T>)>)..::.Previous properties in Java's java.util.LinkedList.
...
For some reason, after using an IpcChannel and shutting it down, sometimes the namedpipe stays open, with a thread waiting on it. I cannot make this happen on demand in a debug environment, but it happens 5 to 10 times per day in our production environment. The bad effect this is having is that it is stopping me from unloading the appd...
During this semester my professor tried to convince us why is good to use unit tests during development, why is it good to validate data(Microsoft Application Block) and also he told us about using mocking(RhinoMocks) in order to test our methods when we didn't had access to a database.
I had to do some unit tests with mocking and in or...
Is there a reliable way to extract text from PDF? The first thought that comes to mind is that PDF may have multiple columns and the extraction mechanism needs to know the logical structure somehow. I understand that some PDF docs are "tagged" but I'd need to support pretty much any PDF document.
Any third party components to the rescue...
I want to show my Silverlight 3 application's version number in the about box, but when I use a traditional .Net call like:
Assembly.GetExecutingAssembly().GetName().Version;
I get a MethodAccessException on the GetName() call. How am I supposed to get the version number of my assembly?
...
I have created some custom PowerShell Cmdlets in C# and would like to provide some information to be displayed using the get-help cmdlet; e.g. "get-help my-cmdlet".
I have created a basic snapin deriving from PSSnapIn and overridden the Description, Name and Vendor properties. I have also created my help file "Cmdlets.dll-Help.xml". C...
In an ASP.NET page I have this:
<asp:Label ID="MyDateTimeLabel" runat="server"
Text='<%# Eval("MyDateTime") %>' />
I'd like to have it formatted like
... Eval("MyDateTime", "{0:d}") ... // Display only the date
if and only if the time part of MyDateTime is 00:00:00. Otherwise like this:
... Eval("MyDateTime", "{0:g}") ... //...
I am testing web services in .NET for the first time. I am almost there, but I can't seem to consume the web service. I know this post is similar to about 5-6 other posts on this site, but I have reviewed them, and still can't get the syntax correct.
So far, I have:
-Create a simple web service that creates a directory
-Worked in develo...
I create some control and i define some properties who can define in desing time, but only shows one.
Another issue is that in the one shown, the textbox of the form was displayed, but i can't select any.
[Description("Blah Blah Blah"),
Category("Data"),
DefaultValueAttribute(typeof(TextBox), null),
Browsable...
I am doing an MVC project with structuremap as an IOC container. We are doing TDD, and I want to set up my dependencies so that its easy to work with, and so that its easy to test.
How should I best set up the graph of dependencies for the below fictional illustrated graph ?
ApplicationController
Controller
AuthenticationService
Us...
I have my mind firmly wrapped around relational databases and how to code efficiently against them. Most of my experience is with MySQL and SQL. I like many of the things I'm hearing about document-based databases, especially when someone in a recent podcast mentioned huge performance benefits. So, if I'm going to go down that road, what...
I have users and processes on a web server. I'm looking to write a windows service that is capable of intercepting calls to create folders within a specific sub-directory. I've found several sources out there for reactively catching that a folder was created, but I want to create a windows service that will proactively intercept and pre-...
Hello,
I have a .NET remoting service listening on a Windows 2003 Server. As far as I know, the Windows Firewall is properly configured to let the information of the Remoting Application go out.
In my PC I have the other part of the communication, trying to execute methods that lives in the Remoting object. In theory, there are not fir...
What is the performance like when using Apache mod_mono compared to IIS 6 or 7? Does the mod-mono-server that receives the requests from mod_mono have the ability to thread incoming requests or does it act more like a CGI program?
I also see that the mono project comes with a web server bundled with it. Is this web server considered a d...
are there any or any alternatives available ?
...
I have two questions, actually. But they are very closely related.
Suppose I have a simple struct like this:
public struct TradePrice {
public float Price;
public int Quantity;
public TradePrice(float price, int quantity) {
Price = price;
Quantity = quantity;
}
}
Question 1
Now if I have code somewhe...
I am a bit new to WCF and will try to clearly describe what I am trying to do.
I have a WCF webservice that uses JSON requests. I am doing fine sending/receiving JSON for the most part. For example, the following code works well and as expected.
JSON sent:
{ "guy": {"FirstName":"Dave"} }
WCF:
[DataContract]
public class S...
I have a custom collection, lets says COL, that derives from ObjectModel.Collection.
I have my own collection editor that works fine when a property, of type COL, is Read and Write enabled.
However, if I change the property to ReadOnly, the open editor button stops showing in the property grid.
As a test, I override my custom editor wi...
We need some support statistics if available, to decide the future of few major investments we are planning on top of Silverlight platform.
According to RiaStats http://riastats.com/ - Silverlight penetration rate was around 20% in March 2009, and now it is around 50%. In US, presently it is ~38%
Looking for answers with some stats/fig...