-
- Match a string containing delimited list of digits
by jd98
- 14 Replies
- Last post
by jd98
- I need a regex that matches a string containing a delimited list of digits. While this seems fairly straightforward, the following requirements must be met:
1) Any number of spaces that occur before or after a delimiter should be accepted (e.g. '3 , 9 ' is OK) 2) The string can end with spaces or a delimiter (e.g. '3 , 9 , 8 ,' and '3 , 9 , 8 ' is OK) 3) The string can not contain any other
-
- Connection using odbc or oledb for executing the procedure which has one input and one output parameter using DSN
by Chakravarthy Rengasamy
- 2 Replies
- Last post
by Chakravarthy Rengasamy
- Hi everybody,
I am connecting the db using DSN. eg) "DNS=Name;uid=sa;pwd=sa".
I am executing the procedure that has a input parameter and one output parameter.
I have added the parameters and i can view in quick watch also.
But when i execute the procedure it tells that "this procedure expects input parameter".
I tried with odbc and oledb connection since only th
-
- Smtp with c# through gmail.
by Lucas2
- 2 Replies
- Last post
by ahmedilyas
- Hi guys, hope you can help. I have installed Visual Web Developed and started learning ASP.NET with c#. I am currently trying to build a website that sends email through gmail's smtp, here's the code: _______________________________________________________________________ using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.We
-
- First call to read WebRequest.Create() response VERY slow, subsequent calls fast
by gauntalus
- 6 Replies
- Last post
by Jörg Jooss - MSFT
- I'm trying to write an app that uses WebRequest to fetch information from a web service, but the first request that I make is very very slow. Simply fetching the first site usually takes rougly ~25 seconds. Most requests after the first one take < 1 second. Any idea why this might be happening Here's a sample snippet and its output.
Code Snippet
using System;
using Sy
-
- Interop troubles with excel
by GraemeP
- 10 Replies
- Last post
by GraemeP
- I asked this in the VB forum, but think it is more suited here. My application (VS2005) uses the interop assembly 11.0 to communicate with excel.
11.0 is the version for excel 2003. When I put the application on a client machine, it's fine provided the user has excel 2003 and either the PIAs are installed, or I distribute the dlls with my application.
However, I've just tried this on a machi
-
- How to get the mime type of a file?
by Saiedh
- 1 Replies
- Last post
by Suprotim Agarwal
- Is there a way to get the mime type from FileStream or File or any other way
thanks, Saied
-
- How to run a process in background (without any windows)
by Lu&#38;&#35;23
- 4 Replies
- Last post
by Hogi
- Hello everybody, The application i'm developing needs to call external programs and redirect their stdout / stdin / stderr. Everything is working perfectly except the fact that every application i launch runs in the foreground. I'm setting the typical properties from the ProcessStartInfo() class but it doesn't seem to work: psi.UseShellExecute = false; psi.WindowStyle = ProcessWind
-
- Connecting to a Windows XP Web Service through Unix
by BKThomson
- 3 Replies
- Last post
by R Spies
- Ok, I will pass along the obligatory sorry if this post makes no sense at all.
I have a client who is trying to access my development web service through Unix. It seems they can connect to the Web Service but cannot return any data. I have very limited knowledge on the Unix side and it looks like my client has exhausted all their options, so I was hoping I could get some suggestions peo
-
- Socket.Recieve Problem
by Mohamed Nuur
- 4 Replies
- Last post
by K.Z.Y.H
- I am having a problem with using Socket.Recieve to recieve HTTP response. On one hand, recieve works for 95% of the pages that I need to download. I am using the Socket.Available property to check whether or not data is available before I call Socket.Recieve but sometimes Available returns 0 when there is data available. And since Recieve is blocking, I dont really have a way to know when the data
-
- Read Data from a Com Port (Check to see which com port I need to use)
by rternier
- 8 Replies
- Last post
by Carsten Kanstrup
- I'm working with GPS devices and I need to autoconfigure which port to use when one is plugged in. I'm doing this in seperate factories loaded up through reflection so I can customize this per GPS unit. I was using a parser to interact with the Device, but If the device doesn't have a GPS fix, sometimes I don't get any data returned. I know there's a way to connect to a com port, open it up, take
-
- Web service failed to publish
by Little666
- 3 Replies
- Last post
by Bernardo Salazar
- hi everyone
i am not sure if i am posting in the right section by i need help with my problem
i wrote some web service in C# with Visual studio 2005
those web service are already posted on the server, but i did some changes to the web services and when i try to republish them on the same server Visual studio tells me at the bottom "publish failed".
and i dont know
-
- Memory Leak?
by Jimmy Q
- 4 Replies
- Last post
by .rip
- Hi, One of our clients is reporting a memory leak in one of our winforms application. I asked them how they came to that conclusion and they gave me a print screen of their task manager with the .NET application process at 400mb. Now my questions is .. Is that task manager (Win2k Server SP4) a valid tool in detecting application memory consumption Is that manager accurate in reporting the actual
-
- Static, Generics and Inheritance
by gpgemini
- 2 Replies
- Last post
by gpgemini
- I've stumbled into something weird that I can't figure out if it's a bug or a feature. I have a generic base class with a static data member. Then, I have two classes deriving from it, using different generic types. The weird thing is that the static data member is no longer shared between these classes, that is it has the same value for all instances of the first deriving class, but a different v
-
- Tool to to apply .xsl files to XML to view output
by Tryst
- 7 Replies
- Last post
by alexinfonxxx
- Hi all, (I am sorry if this is a duplicate, but I did not get a response from the other forum I posted this in) I call a web service that returns a block of XML which then gets given an .xsl file so that the users are able to view a styled report online. The XML that comes back from the suppliers web service is also stored in the database. What I want to do is be able to re-apply this .xsl file to
-
- Reading and adding to an XML document
by GreatFox
- 2 Replies
- Last post
by GreatFox
- Suppose you have an XML document structured as so... < xml version="1.0" encoding="utf-8" > <start> <item> <title>title</title> <link>link</link> <description>description</description> <credit>credit</credit> <password>password</password> </item> </start> How would you read that to create
-
- csharp and recieving large block of data on Serial Port
by nuni584511
- 9 Replies
- Last post
by Carsten Kanstrup
- Hello !
In my project I'm using serial communication between the PC and a microcontroller card.
When reqested ,The microcontroller card sends a large block of data to the PC.
I would like to know how to recieve this block of data on the PC . My program will be written in csharp.
Basicly I'm looking for the key points in the programming flow.
Thanks !!
-
- FAILU Update for .NET Framework 3.0: x86 (KB932471)
by John Bailo
- 6 Replies
- Last post
by QUIX (tm) - NZ
- Failing to install update for .NET 3.0
Platform: Windows XP
Situation: I downloaded the .NET 3.5 update so I could use LINQ. At the end of the install, it said to check Windows Update for possible security patches. There was a .NET 3.0 update available so I selected it. It threw and exception saying it could not be installed:
Update for .NET Framework 3.0: x86 (KB932471)
-
- Decimal variable rounding when formatting as string
by Flea&#35;
- 5 Replies
- Last post
by Flea#
- Hello,
I have a problem when calculating money with the decimal variable rounding up when I convert it over to a string and I am not sure why it is doing this.
For example, I have a value of 13.525 (SalesTaxTotal) which I am wanting to convert to a string.
Code Snippet
lblTax.Text = string .Format( "{0:C}" , SalesTaxTotal);
Once the lin
-
- TCPClient Losing Data
by Dr. Zoop
- 6 Replies
- Last post
by Alan J. McFarlane
- Long story short: I am misusing the TCPClient class. I am sending 400-500 byte messages, and data is being lost. How can the TCPClient class be misused to lose data Random notes: -I know the TCP protocol doesn't lose data. Don't tell me that. I am educated. -I am buffering all data being received before checking for messages and reading them, so don't tell me this either. I have quite a spiffy me
-
- XML into DATASET
by miscal
- 8 Replies
- Last post
by miscal
- HI,
I've created a decryption code for an encrypted XML file. now, instead of using save command into file like ' encryptedDoc.Save( "C:\tal\Desktop\account.xml" )' - I want to load the XML document into dataset. what is the syntax for doing it the XML document is stored in the object 'EncryptedDoc'.
thanks in advance,
Dror.
-
- How to send automatic e-mail?
by Saravanakumars38
- 7 Replies
- Last post
by janols
- Hi,
I am creating web application in user will purcahse product for lease.
lease date will be stored in database. when lease date is expired, i need to send a mail automatically to the user.
Can any one help me to send automatic email depending upon the "Date" stored in the database.
Thank You,
-
- Digest Authentication to TCP/Http based small server
by milax
- 4 Replies
- Last post
by Jörg Jooss - MSFT
- Hello,
Is it possible to code Digest based Authentication to small socket TCP/HTTP server
Has anyone experince how to do it
Cheers and Thanks,
-
- How can I ignore empty elements in my output xml file? (using xslt)
by Vaish
- 9 Replies
- Last post
by Vaish
- Hi I use XSLT to convert XML to XML . I need to delete the tag when there are no value in the output. for example, I have XSLT as following:
<NAME><xsl:value-of select="N1" /></NAME> I don't need <NAME /> or <NAME> </NAME>. How can I ignore empty elements in my output xml file
Adavance thanks
-
- "Add Web Reference" Error
by Fatine
- 2 Replies
- Last post
by Daniel Roth
- I created a web service with Websphere on a remote machine.
When I tried to add a web reference from my client app (visual studio 2005), i got an error message :
"There was an error downloading
'http://ipaddres_remote_machine: port/location of the web service /webservice.wsdl' The operation has timed-out"
The web service can be accessible from the web browser (IE) wit
-
- Is there an alternative to SendKeys?
by p0lar_bear
- 11 Replies
- Last post
by p0lar_bear
- Is there any other way to send a text string, or keystrokes to another window without having said window in focus What I'm trying to do is make my program send a command to a game server application when a certain event happens. I know about System.Windows.Forms.SendKeys, but it wouldn't work well in this case as SendKeys only sends to whatever program is in focus, and if I'm testing this program