Hi,
In my application I am creating rows and columns dynamically. I created a column of type System.DateTime. After this i want to display datetimepicker control for all rows in that column.
I created a column using
dataTable.Columns.Add("CreatedOn", Type.GetType("System.DateTime"));
and i am adding rows as
foreach(String filename ....
I need a table that contains information about a file, and a value that identifies the content in this file. The filetypes is primarily pdf, and i have the logic to extract content from the files in place.
Right now i create a hash value of the content and place this in the table. With this value i am able to find duplicate files. But,...
I already googled around to find a solution for my need, with no success.
Let's say I've a table that looks like this:
ID |KeyId |Name |Description
1 |153 |Currency |XXXXXXXX
2 |68 |Signature |YYYYYYYY
3 |983 |Contact |ZZZZZZZZ
.
Now I want to access theses values not by a collecti...
Hi,
Is there a way to test if the current thread is holding a monitor lock on an object? I.e. an equivalent to the Thread.holdsLock in Java.
Thanks,
...
Hello all
I have some path , and i want to get from it only the subdirectories paths (i mean only paths that under them where not found another directories only files).
Any smart way to do so ?
Thanks a lot.
...
Hello All
What are the most popular architecture with dotnet? Right now i am using ASP.NET MVC, but i want to increase my work area with more architecture.Please provide me detail and links.
...
Hi guys !
I'm having problems with my project once again :(
The front end is C#
I need to support multiline querying like MS SQL server and when these queries are executed, naturally there are going to be multiple result sets.
Getting the datatables respective to the results is not a problem, but how do i make it appear like its ...
How can you open windows program by pressing a button on web page
I develop web app in asp.net, and I want to do some action in windows when press button on
the web page,
For example: when you press Messenger button in http://www.msn.com/?ocid=hmlogout
windows live messenger will open in your computer,
Is there a certain technique...
Hi,
.net service to .net client with shared POCO (data objects) library at both ends.
Object OrderInfo contains a List. If the list contains any Module objects I get the dreaded "The underlying connection was closed: The connection was closed unexpectedly."
I can send a "standalone" List from another service method and it works fine so...
I'm writing some program which should perform calculations concurrently according to inputs which reach the system all the time. I'm considering 2 approaches to allocate "calculation" processes:
Allocating processes in the system initialization, insert the ids to Processes table, and each time I want to perform calculation, I will chec...
How can I check what objects, tools, variables, anything... are used from .NET 2.0 in a C# application.
How can I get a C# application run without .NET 2.0 ?
UPDATE:
sorry, I didn't clarify enought. Here's my situation: I have developed a pretty simple application in C#: embeded browser which displayes static webpages with an option o...
Can I parse the html tables by giving only column name ?
Like only those data should be extracted from the table which matches those column names I give.
Like for example I have table of column names like serial no., name, address, phone no,total Rs..
And I want to extract the information about only name, phone no and total Rs.. Then ...
01.02.2010 0:00:00 -> 01.02.2010 anytime
01.02.2010 0:00:00 -> 01.02.2010 0:any minutes and seconds
so here is my date :
DateTime x;
it's
01.02.2010 0:00:00
as a string
x.Date.ToString()
here I compare date
DatarowsForOneDay = dt.Select("DailyRecTime= '" + x.ToString() + "'");
So how can I group by date + Hours without car...
I have following problem.
in one request i am updating session variable.
in the other request, i am trying to access that session value, but it was blocked until the first request finish.
I am using C# with ASP.NET 2.0
UPDATE:
My page code looks like this.
while(int progress = DoWork() && progress <= 100 ){
Session["Progress"] ...
This question might seem trivial and also stupid at the first glance, but it is much more than this.
I have an array of any type T (T[]) and I want to convert it into a List generic (List<T>). Is there any other way apart from creating a Generic list, traversing the whole array and adding the element in the List?
Present Situation:
st...
I'm trying to overlay a WriteableBitmap with a certain color in Silverlight. I have a black and white base image, which I'm using to create smaller WriteableBitmap images for a new composite image and I want to overlay either the black or white part of the source image cut-out with a certain color before adding it to the composite image....
I have been looking through code for the last 3 days, and the original developer is defining Strings using the String class rather than the string class. So, when they've used the IsNullOrEmpty method, it's defined String.IsNullOrEmpty.
What I'd like to know is how is the compiler dealing with String.IsNullOrEmpty compared to string....
I've created an Excel add-in using Visual Studio 2008. It has a ribbon, a bunch of panes and code that adds sheets and ranges and gets information scraped from a web page.
When I run it on my dev PC it works perfectly. I used the Publish command to publich it and installed on a Windows XP virtual PC. The installation seemed fine and whe...
I've been looking at software activation systems for .NET and frankly found the websites out there underwhelming. I'm wondering if there's a "standard" way to do it in .NET? If not, does anyone with experience of them have a recommendation?
I understand the arguments for and against activation systems, but still need to evaluate.
Than...
I have written couple of custom rules in for FxCop 1.36. I have written code to find weather an opened DataReader is closed or not. But it does not check which DataReader object is calling the Close() method so I can't be sure if all opened DataReader objects are closed!!
2nd: If I am a DataReader in an 'if/else' like
if 1=2
dr = cmd...