We're currently using a thing from SoftArtisans to generate Excel spreadsheets from data the mainframe FTPs down to our document server.
The doc server has the .Net frameworks through 3.5 on it, as does my development box. The difference is my machine has Office 2007 as well.
So, I built a service this morning with a filewatcher usi...
Scenario is to use a source code repository as usual except at periodic intervals, take a backup of the delta changes and copy them over to a remote location which should bring it to the same state as the source, the reverse should also apply assuming that no new changes have been committed to the 1st instance in the interim
I hope this...
I have a listview but I would like to add 3 properties (for example one of them is "image") to the listviewitems in it.
I was fine with making a custom class with the 3 properties and just inheriting ListViewItem but now I need to use MultiSelect, so it means doing things like(in For Each loops):
ListView1.SelectedItems.Item(i).Image
do...
In a specific piece of code i cal Type.GetFields() many times. One call can call it 5 times or more. Also a piece of code could iterate thousands of times. ATM i dont need to optimize but i am asking so if i need to i know how.
How could i cache this? I am hoping i can do something like obj.GetType().Tag["myCacheId"] and pull out cached...
[Note: edited q. for the bounty and to make it clear, but q. remains the same]
I'm looking for a library that can be used in native .NET code, just like any .NET assembly. The purpose of the library must be to automate Windows (push a button, select a window, send keys, record & playback, that sort of thing).
So: the library is suppose...
I am helping a client with a simple "shopping cart" using SIM through authorize.net. Limited number of items, they don't change, really don't need a full-on shopping cart, EXCEPT that we must charge tax to Colorado customers (and we'd like to vary the shipping method, based on whether they need it fast or slow or international). Obviousl...
Hi,
I have a requirement to specify the cipher suite to be used for transport level security on a
wsHttpBinding in WCF.
I have problems finding what kind of cipher is used by default on TLS by WCF in the first place, let alone set it.
This question is due to operation in an environment where most systems are build on Java, which appar...
Hi everyone,
I have a populated DataTable I'd like to serialize to a file for later use. I've been looking over the options involved with this and wondered if someone could point me in the right direction.
What I'll be creating are two methods-- one for writing the datatable to a file, and another for creating a new datatable using th...
I'm reading a file in line-by-line and I want to be able to restart the read by calling a method Rewind().
How can I manipulate my System.IO.StreamReader and/or its underlying System.IO.FileStream to start over with reading the file?
I got the clever idea to use FileStream.Seek(long, SeekOffset) to move around the file, but it has no e...
Update 1-13-10
I've been able to find some success using the code below for mapping. I am essentially ignoring any of the properties that do not have a mapping and mapping them afterwards. I would appreciate feedback as to whether or not I am going about this in the best way possible. In addition, I am not sure how to go about unit testi...
Will MVC 2 run on .net framework version 4.0 or 3.5 sp1? Has Microsoft even made an announcement yet as to what the requirements are?
Also, Will MVC 2 be an installation separate from .net 4.0 or will it be installed with 4.0?
...
I have algorithm/computation in Java and unit test for it. The unit test expects result with some precision/delta. Now I ported the algo into .NET and would like to use same unit test. I work with double data type.
The problem is that Java uses strictfp (64bits) for some operations in Math class. Where as .NET uses FPU/CPU always (80 ...
I am still learning RegEx so I need some help on this one.
Rules are as below:
Min/Max Length of string: 1-5
String has to be a whole word
String can contain: A-Z and/or a-z and/or 0-9 or combination of both only (e.g. _ - . * are not allowed)
Examples:
12345 – allowed
Os342 – allowed
2O3d3 – allowed
3sdfds dsfsdf – not allowed
Sdf...
How can I assign alias to tables with SubSonic 2.1?
I am trying to reproduce the following query:
SELECT *
FROM posts P
RIGHT OUTER JOIN post_meta X ON P.post_id = X.post_id
RIGHT OUTER JOIN post_meta Y ON P.post_id = Y.post_id
WHERE X.meta_key = "category"
AND X.meta_value = "technology"
AND Y.meta_key = "keyword"
AND Y.me...
Hi there,
Why in ASP.NET MVC is it when I use a:
return this.RedirectToAction("Index", "Page", new { pageKey = "test/ho/hum"})
or using the MVCContrib extension:
return this.RedirectToAction<PageController>(c => c.Index("test/ho/hum"))
formats my return URL as:
http://localhost:8882/?pageKey=test%2Fho%2Fhum
and not:
http://localho...
I need to create a token to appear on a querystring that can be passed to a web page and decoded in order to find a record in a database view.
The token should not be vulnerable to brute force incrementing value type attacks.
View records in the database are uniquely defined as a combination of two keys.
The generation of this token n...
Hi,
I've been developing C# Windows Forms applications for a couple of years and while I've heard and read about WPF I've never really come in close contact to it. With some time to spare this spring I though I'd give it a go though, but first it'd be intresting to know what you guys thought about it.
What do you think, is it worth the ...
I have some tools that perform updates on .net solutions, but they need to know the directory where the solution is located.
I added these tools as External Tools, where they appear in the IDE Tools menu, and supplying $(SolutionDir) as an argument. This works fine.
However, I want these tools to be easier to access in the IDE for the...
Hi
I am wondering is this normal when you add this into your web.config
<location path="." inheritInChildApplications="false"> </location>
The debugger should stop working. Like when I add this to my site and try to run in debug mode it won't activate any of my debug points nor will it lock up Visual studios 2008. I can have it runn...
I am Developing a Desktop Application with c# .net and MySql as Database. It's an encryption application which produces an exe file which communicates with MySql to bring some data. I am using the MySql.Data.dll for application communication with MySql. When it produces exe there is no MySql.data.dll with it so it throws an error:
Coul...