.net

Example of messages to send to a telnet server

We have a unix box in our ofc. We usually telnet to this box and initiate commands on it. We usually do this from windows clients from the command prompt using the telnet.exe. We simply provide the ip of the unix box and it loads up a screen where we provide the login credentials. There is a default message before the login prompt saying...

Mutiple client webrequests - object structure approach needed (edited)

I'm seeking for a approach for the following problem: I'm doing gps tracking. The data is being provided over http post requests by a gps data provider. The application should handle about one hundred trackings and poll each position max every second. My approach so far: Out of a collection every object sets off async web requests trig...

Refresh UltraGrid's GroupBy Sort on child bands when ListChanged?

I am using Infragistics 2009 vol 1. My UltraGrid is bound to a BindingList of business objects "A" having themself a BindingList property of business objects "B". It results in having two bands: one named "BindingList`1", the other one "ListOfB" thanks to the currency manager. I would like to refresh the GroupBy sort of the grid whenev...

Namespace Prefixes in Wsdl (.net)

Namespace prefixes in my wsdl are automatically generated: s1:, s2:, etc, how can i put a specific prefix for my namespaces? Can't find it anywhere... Do i have to override the xml serialization and add them by hand (how do i do that in .net webservices?) (i mean in .net2.0 asmx, the guys who are going to use this webservice say they...

How does automatic updating of controls work, when DataRow is updated?

When a change is made to a DataRow instance, the controls it is bound to are updated automatically. How does this work? I'd like to implement something similar for an own class that I bind to a DataGridView. ...

Custom Installer to install, execute db script and for coniguration settings in .net

Hi All, I like to create a custom installer to install web application, windows application by let the user to use check box, execute db script and let the user do coniguration settings, in .net. Is it possible? Thanks, P.Gopalakrishnan. ...

Is it better to update or increment a value when persisting to a database?

I have an application where a user performs an action and receives points. Would it be a better idea to perform the arithmetic in the application and update the points database field with the resulting value, or have the database do the math? Assuming a user with 0 points is to receive 2 additional: //app does the math (0+2) and issues...

Connecting Oracle 11 G By ODP.NET

Hi, In .Net 2008,in server explorer when i want to connect to oracle by odp.net,i see datasources and select them but i cant connect them.My password and user name are true,i can connect to oracle by other providers.What can be problem?Error Message is Couldnt resolve service name ...

Is this use of attributes in .Net (C#) expensive?

Hi. I would like to know whether the usage of Attributes in .Net, specifically C#, is expensive, and why or why not? I am asking about C# specifically, unless there is no difference between the different .Net languages (because the base class libraries are the same?). All the newer .Net technologies make extensive use of attributes, ...

Automatic Data Access Layer

I'm fundamentally sick of writing data access layers. I see it as a boring and pointless endeavour. I envisage a development environment where I can just create my Entities/Models and start building the application. The time taken to write the DAL, procedures, etc... just eats my enthusiasm for a project. What I want is a generic reposi...

How to find out a COM prog id?

I'd like to access a COM library via late binding. How can I find out its progID? Type oClassType = Type.GetTypeFromProgID("THE MISSING PROGID"); ...

Marshalling out array of user-defined type between VB6 and .net

Hello, I'm creating a COM callable .net assembly and now trying to use it from legacy COM clients (VB6 client in my case). Assembly should expose API style interface, so typical function declaration would look like this: int myRoutine (object inParam, out object result); The problem is when I trying to use function declared as: ...

How to bind a CheckBox to a bool typed DbColumn that is nullable ?

In Windows Forms (.NET 2.0, Visual Studio 2005 SP1) : I have a typed DataSet, with a column which type is System.Boolean, which is nullable and which default value is DBNull. I have a Form, containing a CheckBox control that I want to bind to the prior column value. I have tried to bind the Checked property to the column via the design...

Xml Serialization inside a collection

XmlRoot does not seem to work with classes that are contained within a collection. Here are the classes I have defined: [XmlRoot("cars")] public class CarCollection : Collection<Car> { } [XmlRoot("car")] public class Car { [XmlAttribute("make")] public String Make { get; set; } [XmlAttribute("model")] public String Model { get...

[C#] A strange case of property-inheritance behaviour

Maybe the title is not so clear, but this is what I'm experiencing: I have created a base-form which contains an OK and a Cancel button (which is called BaseOkCancelButtonForm) This form also has some properties which look like this: [Browsable (true)] [Category ("Design")] [DesignerSerializationVisibility (DesignerSeriali...

How to Include code in build based on active Solution Configuration

Dev Environment: XP SP3, VS2008, .NET 3.5, SQL Server 2005 I would like to know if there is a way to include different code to be compiled based on the solution configuration that is currently active. We typically have three configurations for our applications: Debug, Test, Production. For example, I have an application that sends out...

Mime Headers and IIS 6 SMTP logging

Hi, Are there any Mime headers which will show up in the IIS 6 smtp logs? ...

What is the best framework for web-development to start with?

I want to get into web-development and trying to pick a framework to playground with as well as a develop complex web-app. I am considering the following: C# with ASP.NET MVC. Ruby on rails Tomcat/servlets/jsp For now, I am planning to run it on windows, yet might migrate it to Linux. I want to his framework to be fairly intuitive t...

Webpage structure suggestion (Jquery, .NET)

Hello ! I have a WebPage with a fix Superior logo and menu... And I´d like to change the inferior content with each menu click, wthout making other new Aspx... I mean, only one Aspx... Page Structure: -------Logo -------Menu -------Content 1, 2 ,3 I´d like some fancy/beautiful suggestion to that... Maybe a Jquery plugin? Thanks ...

Error Handling without Exceptions

While searching SO for approaches to error handling related to business rule validation , all I encounter are examples of structured exception handling. MSDN and many other reputable development resources are very clear that exceptions are not to be used to handle routine error cases. They are only to be used for exceptional circumstan...