|
Hi Rahul,
yes you are given correct approach but i shown you before it is sample code.
if i have bulk amount of data,is this string is able to store that whole data.
Thanks&Regards
RENU
|
|
|
|
|
If it has got lots of data then u can go for StringBuilder.
|
|
|
|
|
Hi rahul
actually iam new at .net,i dont know how to parse field value text data into xml.could you help me in this scenario.
Thanks&Regards
RENU
|
|
|
|
|
I have a client-server application. When I try to connect to the server application using the loopback address, it runs fine, but if I give the actual IP or if I try to connect a server that run on another machine, it throws,
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it
excpetion. Has it got something to do with .net security settings that we have in Adminstrative tools in the control panel? I've just set the local intranet security to "full trust". Any help?
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
do u have any kind of firewall installed in your system or in the other system. If there is, then disable it and try.
If this doesnt help , then come back with the code
|
|
|
|
|
I guess it's not something related to the firewall, Because I just tested it with my C++ C/S application with the same port. It works fine. Btw, I just reached home. Dont have the code with me now. But it's quite simple.
It's quite primitive one, A simple TCP listener waiting to accept a TCP client. with 127.0.0.1, everything works cool.
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
That is true for 127.0.0.1, what port number do you use, in .NET you must use a port number that is greater than 5001 (As I remember).
|
|
|
|
|
I gues it's not for .net in particular, but in general it's safe not to clash with the reserved zones.I'm in the safest of zone. Above 20000!. I'm using 20555. And no other application uses this port in my pc.
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
That's what came to my mind, though I'm not experienced with network programming.
|
|
|
|
|
Actually i have data like in this format:
1aDOCSTART_3
DOCTYPE BILL
GENEVAVERSION 5.0
BILLSTYLE 2
BILLTYPE 1
BILLTEMPLATE 3
BILLSEQ 1
BILLVERSION 1
ACCCURRENCYCODE GBP
BILLLANGID 1
BILLLANGNAME English (UK)
BILLLANGLOCALE en_GB
Our requirement is to parse this file into xml format like attribute value pairs. like:
<1aDOCSTART_3>
<genevaversion>"5.0"
<billstyle>"2"
<billtype>"1"
<billtemplate>"3"
<billseq>"1"
<billversion>"1"
<acccurrencycode>"GBP"
<billlangid>"1"
<billlangname>"English (UK)"
<billlanglocale>"en_GB"
we have to seperate the field and values and generate the xml.
pls anybody help me in this problem.
Thanks&Regards
RENU
|
|
|
|
|
hi all,
i worked in ASP.Net and there i have default 6validators,
and i am happy to work with those,
and now when i wanna Restrict my controls, i didn't found any default validator property
please suggest me the approch, to validate textbox(for now)
thnx in advance
Prashanth
|
|
|
|
|
Hi all!
I need help ragarding the k-mean clustering algo. Any one have a
source code in C#.. or a dll file that could be used in the
project.... I cannot seem to identify the objects that could be used
in the algo..
I have to group the hospitals, and plot them in
graph, and then identify the number of patients in the region.
Urgently need help!
|
|
|
|
|
You think that u r brilliant but that’s not truth
|
|
|
|
|
Do you think that spamming is brilliant?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
He is brilliant. But I think he was a harsh with you though.
--------------------------------------------------
|
|
|
|
|
You think we care, but we don't.
(This is directed at Mr BigShot)
Brad
Australian
- Bradml on "MVP Status"
If this was posted in a programming board please rate my answer
|
|
|
|
|
Since the OP's message was removed I don't get to see what all the extra fuss was about above and beyond the spamming aspect. I presume he made some derogatory remark towards Christian Graus.
|
|
|
|
|
Yeah, I'm curious as to what he said, too!
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi
I'm creating a C# program to measure differences between dates.
Ive figured out how to measure the difference between two dates using DateTime and TimeSpan, but is there any short cut way on how I will be able to measure the time elapsed with just weekdays? (meaning saturday and sunday will no longer be counted when measuring the difference)
thanks
|
|
|
|
|
Sorry, I don't know any shortcut, but it is not such a daunting task, you need only to take special care about the working days of the first and last weeks (that maybe partial) and keep the 5/7 of the remaining...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
i knew it wasn't going to be that easy.. haha
thanks for the help CPallini. :P
|
|
|
|
|
|
public static int GetWorkingDatesBetween(DtaeTime DateFrom, DateTime DateTo)
{
if(DateFrom.CompareTo(DateTo) >= 0 )
throw new ArgumentException("Invalid date ranges! DateTo should be greater than DateFrom");
int totalWorkingDaysElapsed = 0;
while(DateFrom.CompareTo(DateTo) != 0)
{
DateFrom = DateFrom.AddDays(1);
if(DateFrom.DayOfWeek == DawOfWeek.Saturday || DateFrom.DayOfWeek == DawOfWeek.Sunday)
continue;
++totalWorkingDaysElapsed;
}
retrun totalWorkinDaysElapsed;
}
Hope this helps...
|
|
|
|
|
Using C# program
=================
1.How to find where the data is sent whether to TCP/IP or UDP
2.How to find duration and size of data
Prakash
|
|
|
|
|
Prakash A wrote: How to find where the data is sent whether to TCP/IP or UDP
What do you mean? What data?
You decide how the data is sent when you establish the socket connection.
---
single minded; short sighted; long gone;
|
|
|
|