I'm currently developing a site in ASP.NET Webforms..
I'm caching things where it makes sence... adding things using High / Normal / Low priority..
telling them to stay in the cache for 2 weeks, 1 week, 4 hours respectably
im showing the current number of cached items on every page (for debug reasons).
sometimes if i travel through t...
Hi all!
I'm trying to change the default values in the "time" drop down list that the DateTimeControl displays in Sharepoint. I want an increment of 15, not 5 minutes. Anybody has any idea how this could be done? Can I overload a method or something?
...
Using BIDS 2005 to create rdl reports. I want to have the report aggregate all the strings in a data group. I was looking for something along the lines of Concatenate(Fields!CompanyName.Value, ","), or Join, or equivalent. But it would have to iterate over all the records in the scope given.
I am creating a report of a user's activit...
Hey there,
Is is possible to display a node without children as a leaf node within the .NET 3.5 TreeView control?
I have a treeview that displays a list of companies as nodes which would each display leaf nodes for documents belonging to that company.
If a company exists without any documents I would still like it to be rendered as pa...
I'm trying to use Microsoft FXCop Version 1.36 on a compact edition application but when I analyze the project I get the following error.
The following referenced assembly
could not be found. This assembly is
required for analysis and was
referenced by application.exe
System.Windows.Forms, Version=3.5.0.0,
Culture=neutra...
I was reading the Essential C# 3.0 book and am wondering if this is a good way to check delegates for null?:
class Thermostat
{
public delegate void TemperatureChangeHandler ( float newTemperature );
public TemperatureChangeHandler OnTemperatureChange { get; set; }
float currentTemperature;
public float CurrentTempera...
I have a WCF service method which I have written for return type as collection type.
But if I generate a proxy class and consume the method from the client the methods return type is changed from a collection to an array.
Why is this happening?
...
For my company, I created a ASP.NET web service that uses a 3rd party payment prcoessing engine to authorize credit card transactions.
The web service is hosted on a seperate application server and connects to the payment processing server via an ActiveX object (.ocx extension). Lately, it has been generating a HRESULT: 0x80010105 (RPC...
I'm looking for a tool that can collect quality metrics for C#/.NET code. I'm aware of NDepend - are there any other tools that I should look into? Ideally, I'd like to find something that could be integrated with an automated build process - something that could export a text-based report (I'd like to be able to easily email and archive...
A lot of the code base methods my peers have written perform their own error handling, usually by catching, notifying, and logging.
In these cases the methods return a boolean, indicating success or failure.
Sometimes though, if a method fails, I want the calling code to know why, and returning a boolean is not enough.
One way around ...
Hi,
What is better approach threading or asynchronous programming.
I have read both especially in database operations we can use both of this approaches.
Is my understanding is correct?
please give some guidelines?wat all scenarios we ca use threading and waht all scenarios asynchronous programming is good?
Thanks
SC
...
I know this is a probable open ended question, and I have tried looking around so much over the last year or two... maybe I am looking for a perfect place that doesn't exist! of course it's all about perception no less..
Anyway, just to clarify what I am trying to do and why:
I want to be able to use (primarily for the moment) ASP.NE...
Scenario. Language C#, Unit testing using VS2008 Unit testing framework
I have a static class with a static constructor and 2 methods.
I have 4 test methods written to test the entire class.
My Static Constructor has some important initializations.
Now if I run all the 4 unit test cases in tandem, the static constructor will be
called...
I was disappointed to find that Array.Clone, Array.CopyTo, and Array.Copy can all be beat by a simple 3-line manually coded for(;;) loop:
for(int i = 0; i < array.Length; i++)
{
retval[i] = array[i];
}
Say the base case for performing an operation a few million times on an array of some predetermined size takes 10 ...
Hi,
How does CLR recognizes managed code from unmanaged code?
Thanks
SNA
...
Hi,
I have some SerialPort code that constantly needs to read data from a serial interface (for example COM1). But this seems to be very CPU intensive and if the user moves the window or a lot of data is being displayed to the window (such as the bytes that are received over the serial line) then communication gets messed up.
Consideri...
Hi,
From past few months I am working on projects in latest dot net frameworks.
I feel that in latest dot net versions "services" are encouraged over components. Is that correct?
I have seen in silver light (I am a beginner in silver light) all the DB layer operations are exposed as services. I don't know right now component program...
I am using OLEDB to connect .mdb/.accdb file.
I am writing code like this
using System.data.OLEDB;
class dbconne
{
.....
.........
.......
.
.
.
.
OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\db1.mdb");
OleDbCommand aCommand = new OleDbCommand("select * from emp_test", aConnect...
Hello,
I am planning to use .NET Client along with a Java Server.
Are there any options / tools which help in .NET to Java connectivity apart from programming against web services.?
...
Is there anyway, in a program, to detect if a program is being run from inside a remote desktop session or if the program is being run normal in .NET 2.0? What I'm trying to do is, I create a timeclock application which will clock a person in and out and keep track. But this particular person, I suspect, is remoting into their computer a...