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# > june 2007 > threads for friday june 1

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

Callback solution for dynamicly loaded DotNetNuke controls
Posted by at 6/1/2007 10:39:14 PM
Staying with in the DotNetNuke 3.2 framework I'm attempting to find the best, simplest solution for making callbacks/RPCs/Ajax requests. The biggest obsticles seem to be staying within the DotNetNuke framework recommendations: *** 1. Default.aspx - One page, one entry point ...more >>


HttpClientCertificate.Cookie
Posted by ko at 6/1/2007 9:48:43 PM
Quote (http://msdn2.microsoft.com/en-us/library/ system.web.httpclientcertificate.cookie.aspx): "can be used as a signature for the whole client certificate" Does anyone know how the signature is achieved? It looks like a MD5 hash... Thanks keith ...more >>

Dynamic Default Event Declaration
Posted by ge0193387 NO[at]SPAM otc.edu at 6/1/2007 7:47:17 PM
I'm dynamically adding controls to a custom control based on the data type of the property being used. So if the property is a string the control will be a groupbox containing a textbox for entry of the string and a checkbox that I would like to check on the textchanged event. If the proper...more >>

Windows Service with Forms
Posted by IsRaEl at 6/1/2007 7:40:47 PM
Helly guys... Anyone know's how to call a Form from inside a Windows Service Project?? Thanks in advance... ...more >>

An error has occurred while establishing a connection to the server
Posted by weird0 at 6/1/2007 6:35:23 PM
I have written a webservice locally, and upon consuming or testing it in the explorer there is a problem. It throws the following exception: System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this fai...more >>

Find directory of .exe (it is not always the current directory)
Posted by Zytan at 6/1/2007 6:10:28 PM
If a program is run from a batch file, the current directory for the program will be that of the batch file, not of the .exe. How can I find the directory of the .exe? My program's files are in the same directory as the .exe, and it assumes that it can find them by using the current directory,...more >>

Cleaning Up Event Handlers
Posted by dmeglio at 6/1/2007 4:36:19 PM
Hello, I'm aware that when an EventHandler is created, it creates a reference to the object, therefore preventing GCing. Therefore, I've been implementing IDisposable in my controls to cleanup the mess (not a fun thing to retrofit). Anyway, my question is regarding this issue. When I crea...more >>

TabPage Control OnClick Event
Posted by Fred Chateau at 6/1/2007 4:34:03 PM
I am trying to run code that binds a DataGridView control on a TabPage. I inserted the code in the TabPage_Click event, but when the tab is clicked, the event never fires. I understand it is necessary to set the StandardClick style to enabled. I can't seem to find a StandardClick style on t...more >>



HTTP Listener??
Posted by Rusty Hill at 6/1/2007 4:23:26 PM
Is there some tool that I can use to profile all the activity HTML, cookies, headers, etc. that are sent back and forth to a site when I access it using my web browser? Essentially I want to navigate a site manually in my browser and get enough information so I can program something to crawl ...more >>

Web Crawling Spidering Question
Posted by Rusty Hill at 6/1/2007 4:17:24 PM
My boss just gave me a project to create a spider that crawls a series of web pages and harvests certain pieces of data they contain and store that data in a database. Of course he needs all this done sooner than may be realistic. Can anyone point me to some samples, links or articles that...more >>

AlgorithmNeeded
Posted by Aamir Mahmood at 6/1/2007 3:23:29 PM
Hi, I am looking for a routine (if someone has already written it), which can convert the following string "ILoveMyPCButIDon'tLoveWindows2000" To "I Love My PC But I Don't Love Windows 2000" Didn't want to spend time if someone has already implemented it and wants to share it. If...more >>

get the file path
Posted by Ken at 6/1/2007 3:19:36 PM
I have application files under "C:\$\TestApp". there is a test.xml file under "C:\$\TestApp\test.xml" I made a virtural directory in IIS as "TestApp" currently in application, "Request.MapPath( string)" is used to get the full filepath. the result is like @"c:\inetpub\wwwroot\TestApp\test.x...more >>

Client-Server application (based on sockets) - too many messages at the same time
Posted by Cichy at 6/1/2007 3:13:59 PM
Hello, I'm writing a Client-Server application using sockets (asynchronous). There is a Server (Master) which accepts incoming connections, and Client (Slave). Afetr establishing connections with all Slaves I wanna hit a button "Automatic", then everything must be reorganised, there is an el...more >>

Sending data to a win32 socket hndle in .NET
Posted by kurt.kurtsmith NO[at]SPAM gmail.com at 6/1/2007 1:03:28 PM
I have a COM object which returns the socket handle it is currently connected to as a 32 bit WIN32 handle. I want to send data to this already connected socket connection but can't seem to figure out what call i need to make in order to send data using the Win32 handle. Is this possible? ...more >>

I want to write my own profiler
Posted by not_a_commie at 6/1/2007 12:27:28 PM
I want to write myself a simple profiler. It would run a .NET application and wait for the application to exit. When it exits I want to see a grid containing 1) fully-qualified method/property name, 2) the number of times it was called, 3) the amount of CPU time spent in that function. I can ...more >>

Linear Regression Example
Posted by ntuyen01 NO[at]SPAM yahoo.com at 6/1/2007 12:22:52 PM
Hi All, Does anyone has examples for Linear Regression formula using c#. Or any good third party software create this. Thanks in advance Regards, Ted ...more >>

