.net

Encoding Problem In PrintDocument When Using Dot Matrix Printer

Hi, I have prepared a text to print with dot matrix printer. The text contains turkish characters like ü,ğ, etc. When I send this text to the dot matrix printer with .net' s PrintDocument class, the turkish characters on the printed document does not appear correctly. But when I send the same text to Laser printer, there is no problem...

.Net User Messaging System

I am wondering if there is a framework out there for .NET to help me with sending messages to users. I would love to be able to write all my messages to a single repository. I would then like to be able to send these messages out to a user based on preferences that they set. e.g. I would like to be able to send a Notification A out to...

What is the most cost-effective way to break up a centralised database?

Following on from this question... What to do when you’ve really screwed up the design of a distributed system? ... the client has reluctantly asked me to quote for option 3 (the expensive one), so they can compare prices to a company in India. So, they want me to quote (hmm). In order for me to get this as accurate as possible, I w...

Where can I find a finite element analysis library for the .NET platform?

I could use a library that implements the Finite Element Method in my winforms application. Is there available any such library for the .NET platform? ...

.NET webservice - acknowledge quickly, but continue processing in background

I'm building a .NET web service that will be consumed by a vendor's application, and I'm not sure how to accomplish the following: The vendor will call my webserivce with some information, but wants an acknowledgement returned quickly, just stating that I received their info. They don't care what I do with it, and don't want acknowledg...

Link between BO and GUI is broken. What to do?

I have some points (car stops) to represent on a time graph. These points are linked between them by lines. Points + Lines represent a Graph (that is a car schedule). The Graph can be modified by moving CarStops in time with the mouse. I decided to implement Points and Lines as controls (thought that will be easier to move them on the p...

Encoding an email to UTF8

I currently generate emails "on the fly" and was wondering whether I should be converting the body output to UTF-8 rather than original ASCII? ...

alert box problem

how to show the alertbox first and then log out if (machineID.Count != 0) { checkMachineGrpState(machineID); else { Response.Write("<script>alert('You are being logged out')</script>"); GoSignOut(); } } private void GoSigno...

Convert Arraylist into string in vb.net

How do I convert an arraylist into a string of comma delimated values in vb.net I have an arraylist with ID values arr(0)=1 arr(1)=2 arr(2)=3 I want to convert it into a string Dim str as string="" str="1,2,3" ...

Timezone lookup

Hello everyone, I have a file that contains the following in a csv file; country,region,city,postalCode,metroCode,areaCode I need to find the time zone for the entries. I have seen olson database and geonames, i was lost with olson database. couldnt find anything useful. is there any web site i can access the time zone information ba...

Quoted printable - use MailMessage or create own logic

I'm looking into the whole quoted-printable methodology and I'm wondering whether it is worth writing my own logic or whether to use the MailMessage that is including in the .Net Framework? I have seen that MailMessage already has a quoted-printable method, but am not 100% on it's workings, which is why I'm thinking of writing my own lo...

How to estimate end time of method in WinForms to properly inform user about predicted time of finish?

I've got some timers that measure the time to execute code. DateTime startTimeFunctionTotal = DateTime.Now; for (int i = 0; i < array.Count; i++) { DateTime startTimeFunction = DateTime.Now; //some code here DateTime stopTimeFunction = DateTime.Now; TimeSpan durationTimeFunction = stopTimeFu...

web service filling gridview awfully slow, as is paging/sorting

Hi I am making a page which calls a web service to fill a gridview this is returning alot of data, and is horribly slow. i ran the svcutil.exe on the wsdl page and it generated me the class and config so i have a load of strongly typed objects coming back from each request to the many service functions. i am then using LINQ to loop ar...

what's my smtp server name ?

I am trying to do a simple app that will send email. The constructor for SmtpClient asks for smtp Server Name. How do i know what's the name of my machine's smtp server (do I have one ?). I have IIS installed. ...

Project References DLL version hell

We're having problems getting visual studio to pick up the latest version of a DLL from one of our projects. We have multiple class library projects (e.g. BusinessLogic, ReportData) and a number of web services, each has a reference to a Connectivity DLL we've written (this ref to the connectivity DLL is the problem). We always point ...

Business objects and where to start?

I am in the process of creating a new database and moving old data into it. I would like to create Business Objects for the new system and looking at the old system, it looks like the objects are based on the tables in the old database. Is this the correct way to create business objects? ...

Session variables clearing on response.redirect ('page.aspx",false)

I have an webforms app that loses it's session variables on response.redirect. I've read Bertrand Le Roy's blog about this and still can't get it to work. The page works in production. However, when I try in the VS2k8 IDE, the session variables are there right before response.redirect and on the first line of the next page, the variabl...

Color picker image created programmatically .NET?

Do exist any algorithms to create programmatically images, for use then a base for a color picking control? If you know some useful sources for document or code about this topic they are welcome. EDIT: my idea is to create a WPF Picker Control, I know there already some for WPF, Sacha's one, or the one from Microsoft Sample. The point ...

GridView Sort Expression must return not empty data....

My program running good. But i try to add up-down icon on my gridView header. but if i make it, My break point should drop below "if comparison" For example; field.SortExpression=Category but every time CustomersGridView.SortExpression is empty when gridview.SortExp is not empty. foreach (DataControlField field in CustomersGridView.Colu...

Unity configuration problem

I'm currently have a Could not load ExternalIdentityProvider when i tried to run my ioc class container = new UnityContainer(); UnityConfigurationSection unitySection = ConfigurationManager.GetSection(unitySectionName) as UnityConfigurationSection; unitySection.Containers.Default.Configure(container); Could not load type 'ExternalIden...