|
Use a DateTime object and perform the calculation with that. The result will be a TimeSpan object.
|
|
|
|
|
thank you very much .. i managed to get it to work
|
|
|
|
|
hi
I have a XML like"row BLDG_CDE="01 100" BLDG_AMENITY_TYPE_CDE="DFA" BLDG_AMENITY_AVG_SAVINGS_AMT="6666.00" BLDG_AMENITY_RMRK=""/
|
|
|
|
|
Have a look at the XmlTextReader class.
Use MoveToFirstAttribute, MoveToNextAttribute and ReadAttributeValue methods to read the value for each attribute.
http://msdn2.microsoft.com/en-us/library/system.xml.xmltextreader.aspx
Paul
|
|
|
|
|
Hi,
i want to make chat programm for wan,not for lan ,any PC connected with internet.Like yahoo messanger.please help me
|
|
|
|
|
You would need a publicly available (on the internet) server for that. other than that. search CP for "chat server" there are alot of great articles on both UDP and TCP servers and clients
If it' stuck, DO NOT pull harder!
|
|
|
|
|
Greetings,
I am having C# project that make the Executable also. The system use over 20 users' machines. Currently I installed the exe indidual machines coping the source and it is tedious task to do! When i have to do any modification in existing, then again i have to make the setup.exe and installed individual machine.
Are their any way to do this task simple? like one VB.exe(in share folder in LAN), create shortcut and running ncely noh! like that!!!
Any learning resources, plz send me!!! U r Welcome!
Thanks in advance!
|
|
|
|
|
This sounds like a candidate for ClickOnce. This[^] article should give you some idea of what it's all about, and how to set it up.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
No problem.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
storing session data in a separate in-memory cache?
What's mean of separate in-memory cache?
Soniagupta1@yahoo.co.in
|
|
|
|
|
Please - don't start new posts for extensions to old ones. You're cluttering up the forums.
This topic means that you are storing the data in a separate process to the process your ASP.NET application runs in. The reason that you do this is because the InProc process is tied to the thread/application that created it. In other words, if your website is running on a multi-processor server then having InProc for your site is a bad idea because the in-proc session is per processor.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Actually , I was going through the link , u povided.There i am facing these terminlologies, which i am being able to understand.If u please repeat the meaning of it.
Thanks
Soniagupta1@yahoo.co.in
|
|
|
|
|
This was an adjunct question to a previous post, so should have been asked there or on the article. By creating a new thread, others who might have similar questions, have been deprived of seeing that these topics are linked.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi, im trying to get my head around structs. Whats the difference between using the following?
public struct aStruct
{
public int sId;
};
static void Main(string[] args)
{
Program prog = new Program();
aStruct theStruct;
theStruct.sId = 5;
or
aStruct theStruct = new aStruct();
theStruct.sId = 5;
}
|
|
|
|
|
Nothing really, the most important thing with structs is they're value types, i.e. if you did the following:
aStruct firstStruct = new aStruct();
firstStruct.sId = 5;
aStruct secondStruct = firstStruct; then secondStruct contains a copy of firstStruct not a reference to it, i.e. you can change properties on secondStruct without changing firstStruct . If this were a class then changing secondStruct would change firstStruct as well.
To be honest I would use the second method because it is more explicit and clearer what you are trying to do, if you then decide to change the declaration of aStruct to a class rather than a struct then you don't have lots of NullReferenceException s popping up all over the code.
|
|
|
|
|
Thx alot, so say for example if i wrote the following:
public struct aStruct
{
public int sId;
};
static void Main(string[] args)
{
Program prog = new Program();
aStruct theStruct;
ArrayList list = new ArrayList();
theStruct.sId = 5;
list.Add(theStruct);
theStruct.sId = 6;
list.Add(theStruct);
theStruct.sId = 7;
list.Add(theStruct);
}
I would then add three objects of type theStruct to the list even though I didn't explicitly created them with new?
|
|
|
|
|
|
|
While Ed has given you the correct answer here, you should really try this out for yourself rather than relying on others. This is down to the fact that sometimes people give answers without really knowing what they are talking about. (Note - Ed is one of the ones who DOES know what he is talking about).
Never accept that you have been given the correct answer. Try it out, and make sure that it is the correct answer.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: Note - Ed is one of the ones who DOES know what he is talking about
Well that's nice to know
|
|
|
|
|
Well, credit where credit is due.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
But now you have to live up to your reputation.
|
|
|
|
|
Damn!
|
|
|
|
|
i wanted to know something about
inproc(InProcess)
StateServer (outProcess),
SQLServer (database based)
What knowledge does these terms hold for the session state.
Sonia Gupta
Soniagupta1@yahoo.co.in
Yahoo messengerId-soniagupta1
Love is Friendship and Friendship is Love....
|
|
|
|