.net

LINQ to Twitter library comparisons

What LINQ providers exist for Twitter and how do they compare? Are there any that let you query tweets, following, and followers in addition to publishing tweets? What about relational support? e.g. from user in my-followers where user.name.contains("drew") and user.followers.count > 10 from tweet in user.tweets where tweet.message.leng...

How to XML deserialize an object of Unknown Type?

I want to save my object to hard disk (like cache) with XmlSerializer. In this case, I don't have any problem. However, when I want to deserialize this XML to an object, I get an error. Is there any way to deserialize XML to an unknown object or to an object that I created? ...

Using a reference to generic object as a parameter

Hi, I am having some troubles passing a reference to an object which is of generic type. I have found a way around by creating a 'Object' and passing a reference to that rather than the original - but it seems to smell a bit to me. Is there a better way here or do I have to live with it? I understand the first error but the second elu...

How to programmatically get associated webparts of sharepoint list?

Using SPList I want to get all the webpart urls that associated with the list. Is it possible? ...

C++/CLI: Boxing and Generic Lists

I am trying to create a generic list of references to PointF objects. (No, I am not looking to create a generic list of PointF objects.) However, the following line fails to compile: Generic::List<PointF^> ^pointList; // Generates error C3225 On the other hand, creating an array of PointF references works without a problem as follows:...

.NET and Lotus Notes Interop.

I've Lotus Notes database file (.nsf) at some location, let's say: http://intranet.mycompany.com/somewhere/data.nsf Is it possible in any way to read from that location using any .NET language? ...

Sending part of byte array over the network using WCF

I have a byte array of some binary data that i need to send over the network using WCF and NetTcpBinding. My problem is that i need to send only the part of the array. Is there any way to do this, other than copying that part to a separate array, and sending that one. This extra copying degrades performance, and i would like to avoid it,...

network connection capability is not fully used, why?

Hello everyone, I am using the following code to try to test whether network consumption (monitored from network tab of task manager) will increase if I increase the concurrent connection number (i.e. the ClientCount application configuration value). But I find even if I increase client count from 100 to 500, the network consumption is ...

XTS-AES Mode in C#

Is it possible to use AES in XTC mode in C# (.net 3.5)? It doesn't seem to be in the CipherMode enumeration. I cannot seem to find any implementations of it on the web. ...

using LVM_FINDITEM from task manager and hide from task manager

I am using "LVM_GETITEMTEXT" and "LVM_DELETEITEM" on SendMessage() for trying to delete or hide specific .exe from task manager. But its not hide specific .exe. But i am getting the specific .exe name ReadProcessMemory().But after that the specific .exe is not hiding.Can u tell how can i do so that the specific appilication will hide or ...

Formatting Numbers as Strings with Commas in place of Decimals

I have the following number: 4.3 I'd like to display this number as 4,3 for some of our European friends. I was under the impression that the following line would do the trick: string ret = string.Format("{0:0,0}", 4.3); // returns "04", not "4,3" Am I using the incorrect string? ...

.Net FtpWebRequest fails sometimes

I try to list file details using FtpWebRequest but very frequently it fails with a WebException and shows error 530 User not logged in. How is this possible, that it works some of the time using the same credentials? Excerpt from code: reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpuri)); reqFTP.UseBinary = tr...

What's wrong with using Thread.Abort()

So I know that you shouldn't use Thread.Abort() But I've never been given a good explanation. Is there a performance penalty or some hidden gotcha? I know you can't ignore/swallow the ThreadAbortException (which makes sense) ...

SqlConnection throws an exception

Hello, Dear professionals please help me with the following problem. In my .NET C# application a have this code: SqlConnection connection = new SqlConnection( SQLCONNECTION_STRING ); It works marvelous on my development machine but throws an exception on Windows 2003 server. The application runs through CGI and has “Full trust” level....

Secure custom login control ASP.NET

Problem: I want to create a custom log in control that posts securely to HTTPS without affecting other submit buttons on the page. If I had been writing this in ASP.NET MVC or any other language for that matter, I would just create a new form tag with an form action="https://...". Now I'm stuck in a ASP.NET web forms site. That means th...

Is this a good solution for localisation of pluggable components?

I asked a question previously which had only a single answer. I've had some time to play around with this now and have a plan, but want some feedback on if it is a good idea. The problem: I want a component which has a name (invariant, used to identify the component) to have its name localised in the application that is consuming it, ...

LINQ Gernic List VB.NET

Hi Guys, I am trying to create a domain model using a product class entity an Abstract repository and a fake repository with sample data. I have created the following product class Namespace Entities Public Class Product Dim _ProductID As Integer Dim _Name As String Dim _Description As String Dim _Price As Decimal D...

.net mobile web application - easy way of server side browser detection

I am in process of converting one e-commerce site - to mobile compatibility. Initially just nokia device was considered while change - but looks like requests are coming from various kind of devices and display gets completely distorted on non-nokia devices. So, thinking to have different UI for such different devices. So, wondering how ...

How to remove proxy from WebRequest and leave DefaultWebProxy untouched

I use FtpWebRequest to do some FTP stuff and I need to connect directly (no proxy). However WebRequest.DefaultWebProxy contains IE proxy settings (I reckon). WebRequest request = WebRequest.Create("ftp://someftpserver/"); // request.Proxy is null here so setting it to null does not have any effect WebResponse response = request.GetResp...

How to set datagridview textbox column to multi-line ?.

Hi, I've DGV with my custom List<myClass> as DataSource. I want the "DataGridViewTextBoxColumn" that in this DataGridView to support Multiline property. Could you help me with this please ?. Thank you very much. ...