|
Yes, you need a loop. I gave you a solution to a problem, though i would rather work with SqlDataReader
There are 10 kinds of people: those who understand binary and those who don't
|
|
|
|
|
Ok understood. Thanks to spend your time with me
Regards,
Hogan
|
|
|
|
|
|
Seems like an odd choice of topic. I mean, I can't see how it equates to anything other than C# 101. How have you found yourself giving this seminar if you don't know what to say ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
ha ha i was helpless.it was thrust on me....
so any idea what all topics to talk about........
j
|
|
|
|
|
Generics? Iterators? Take a look at C# spec and pick something!
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Trustapple wrote: its urgent
It's always urgent. There's never been a post that said - please take your time.
Trustapple wrote: if there is any pdf available plz pass it on
Google not working at your end? I assume that you can't get to Google because of your lack of a full size keyboard; why else would you use text speak on a forum?
This is a basic topic. How can you give a seminar on this if you don't know about it?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
can i write assembly at C++.net
123
|
|
|
|
|
*sgh*
1 - this is the wrong forum to ask that
2 - this follows on from your other question, so reply to me instead of creating a new thread
3- try to use intelligent subject lines
You can write assembly in C++, because it's C++, but I'm not sure if it's possible to write code that emits assembly and also contains managed code.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
can i write assembly at C#.Net?
123
|
|
|
|
|
No. C# targets MSIL, the .NET framework turns it into assemlby. You have no control over that process.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Maybe he wants to create *an* assembly, maybe
|
|
|
|
|
I guess that's possible. I mean, it's hard to tell, isn't it ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I used Array.Sort to sort my string array.For example
string[] ss=new string[]{
AA,aA,aa,Aa,BB,Ba
}
Array.Sort(ss);
Now the result of ss is
AA
Aa
BB
Ba
aA
aa
but i need it sort likes dictionary.
aa
aA
Aa
AA
Ba
BB
How can i do this ?
thank=)
|
|
|
|
|
Basically .NET tries to follow the sorting rules of the current culture, so the first thing to do is to make sure the sorting is done wit hthe correct cultures.
If you are still not happy with the way it is done, you can provide your own comparison rules to the sorting methods.
|
|
|
|
|
The default sorting is based on the ascii values where you are getting 'BB
' entry before 'aA'.
In your case you will have to write your own way of sorting the array.
|
|
|
|
|
Hi -
Dots (....) are coming in place of spaces in my C# Express editor. The code is looking like this.
using.System;
using.System.Text;
namespace.Exilant.Exility.HtmlGenerator
{
....internal.class.ListPanel.:.DisplayPanel
....{
........private.static.readonly.string[].FIELD_NAMES =
How do I get rid of this?
|
|
|
|
|
see menu Edit/Advanced/View White Space
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
Hello,
I want to send log-data to a client over TCP/IP and UDP. As data format I think the best way is to use XML. Now I search a possibilty to make a well formed Xml file from the data. I have found some solutions with External entities. But here I have the problem that I have an live stream and I don't want to make allways a new file of the stream.
What is the best solution to do this?
It would be great If in the future I have the possibilty to open the log-server with an internet explorer...may be someone can give me some hints...
Best regards
Hansjörg
|
|
|
|
|
Wrap the input XML with a 'psuedo' root element, and use XML deserialization. I have done this quite successfully a few years back implementing a Jabber client on .NET.
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
How I can provide a pseudo root element?
|
|
|
|
|
imagine a situation while person A running the application if person B update the database how person A get to know about the updated inlformation with out refreshing the db connection.
|
|
|
|
|
There's really no easy way to do this. This is known as Stale Data. At some point, a connection to the database is going to exist to get this data out.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
One solution is to have person B post on a forum that the value is updated so person A knows to refresh the data. Unfortunately he post it with a meaningless subject, so no one reads it.
|
|
|
|