.net

Pop up based search and return values to parent form or any other altrenative...

I have a scenario where i want user to open a popup or other page from a web form to search contacts from database and add them to list and when done return that list back to parent form field and continue filling other fields. I have 2-3 user input which should take multiple values for each field from list of values and i wanted to imp...

Display post data !

I am trying to post data from vb.net application to web service asmx that is located on server! For posting data from vb.net application I am using this code: Public Function Post(ByVal url As String, ByVal data As String) As String Dim vystup As String = Nothing Try 'Our postvars Dim buffer As Byte() = Encodin...

How can I programmatically connect to a remote database server that requires an SSH tunnel?

I'm working on an ETL using C# in which extracts data from a remote MySQL database that requires an SSH tunnel to connect. I currently have it working such that I first create my SSH tunnel manually using PuTTY and then programmaticly connect to the database normally using a MySqlConnection object, etc. How can I programmatically creat...

How to read GPS signal strength in Windows Mobile?

How can I read the GPS signal strength from my Compact .NET app in Windows Mobile 5 and/or 6? I've only seen accessors for GPRS and Wi-Fi signal strength in the API. ...

Wipe Free space on hard disk drive using C#

I have been tasked to overwrite all the free space on a few laptops 3 times. I know there are some alternatives but I like to know how things work and if I can to do it myself with C#. 1) yes, I know there are plenty of freeware applications that will do this 2) no, we don't need to conform to any specific government standard Where d...

Web Service .net 2.0 , deploying and consuming

I created a separate web service project using VS 2005. My first question is can I add more than 1 service (asmx) files and use them in single webservice project? How can I publish them and use/call/consume them from different websites? (I know how to use them when they are in same project but different project is bit confusing)...

Vignetting image effect algorithm with .NET

I'd like to know how I create a vignetting effect on a picture using C# and .NET. Does anyone have any ideas how to do this? Or are there any resources that will have the algorithm already done for me? ...

How to read asf header in C#?

Having a wma file, how can one parse the header using c#? The purpose is to find the Key ID in the Content Encryption Object (that forms a part of the DRM license). Do you use the WM Format SDK or WM rights manager? ...

How system.diagnostics trace affects .net performance?

When I enable trace, e.g.: How badly this affects application performance? ...

Client-Server without shared codebase

We're developing a silverlight multiplayer game using TCP connections. We have all of our game objects and engine stored in a seperate assemble that we meant for the SL client and the server application to share. However, it appears that the special SL assemblies cannot be shared with pure .NET applications and vice versa. So what are ...

C# .net casting question

I'm a bit confused about the following. Given this class: public class SomeClassToBeCasted { public static implicit operator string(SomeClassToBeCasted rightSide) { return rightSide.ToString(); } } Why is an InvalidCastException thrown when I try to do the following? IList<SomeClassToB...

Can I Inherit something on my Site.Master page MVC?

I am trying to familiarize myself with the MVC environment. I would like to add a side menu on my default master page. I however need to add an inherit to get my data. Can I do that or I do I have to keep the 'Inherits="System.Web.Mvc.ViewMasterPage"'? <%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %> <body> <div...

WSE3 Destination vs URL

I have a vendor telling me that the SOAP header should not have https in it, but that we can still communicate via SSL. Our concern is that we want to communicate via SSL and that their sample code is causing it not to happen. In their sample program, they provide this code: if (valservice.Url.StartsWith("https")) { ...

Why 'Object reference not set to an instance of an object' is not more descriptive?

As a developer, we often encounter that exception: NullReferenceException with the well known error message: Object reference not set to an instance of an object Is it not possible for the .NET framework to return something a little bit more meaningful? Something such as: Object of type X named Y not set to an instance of...

Is there a .NET Polymorphic Data Framework

I'm beginning work on a new project that's would be much easier if there was some way to make different data models polymorphic. I'm looking at using the Entity Framework 4.0 (when it's released), but have been unable to determine if it will actually be able to work. Here's the basic scenario. I'm implemented a comment system, and wou...

One web service per module, or one web service overall?

I'm doing a flex application that has tons of screens (each very different, can't reuse :( ), and tons of web methods in .net. is it correct to create one .asmx per module, or should I stick to one big .asmx Would there be connection or IIS problems? thanks ...

.NET Connection to dBase .dbf file

I'm trying to read a dBase III .dbf file using .NET and Winforms and nothing I've tried seem to work. I tried four different connection methods and every one of them hangs on Open method. No exceptions, no timeouts, no event messages, nothing. The form just sits there. Any ideas about what could be wrong? Here's the methods I've tried....

Is there a .NET library that can do string permutations or string expansion?

What I'm looking for is some library or some code of classes that can be used to expand construction strings into variations and permutations. Something like the following (syntax is mine, may be different): construction string: [Ff]oo [Bbß]ar|F(oo|oe) output strings: Foo Bar foo Bar Foo bar foo bar Foo ßar foo ßar Foo F...

.NET Serialization Issue

I keep getting a 'Type XXX is not marked as serializable' exception when I try to serialize an object of mine. It might sound silly, but my problem is that I can't seem to find any references to an object of type XXX anywhere on the object graph (using the debugger hover windows). Does anyone know a good way to scan the object graph fo...

Remote Management and Data Capture: WCF, SQL Sync, SyncFramework, BITS or something else?

We have a few thousand Windows XP client machines on various customer sites that are all running some interactive software which is instrumented to collect anonymous usage data. The client machines use some old, old, old client-server software that uploads the data to an internet-based server, pushes configuration info back down to them ...