Hello, I am writing an application that needs to continuously update its displayed data from a view in a database. Currently, it is periodically polling the entire data set and redisplaying it. I am changing it to be more efficient and am interested in people's opinions on how to do this most effectively.
The application is a Windows Fo...
Hello, I was just wondering if I missed anything inside the documentation that would allow me to get the number of lines contained in a file at a certain revision (or even number of lines changed from a SvnChangeItem, that would be nice too) without having to directly export the file to the filesystem and parse through it counting each l...
In .Net 3.5 and VB.NET VS2008
How to set the DataTextField property in this link:
http://www.brainbell.com/tutorials/ASP/Simple_Databinding.html
It says:
Now update the page to build a list of TechnologyDescriptors and to attach the collection of TechnologyDescriptors for each control. For each control, set the DataTextField pro...
Is there a good online tool for testing .NET format strings?
The tool would allow you to see how a format string would format a sample value.
E.g. In Chris Sells old Format Designer utility you could enter a 1234.567 and a format string of "#,000.00" and the tool shows "1,234.57".
...
Howdy,
Got an application (C# WPF) that needs to "call home" and get updated stuff from a home server. In theory there could be thousands of client out there, needing to communicate over the public internet.
Each user will first register with a username and a password. Then, as the application runs, it will call home every now and then...
I would like to try using an DI/IoC framework for the first time in a small-ish but growing project, and I don't want to disturb the project much by introducing bulky dependencies. The project itself is partly intended to be used as a library in other projects, and I don't want to trouble users with managing extra dependencies. It's also...
How do you get the IP address of the web/application server in .Net? Not the client IP address, but the server.
Just found something about Server Variables Here
...
I have a strange error on a specific Windows Server 2008 R2 machine (it works on other 2008 R2 machines) when starting a Windows Service. The service uses Common.Logging and log4net. However, on this specific machine the config section handler for Common.Logging can not be created.
It fails with the following stack traces (formatted for...
Where can I find an implementation for a text/ascii table/grid generator? e.g. Given a CSV file such as this:
Header1,Header2,Header3
Pizza,Artichoke dip,Bob's Special of the Day
BLT,Ham on rye with the works,
It would generate a nice looking text table such as this:
Header1 Header2 Header3
--------------------------...
This is not a request for opinions. Please only respond if you are 1) a strong j2ee/oracle developer 2) a strong .net/sql server developer, and 3) have developed nontrivial web apps in each framework.
My question is what is the relative development time for a given specification in each platform. Let's say for the sake of comparison t...
Hello all
I'm using a UC to create a generic Thumb display.
My UC located in: UserControls folder and my images are in: Images folder.
Every record in the DB had a ImageUrl path that go to: Images/Items/(fileName).
My problem is that for every file (I think that durring rendering the folder name (UserControls) is added so in the sourc...
Most will recommend caching as a list. I know that is a solution and may be the one I go with. But, what if one wants to be able to treat a cached linq-to-sql with full IQueryable (IEnumerable?) functionality?
If one does try to cache the raw result, an error "Query results cannot be enumerated more then once".
So, to make clear my que...
I have absolutely no knowledge of .NET but am tasked to think/solve a small issue. I have a web site written in .NET which authenticates users before allowing them in. Now there is a new directory containing static html pages that must be controlled using the same auth session. I want to achieve this without having to convert the html pa...
Hello all
I have some class it is a singleton we have this class in already several applications and it is used there as a singleton.
Now i am writing some new application and i need several instances of that class , what is a best practice to have sevaral instances of it ?
By deriving from it and making the private constructur to be ...
I build a windows service and I am getting the Error 1053 and not sure why. This is what my onstart looks like :
protected override void OnStart(string[] args)
{
var workerThread = new Thread(Worker);
workerThread.Start();
}
I spawned off a new thread as I should but I am still getting no joy.
...
I've been playing with Reflection.Emit() to build some assemblies. I'm curious if this approach is used by the shipping compilers. The compiler exe's don't appear to be managed code, so this leads me to suspect that they're writing the IL direct to disk.
Do they:
use Reflection.Emit()
write the assemblies out using low level file com...
Consider a DataTable which contains columns:
RefID : string
RefName : string
RefDate : DateTime
The DataTable does not contains any primary key.
I have another List<string> named ExcludeMe.
I would like to filter my DataTable and exclude all of the rows where values in RefId Column around found in the ExcludeMe list.
How ca...
Using Visual Studio 2008 and VB.NET ...
I've created a form (OpaqueForm), which is an intermediary form between other forms which I will open with ShowDialog. The idea is that when I want to show a form using .ShowDialog, this OpaqueForm, with an opacity other than 100%, sits in between the main form and the dialog form, effectively "gr...
I'm using a BackgroundWorker to do some work. Part of that work involves showing a form. That form has some controls that are set as drag & drop targets.
I know that the BackgroundWorker uses the ThreadPool to run, and that threads from the thread pool use the MTA threading model. I also know (thanks to this question) that when you have...
I'm writing pretty simple application that maybe is only couple of megabytes. I don't want to make the end user download 20 or more MB of framework. What to do? Is it possible to load only assemblies that I need, jit and all the things necessary for .net application?
Thanks
...