« first day (118 days earlier)      last day (4829 days later) » 

12:43 AM
msg = msg.Substring( 0, msg.LastIndexOf( ", " ) ); //supposed to remove the last ", " from the string.
that does do what I want right? I'm not being dumb am I?
 
It should do what you expect
Unless your string only ends with ","
Try msg = msg.TrimEnd(new []{',', ' '}); instead, it should handle both cases
 
Since it's in a foreach loop str += value + ", " I dont see how it can get a ","
thanks for the peerreview
 
Then it should work the way you expect.
 
Cheers
 
 
2 hours later…
2:57 AM
@drachenstern about what you are doing i have to say that i always do it in another way
that makes it simple
str += ", "+ value
and finally you should do like so
str = str.Substring(2);
i hope to be useful
 
3:28 AM
@DrTJ you are, you make a great point. However, I'm using it with a stringbuilder, and the first ", " would be in the middle of the string.
 
@drachenstern thanks :)
and sorry coz its not working for ur code...
 
@DrTJ no need to apologize
 
:)
 
 
4 hours later…
7:04 AM
Anyone had problem like stackoverflow.com/questions/4966210/… before?
 
 
4 hours later…
10:35 AM
A single valid machine type compatible with the input type library must be specified.
Anyone has idea about this error?
I am getting this error while compiling project in VS10
 
 
3 hours later…
1:15 PM
hi
0
Q: Follow an object state in Visual Studio debug mode.

serhioSay I have a WinForm, in which I have a private int selectedObjectsCount. Is there a way in debug mode to "follow" this object state through the debug session? Or, other case, I have a myFont instance. I want to see in what moment its property IsBold changes (is modified) I need a trace, beca...

 
 
3 hours later…
3:51 PM
hello... wondering is someone can help me out with a simple silverlight binding question..
how would I bind UI state into my ViewModel ... like a textbox on the Login Window should bind to LoginWindow.Username ?
go from UI to VM?
 
4:10 PM
Any linq to sql experts online?
I have a fairly exotic question about linq to sql that isn't really stackoverflow-post worthy:P
 
4:48 PM
@Mvision I'm no expert, but I might be able to help
 
@akmad well, I'm trying to have 2 tables in sql, Table A and Table B, exactly the same . And I want to be able to let Linq to sql switch between A and B for one Entity during the lifetime of my datacontext. (So, 1 datacontext, 1 entity, 2 tables)
so far it seems impossible
 
let me make sure I understand... you want to have a single entity type that can be persisted to 2 tables?
 
Yes, correct
 
ok, as I said before, I'm no expert; but I don't think this is possible
mostly because the table mapping is defined by the TableAttribute
 
Yeah and that's generated code
 
4:57 PM
which doesn't allow multiple instances or tables
it's possible that there might be some hacky way to do it
but you might want to consider using AutoMapper and just converting between the two (identical) types
or defining an interface that you use to interact with the entity types so that you can work with either entity type a or b and not care which
 
Is that mvcontrib?
automapper?
ah no, googled it:)
 
it's a great component
 
i'll look into it , thanks
 
good luck
 
Any way I can give you stackoverflow rep ++ ?
 
5:02 PM
heh, thanks for the thought, but I don't think so
 
If i find a solid solution to this problem i'll let you know
 
ty
 
 
5 hours later…
10:22 PM
@Narazana I may have had that problem but I solved it by using ASP .NET MVC
 
rod
10:36 PM
Hi All, in ASP.Net MVC how do you retrieve the full name of the server (with the domain name) and the port number my application is running on (so I can put a link in an email for users to click on and navigate to)?
System.Net.Dns.GetHostByName("localhost").HostName this gets me close but no port number
Not sure if that is the correct thing to be using (by the way)
 
Anyone here? :D
 

« first day (118 days earlier)      last day (4829 days later) »