Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > april 2008 > threads for thursday april 3

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

Need architectural help to implement caching
Posted by Girish at 4/3/2008 10:20:42 PM
i have to implement caching in my application, can any one tell me about the good techniques to implement caching, or provide some architectural help , so i can use it to my application. i want to control caching dynamically according to my configuration. Thanks, ...more >>


Create object from type
Posted by Jon Slaughter at 4/3/2008 9:59:48 PM
How do I create an object from a type? I don't need to actually do anything with the object. My code actually uses the object to get only type info rather than anything specific about the object. (its because I'm passing around objects instead of types) Basically I use BinaryReader and pass...more >>

Formating output text
Posted by Joza at 4/3/2008 9:53:46 PM
Hi! I need to write some strings in text file, it consist 3 columns and it must looks like: ID Name Points ====================== 1 Mike 4,5 2 Joseph 1,2 3 Freddy 12,3 The data is in listview control and i know how to get it from it but when when I put t...more >>

MemoryStream into String
Posted by info@listerhome.com at 4/3/2008 8:43:06 PM
I'm battling here.. I have transformed some XML using XSL, and need to output the result as a string... But I can't get the MemorySteram converted to a String... Can someone assist? I have this: public string GenerateMenu() { string outputXml = string.Empty; // Load t...more >>

Is it possible to "cache" the "parameterised" SQL text sent by SqlCommand.ExecuteNonquery() ?
Posted by TheSteph at 4/3/2008 8:01:46 PM
Hi I have a SQLCommand that do updates on a table. I have a loop where I set the parameters then I call ExecuteNonQuery. For . { . Set the SQLCommand's Params Values; . SQLCommand.ExecuteNonQuery(); } Is it possible to "cache" the SQL text sent by Calling E...more >>

Extend Types like instances?
Posted by Jon Slaughter at 4/3/2008 6:12:42 PM
Can one extend the type itself and not just an instance of the type? So I have something, say, like public static DateTime RawRead(this DateTime i, Stream s) { BinaryReader b = new BinaryReader(s); i = DateTime.FromBinary(b.ReadInt64()); return i; } But how I have to use ...more >>

asp webservice variables and persistence
Posted by Bob at 4/3/2008 5:35:17 PM
Hi, How does one initiate and persist variables between users in an asp webservice or is that even possible? For instance, I did a very simple test case below. I would like the timeStart variable to be initialized once at server startup and have all users who subsequently call the webservice ...more >>

Dataset vs DataReader Please Help
Posted by Saimvp at 4/3/2008 5:32:00 PM
Good Day. Im new in Programming. Please help me about Dataset and Datareader. I have couple of question. 1. What is the best way to insert/retrieve a data to SQL Server using Dataset or Datareader with hundreds or thousands records in Windows or Web Application? 2. In the real world of...more >>



SendPropertyChanged always null ?
Posted by dba at 4/3/2008 5:04:31 PM
I'm having a problem with LINQ, I know my property isvalid is set to true, when I step through the code it's fine, this._IsValid = value is set to true, but when it gets to SendPropertyChanged it's always null. The if is always false and never updates? protected virtual void SendPropertyChan...more >>

SqlDBType size
Posted by tshad at 4/3/2008 4:58:15 PM
I have a variable of SqlParameter type called parameter. I need to find out what the original size is to compare it with the actual size of my string. parameter.size gives me the size of the string but not the size of the varchar I originally set. I also need to know if it was set to MA...more >>

Get Extension methods using reflection!?!
Posted by Jon Slaughter at 4/3/2008 3:02:12 PM
I can't seem to get the extension methods using reflection... They just don't want to show up. I've read that it is possible and even saw some code to do it but it doesn't work ;/ If I use the standard method of getting the methods and pass various BindingFlags I don't get it yet I get the ...more >>

getting vs 2005 to use .net 3.0
Posted by Andy B at 4/3/2008 1:53:44 PM
Is there a way to get vs2005 to use .net 3.0 in the sense of asp.net? If so how do you do that? ...more >>

How to read sequentially from a random point in a large Xml File. (200 - 2000 MB)
Posted by Schwartzberg at 4/3/2008 1:02:00 PM
Hello Have a huge XML file with multitudes of "LogEntry" nodes / text lines. A small sample of this xml/text content is below. The file could be anywhere between 200 to 2000 MB. My questions comes in two parts. (A) I would like a solution (or ideas for it), in C#, -- to randomly access ...more >>

DataGridView checkbox column issue
Posted by Marco Pais at 4/3/2008 12:39:06 PM
Hi there. Hi have a datagridview with a textbox columns (prices) and a checkbox column. I want that when a row is checked, some a value is incrmented with the price colmun. Everything works fine, if I click chekbox cell slowly (true-false-true-false...). However, if I click faster, it assum...more >>

compression deflate
Posted by Analizer1 at 4/3/2008 12:25:44 PM
i would like to store the compressed stream in a table is there a way to convert the compressed stream to a string or someother storeable data type thanks ...more >>

OpenFileDialog (Constant Inital Directory)
Posted by NvrBst at 4/3/2008 11:50:56 AM
I drag the OpenFileDialog into the WZYWIG editor and set all its properties. Setting its' InitalDirectory does make the first time it opens, open up in the right directory. However, everytime after that it remembers the directory that the user navigated too and opens initally at that directory...more >>

"new" vs "override" for a method
Posted by Ethan Strauss at 4/3/2008 11:45:02 AM
Hi, This seems really basic, but I can't figure it out. What is the difference between an inherited class overriding a base class method and an inherited class creating a "new" method. For example, I have a class and inherited class as follows class Units { //... publi...more >>

How to define an array with no hard coded size?
Posted by Andy B at 4/3/2008 11:33:54 AM
I have this code: public class Contract { private Definition[] definitionField = new Definition[]; public Definition[] Definitions { get {return value;} set {definitionField=value;} } } Then when I go to use it like this: //create a contract Contract Contract = new Contract(); //a...more >>

ftp uploads
Posted by BD at 4/3/2008 10:35:57 AM
Hi, in my C# windows forms application accessing remote server, I want to upload files to my server and store the path in my database. Both functions are being performed within the same application. I did this before with the same database and server with Access and was able to change the name...more >>

Asynchronous web service invocation
Posted by Giulio Petrucci at 4/3/2008 9:37:54 AM
Hi there, I have a simple web service, exposing a web method DoSomething() which might take a lot to execute. I'm writing a client application (using ..NET FW *2.0*) and I'd like to invoke it asynchronously. I did the following: - create a proxy class "Service.cs" runnind disco+wsdl agains...more >>

initialize listbox
Posted by Lubomir at 4/3/2008 9:01:01 AM
Hi, What is the best way to initialize a listbox by the first row from multidimensional array? I wanted to use Listbox.DataSource but I could not make it work. Thanks, Lubomir...more >>

registering .Net assemblie as COM object
Posted by Cartoper at 4/3/2008 8:42:45 AM
What are the steps to register a C# assembly as a COM object?...more >>

threads (exceptions)
Posted by csharpula csharp at 4/3/2008 6:37:29 AM
Hello, I am trying to run a thread and inside this thread an exception happenes. The question is how can I catch the exception outside of the thread and react on this exception? Thank you! *** Sent via Developersdex http://www.developersdex.com ***...more >>

Sort a LinkedList
Posted by Philluminati at 4/3/2008 3:24:52 AM
I have a LinkedList of network objects defined: LinkedList<NetworkObject> and I want to sort the contents against one of the properties. I'm not looking for people to post page long algorithms on how to write a sorting algorithm, I just want to know reuse as much as possible. (It's a clie...more >>

How to load pcx-images into an System.Drawing.Bitmap ?
Posted by Per at 4/3/2008 12:37:00 AM
I'm working on a project that have to load an display pcx-images in a PictureBox-control. When I try to load the file with Bitmap.FromFile I get an exception. Does anybody have an idea ?...more >>


DevelopmentNow Blog