SQL query
Posted by ofiras at 6/1/2007 12:14:44 PM
Is there a command to do a query for an SQL database? I managed to make a sql connection variable, and to take info from it by making a SqlDataAdapter with select query in it, and filling the dataset with it. If I want to do an insert query, I can't, because it is not saved in the DB, and when ...more >>

Release is slower than debug... What's happening?
Posted by ThunderMusic at 6/1/2007 11:28:02 AM
Hi, I have a windows service that only loads a CSV file and import it's data using SqlBulkCopy in a newly created Sql Server 2005 table using 25000 rows batches. If I build the service in debug mode and run it, I get descent performances. If I build it in release mode, I would expect it to...more >>

Using nAnt to simple copy folders/files ??
Posted by at 6/1/2007 11:22:45 AM
Has anyone used nAnt script to simply copy folders and files from one location to another? I have a colleague who is suggesting this use of nAnt for our environment. I've heard of nAnt for .NET project build purposes, and know that it can be scripted to copy folders and files, but have not ...more >>

Stringbuilder and SelectCommand
Posted by Harry V at 6/1/2007 10:11:02 AM
I'm using a StringBuilder to build a SelectCommand string that returns a number of records. If that number is >0, I want to fill an arraylist with fields from the records for a listbox. Is it preferrable to use a new SelectCommand statement for the conditional query or rebuild the same Sel...more >>

mesh from contours?
Posted by not_a_commie at 6/1/2007 10:03:03 AM
Can somebody give me some references on how to convert a list of contours (topographical map) into a mesh? Thanks. ...more >>

csharp-source.net closed down?
Posted by sloan at 6/1/2007 9:57:09 AM
Anyone know if this site has closed its doors? csharp-source.net I've tried for 3 days now, at work and at home. No go. ............ ...more >>

DateTime function
Posted by maflatoun NO[at]SPAM gmail.com at 6/1/2007 8:57:30 AM
Hi all, I'm using XML-RPC to grab some information from a third party service provider and they're returning the following date/time format. 12 Jun 2007 08:00 EST5EDT How can I convert that to a DateTime without too much coding? I did some googling and couldn't find anything. Thanks M...more >>

Best options for protecting software from piracy?
Posted by Ronald S. Cook at 6/1/2007 8:31:13 AM
If I wanted to prevent someone from purchasing my Windows software and then giving to friends, I'm wondering what the top 3 or so options are these days and pros/cons of each. I appreciate any responses, Ron ...more >>

How to best extract a list of identical keys in a sorted ArrayList with BinarySearch ?
Posted by Guy at 6/1/2007 7:43:53 AM
Is there a better way to search identical elements in a sorted array list than the following: iIndex = Array.BinarySearch( m_Array, 0, m_Array.Count, aSearchedObject ); aFoundObject= m_Array[iIndex]; m_ResultArray.Add ( aFoundObject); iIndex++; while ( ( m_Array[iIndex].Comp...more >>

How can I add generic list to a serializable class?
Posted by mark4asp at 6/1/2007 4:55:54 AM
I need to add an item to this class which I would like to be public IncumbentManager List<int>; (alternatively it may be an arraylist, but I prefer a List<int>) This is the simplifed code below for the Class: ActivityData with just two variables: ActivityID, ClosingDate. How do I deal w...more >>

How to test if EventHandlers have been added to an event
Posted by Steve Richter at 6/1/2007 3:41:01 AM
no sure of the terminology ... would like to test if an EventHandler has been added to an event: if (this.Load == null) { this.Load += new EventHandler(RowPrompt2_Load); } foreach (EventHandler xx in this.Load) { } compile error: The event ...more >>

Base And protected method
Posted by Yael at 6/1/2007 1:40:01 AM
Hi, com add-in vs.net 2003 & outlook 2003 & c# I need to access to protected method of AxHost, How can I do this? I get nothing after the dot (base.), Why? This is my code: I need to set icon on commandBarButton: I need to get this: return(stdole.IPictureDisp)base.GetIPictureDispFromPicture(im...more >>

Set all bool attributes at once
Posted by Joe Kovac at 6/1/2007 12:00:00 AM
Hi! I have a class with many bool attributes. Now I want to set them all at once to true or false, without forgetting one or the other. Any easy way to do that? (e.g. using reflection) Thanks Joe...more >>

Encrypt values for a key in appsettings
Posted by Aneesh P at 6/1/2007 12:00:00 AM
Hi All, I need to encrypt some fields esp password key values in configuration file while installting the application using .Net installer project and decrypt those values from my solution(windows service). Is there any built in method in.Net that I can use. The flow would be like this: Ac...more >>

WPF + C# 2.0 Windows.Forms controls
Posted by mustafa.rabie NO[at]SPAM gmail.com at 6/1/2007 12:00:00 AM
Dear all, I am new to the .net 3.0 development. I am currently trying to develop a WPF (XAML) application using VS 2005 + Expressions blend. I created the window added buttons and managed all this. But when i am trying to add a WebBrowser control i can't find it in the tool bar (in VS 2005...more >>

Textbox fields in .Net installer
Posted by Aneesh P at 6/1/2007 12:00:00 AM
Hi I've more than 12 fields to be read from the dialog in .Net installer. But .Net installer user interface editor supports only three textbox dialogs TextBox(A), TextBox(B) and TextBox(C) with each having 4 textbox fields - total 12 input text fields. Is there any way to extend this function...more >>


DevelopmentNow Blog