.net

Subsonic 2.2 SqlQuery with Inner Join and Where

I am trying to convert the following SQL into Subsonic syntax using the SqlQuery functionality: SELECT DISTINCT * FROM FamilyMemberTeamRole FMTR INNER JOIN TeamRole TR ON FMTR.TeamRoleId = TR.TeamRoleId INNER JOIN Team T ON T.TeamId = TR.TeamId LEFT JOIN FamilyMemberClassHistory FMCH ON FMCH.FamilyMemberClassHistoryId = FMTR.FamilyMemb...

What does "Type" mean, physically?

I have heard a lot about "type system", "strongly typed language" and so on. Currently I am working on some .NET COM interop problem, which addressed "marshaling" a lot. And AFAIK, marshaling is quite about conversion between .NET types and COM types. In many scenarios such as programming language, when talking about types, we are conce...

Is it possible to adjust AppFabric Cache server to store larger objects?

I'm getting an error with the AppFabric Cache Server when I presume a larger object graph gets added to the cache. ErrorCode :SubStatus:The connection was terminated, possibly due to server or network problems or serialized Object size is greater than MaxBufferSize on server. Result of the request is unknown. I know for sure its not a...

When are inline static variables initialized in a class?

Suppose we have a class like: Public Class Question Private Shared _field as Integer = CrazyIntegersRepository.GetOne() ' Some other useful things go here End Class And the method GetOne throws an exception... How can we manage that? Is a good practice to rewrite that into a static constructor? When is the GetOne method go...

Free .NET sFTP component supporting asynchronous uploads?

Are there any out there? I've done a fair bit of searching. Looks like there are some options for a few hundred $US++ but I can't see any free ones. ...

Binding complex properties to DataGridView Win.Forms.

Hi, everyone! I have problem with databinding in the Win.Forms DataGridView control. Example: public class A { public String Title {get; set; } public B BField { get; set; } } public class B { public String Name { get; set; } } I want to see in my column value from B. (BField.Name). I tried to use the next way for ...

Does end user need to have .NET 3.5 or .NET 4.0 to run Silverlight 3 and 4 applications?

Does the end users need to have .NET 3.5 or .NET 4.0 installed on their machines in order to run Silverlight 3 or 4 applications from within IE? ...

Smartphone win Application 's combobox load problem ...

Am working on smartphone application. Here I have a combobox which loads when the value of another combo gets changed. private void cmbTreatmentType_SelectedIndexChanged(object sender, EventArgs e) { MasterData lData = new MasterData(); cmbTreatmentCategory.DataSource = lData.GetTreatmentCategories((int)cmbTreatmentType.Select...

Proper implementation of C# TCP reconnecting client

I have to write a TCP Client that will have ability to reconnect to server. The server can be unavailable due to poor network connection quality or some maintenance issues. I'm searching for quality solutions in this area. My current solutions is following: keep connection state in ConnectionState enum {Offline, Online, Connecting} cr...

network management application.

am supposed to write an application to manage all devices connected to a network routers,radios etc, i've figured a way to know the devices connected, but my challenge right now is how to figureout the bandwidth consumed by each interface of these devices on the network. ...

Is there a 64-bit version of Visual Studio Extensions for WSS 3.0 for Visual Studio 2005?

We have to do some Sharepoint development on a 64-bit machine using Visual Studio 2005. However from initial searches, it looks like 64-bit support was added in a version (1.3 that only supports Visual Studio 2008. When trying to install the 32-bit 1.1 version (the one that works with Visual Studio 2005), it gives an error saying the pa...

How do I make my .net winform app stay at 100% text size even if user changes it in the control panel?

I have built a simple app with a single fixed size form window. When a user goes into Control Panel\Appearance and Personalization\Display in Windows 7 and choose a text size of 125% or 150%, my .net form looks terrible with some controls pushed off the edge. What is the best way to avoid this issue? Can I fix my app to always be text ...

How to parse XML?

This is the response I'll be getting: <?xml version="1.0" encoding="utf-8"?> <rsp stat="ok"> <image_hash>cxmHM</image_hash> <delete_hash>NNy6VNpiAA</delete_hash> <original_image>http://imgur.com/cxmHM.png&lt;/original_image&gt; <large_thumbnail>http://imgur.com/cxmHMl.png&lt;/large_thumbnail&gt; <...

What all points should I consider while making asp.net application for torrent ?

What all points should I consider while making asp.net application for torrent ? The application would allow user to browse, upload, download torrents. Further is there any particular standard for making torrents. Kindly share and enlighten. Thanks in advance. ...

Using XML for storage behind a standard object interface.

Forenote: When I refer to 'interfaces' here, I mean the actual interface to an object, not interface classes, i.e. class Customer { public Name {get;set;} } includes a Name property in its interface. Is there a pattern for exposing XML element values as class interface properties, e.g. with the following XML: <Notification name="Reques...

How can I create a usercontrol with properties set from Page when that property is a list in asp.net ?

I am building a usercontrol which can display data with many flags. I would like to be able to able to declare it this way, or something similar to that from the asp.net page <ctl:DisplayItem runat="server" id="ctlTest"> <flags> <flagIsAvailable /> <flagIsInError /> </flags> </ctl:DisplayItem> In my control, the flags woul...

How can I convert a byte[] response to a valid XDocument?

<?xml version="1.0" encoding="utf-8"?> <rsp stat="ok"> <image_hash>cxmHM</image_hash> <delete_hash>NNy6VNpiAA</delete_hash> <original_image>http://imgur.com/cxmHM.png&lt;/original_image&gt; <large_thumbnail>http://imgur.com/cxmHMl.png&lt;/large_thumbnail&gt; <small_thumbnail>http://imgur.com/cxmHMl...

I have written the exact code in vb and C# and it doesnt work the same... logic is identical... i hope

Kind of new to C# and trying to broaden my abilities a bit. I have this code in VB: Private Sub BreakdownFilesToCompare(ByRef file1BReader As BinaryReader, _ ByRef file2BReader As BinaryReader, _ ByRef firstFile As StandardFormatFile, _ ...

WCF online learning resources

So I've done a little WCF in the most basic way I could come up with and even then found myself wrestling in the config a little before getting it to work. I love the simplicity of contract definition and implementation though once you get the config wrapped. Given that could someone point me to some good online resources (not books, no...

accessing the Windows clipboard

How can you access clipboard content using the .NET framework? ...