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 > dotnet general > august 2006

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 31

Datasource disappeared and project lost....?
Posted by jer84 at 8/31/2006 4:42:39 PM
Hi Everyone I'm trying really hard not kill something, but I was just about to add a new query to one of my datatables and then my datasource disappeared... now I can't load anything and my project is essentially useless. There are 60 errors and the majority of them seem to revolve around m...more >>


Including an extended control in webform
Posted by Jibber at 8/31/2006 3:05:56 PM
Sorry for the similar post, but I have clarified the problem a bit more. The issue is: how do I use an extended .NET control in a webform using VS2005. In my case, I am overriding the Render for a RadioButtonList control, so I don't need a user control. So, I just have a very simple class file...more >>

Exception Handling - .Net Runtime Error Unhandled Exceptions
Posted by Larry Herbinaux at 8/31/2006 2:27:02 PM
I have built an asychronous TCP Server that uses the thread pool. I have two levels of exception handling in case the handling of the inner catch block throws an exception. The outer catch block does nothing put print a string literal to our logging mechanism. The general structure for this...more >>

Datagridview Loses Formatting
Posted by ScottL at 8/31/2006 1:46:02 PM
Hi - I have an issue with the DataGridView. I am formatting the DGV in code and not using the designer. I drop a DGV on my form, code the formatting including some columns.visible = false. After working with it for awhile, the formatting stops being applied to the grid. Anyone else seen this. ...more >>

non blocking ssl socket
Posted by Alex Turmer at 8/31/2006 1:09:41 PM
All, Has anyone managed to make a non blocking ssl socket in .net? I have an application for it in that I have a .net application that uses non blocking TCP sockets, and I would like to be able to support ssl. Thanks - AJ -- www.deployview.com www.nerds-central.com www.project-netw...more >>

Problem with .NET 2.0 Website Control
Posted by Jibber at 8/31/2006 11:23:48 AM
I have a custom radio button class (MyRadioButtonList) inherited from System.Web.UI.Controls.RadioButtonList. The control is contained in a standard class file - not a user control. When I try to use it in a web form ..aspx using the following code, I receive "directive is missing a 'src' at...more >>

Can someone please describe why impersonation requires the impersonator to be local admin?
Posted by Daniel at 8/31/2006 10:28:14 AM
Can someone please describe why impersonation requires the impersonator to be local admin? ...more >>

xsd:restriction does it work with dataset.readxml ?
Posted by Mac at 8/31/2006 9:30:21 AM
I'm trying to validate input from an xml source to a dataset in dotnet2.0. As far as I can see, type errors correctly cause an exception, but values that are the correct type but do not satisify xsd:restriction conditions are ingested without a murmur. Is this a bug or a feature? Very frustrati...more >>



Updating records
Posted by lmnorms1 NO[at]SPAM yahoo.com at 8/31/2006 6:20:17 AM
Hello, I am trying to update records on a table. I keep the unique ID in a table array so I can read the array and update the corresponding record. The code is giving me an unhandled exception in the command.executenonquery() Here is the code Dim xcnt As Integer Dim gConnString ...more >>

Visual Studio 2005 and Access database mystery
Posted by surfrat_ NO[at]SPAM hotmail.com at 8/31/2006 2:26:41 AM
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft page "How to: Connect to Data in an Access Database" http://msdn2.microsoft.com/en-us/library/cf13...more >>

FileSystemWatchers and CacheDependency
Posted by daniel at 8/30/2006 11:17:02 PM
Hi, I am developing an application that requires me to set up file system watchers on directories on a network drive, as well as set up CacheDependencies in the same location for my System.Web.Caching.Cache. When i set up the file watchers and then create the cache dependency i receive an ...more >>

XML Date Time
Posted by Jeff Uchtman at 8/30/2006 10:32:10 PM
Not sure if this is the right group. Have a XML wiht date coming in the following format: <date_MMDDYYYY> Have a function pulling numbers function getDate(d) { return d.slice(5,7) + '/' + d.slice(7,9) + '/' + d.slice(9); } Would like to convert to long date, i.e August 29, 2006. ...more >>

how can I < or > with two objects of any type passed as object?
Posted by ThunderMusic at 8/30/2006 3:48:04 PM
Hi, I'm doing comparisons over arguments passed as Object... they can be of any type, but must be comparable using < or >... unfortunatly, the compiler does not give the possibility to compare 2 Object instances with < or >... How can I do this without knowing the type of the objects? He...more >>

diagram a class structure with reflection
Posted by Lee Crabtree at 8/30/2006 3:20:37 PM
Are there any tools that will take an existing assembly and generate a class hierarchy from it? It seems like the kind of thing that would be possible with reflection, but I don't know enough about that namespace to tackle this. Lee Crabtree...more >>

Registry read
Posted by Mark at 8/30/2006 2:09:02 PM
I am trying to read a key in the registry but I get nothing in response and I copied the code from the help files. Here is the code: Dim readValue As Object readValue = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\MyTestKey", "Name", Nothing) MsgBox("The value is " & CSt...more >>

Count of objects instantiated?
Posted by Philip Daniels at 8/30/2006 12:54:25 PM
Is there any function in the CLR that can give me a count, by type, of the number of objects currently instantiated? -- Philip Daniels...more >>

can one update a record thru reader
Posted by lmnorms1 NO[at]SPAM yahoo.com at 8/30/2006 12:52:42 PM
Hello, I am looking to update a record that was read in with OleDbDataReader. I have the record in reader but now with the reader connection open; how do I update it. Any advice would be appreciated. Thank you, lmnorms ...more >>

Trying to update exiting code for specific date
Posted by lmnorms1 NO[at]SPAM yahoo.com at 8/30/2006 10:53:08 AM
Hello, I am trying to update an access database record date field that matches a specific date. The code is not working. Anyone have any advice? Here is the code: Dim gConnString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Customer development\VBNET\CSFV\CSFV.mdb;" D...more >>

visible or not visible
Posted by bindurajeesh at 8/30/2006 8:21:02 AM
I am using the following code to make a textbox visible if a certain item is selected from the dropdownlist box. On debug it appears to not even fire the selected index change module. What is wrong Private Sub ddlMedicalNecessity_SelectedIndexChanged(ByVal sender As System.Object, ByV...more >>

Tables and html
Posted by Rik Brooks at 8/30/2006 5:10:02 AM
I am using an asp table to provide a list of dynamic content for the user. It's a custom control with some nice features like the ability to collapse a panel, control the number of items displayed, etc. Right now it displays links that were inserted into the table cell as System.Web.UI.We...more >>

Tables
Posted by Peter Morris at 8/30/2006 3:00:20 AM
Newbie here. I'm hasving trouble with tables in Visual Web Developer Express. I've set cellspacing and cellpadding to zero, but there's spaces around objects in my table. Any idea what's going wrong? ...more >>

Free icons needed for software creations
Posted by Gabriel at 8/29/2006 11:56:50 PM
Anybody having information about downloading high resolutioned icons for software creations. Please send the sitenames or icon collection. ...more >>

AnkhSVN problem
Posted by odwrotnie at 8/29/2006 3:00:47 PM
Hi, my AnkhSVN plugin for SVN management throws this error when trying to submit WebSite project to repository: "The following project(s) are not under the solution root and will not be imported to the repository if you choose to continue." Even when I create empty solution and add proj...more >>

installing vs.net 2003 and vs.net 2005 on same box
Posted by junkpraveen NO[at]SPAM gmail.com at 8/29/2006 1:36:48 PM
Hi.. Can i install both vs.net 2003 and vs.net 2005 on same box .. does that cause any issues .? and if yes how can i make one of them to be default IDEs to open my ... sln files .. is open with okay doing ? praveen ...more >>

Arraylist Copyto() InvalidCastException
Posted by pengbsam NO[at]SPAM yahoo.com at 8/29/2006 1:29:31 PM
Hello All: Having a problem with arraylist.copyto function. And here's a sample of my code in C#: In global--> public struct point { int x; string y; } static public point point; static public point pointarray[]; static public Arraylist myal = new Arraylist(); in sub_func...more >>

Random Numbers
Posted by clsmith66 at 8/29/2006 12:03:02 PM
I'm hoping someone can help me with a problem I'm having using the random class. I need to return a "random" number between 0 and 15, so i did this Dim r as new Random() Return r.Next(0, 15) When I run my application, I call this code 12 times, one right after another, but it kee...more >>

printdialog
Posted by mafandon at 8/29/2006 11:01:02 AM
Is it possible to send a performclick to a button on a printdialog? I know you can do an if statement similar to: if windows.forms.dialogresult.cancel then msgbox("User cancelled print option") end if But I would like to open the print dialog and automatically perform the "Print" button...more >>

Editing App.config at Install Time?
Posted by David P. Donahue at 8/29/2006 10:31:26 AM
My application uses a lot of string values in an app.config file, several of which are file system paths. I'm wondering... is it possible to have the installer for my application (just a standard Setup Project in my solution) edit these path values to match the directory to which the user i...more >>

Use EnterpriseLibrary.Logging from non-.NET code through interop
Posted by A TO Consultant at 8/29/2006 10:25:02 AM
Hi All, We are using Microsoft.Practices.EnterpriseLibrary.Logging version 1.1.0.0 successfully with .NET code. There is a problem when we try to log from non-.NET code through interop. We get the following error message: /// Error Type: /// Microsoft.Practices.EnterpriseLibrary.Configu...more >>

Documentation from XML
Posted by Brian Richards at 8/29/2006 10:23:57 AM
I'm looking for a replacement to NDoc for generating HTML and MSDN style help from the xml documents generated with the /doc switch. The problem with NDoc is it does not support 2.0 very well or at all in the case of generics. Can anyone reccommend another tool? Does not necessarily have to be fr...more >>

How to read contents of html table with .net?
Posted by Jim S at 8/29/2006 7:00:02 AM
I have a need to read the contents of an html table on a remote web page into a variable. I guess this is called screen scraping but not sure. I'm not sure where to start or what the best practices are to accomplish this. For instance; I have a healthcare app that need to check a gov't we p...more >>

About Presenter's Patterns
Posted by Max André Bündchen at 8/29/2006 6:41:02 AM
I'm starting a new project based on webservices as mediator for the clients and the servers. I must develop two presentation layers, one in winforms performing a smart client application and another in webforms with much of the functionality in the Winform version, incluinding a hardcopy of m...more >>

Building Custom Setup Application
Posted by Sheshadrinath R at 8/29/2006 12:28:02 AM
Hello, I am preparing a Setup Project. I want to give some customised options like installing only 'Server Tools' or 'Client Tools' etc. I am also interested in giving customised messages to the user, while installing. I want to make this Setup more interactive. How can I do this in .NET S...more >>

overview Lib Com SDK
Posted by John Devlon at 8/28/2006 10:41:18 PM
Hi, Does anyone know where I can find a complete overview of all Lib's, Com's and SDK's for Visual studio and ASP? (Commercial and non-commercial) thanx John ...more >>

Enterprise Library Forum
Posted by uanmi at 8/28/2006 8:21:01 PM
Please create an Enterprise Library Forum asap. There is no help on gotdotnet for the many people asking questions. My project is stuck without some answers. -- regards, Mark...more >>

asp.net projects can be copied to another machine and work?
Posted by bic at 8/28/2006 7:14:01 PM
asp.net projects can be copied to another machine and work? Or one has to create a new project and then add existing pages and class lib? -- bic...more >>

Dial-up connection
Posted by Frank Hardy at 8/28/2006 6:43:13 PM
Hi, I have to change the phone number of a dial-up network connection by a C# program. Then the connection should be connected. How can I do this? TIA for any help, Frank ...more >>

Virtual desktop makes .NET modal dialog panels disappear
Posted by jbrock NO[at]SPAM panix.com at 8/28/2006 6:22:54 PM
At work we are using a virtual desktop manager called AltDesk (http://www.astonshell.com/), and it is causing a weird and extremely annoying problem with the VB.NET application I am developing. If I start my app, open a test form using ShowDialog() (this is a menu choice on the main app), and ...more >>

Locking controls in a form object
Posted by RichG at 8/28/2006 3:52:02 PM
I want to lock all controls except the buttons on a form. I sometimes need the form to call lockForms(Me). public sub lockControls(frm as form) for each ctrl as control in frm if left(ctrl.name,3)<>"btn" then ctrl.locked=true endif next end sub Unfortunitly "ctrl...more >>

Tabs and Indents
Posted by Laurence at 8/28/2006 3:06:26 PM
In VS.2005, using VB.NET My editor is behaving strangely. If I press the tab key, the line moves over the appropriate number of spaces. When I click on another line, the line that I had tab'd on moves over more spaces. I have changed the tab and insert, but it doesn't seem to work. The...more >>

How can I manually logout upon errors with forms authenticatioN?
Posted by AAOMTim at 8/28/2006 2:16:02 PM
I want to automatically logout if certain conditions occur in my application. Calling Session.Abandon() does not force a logout. What can I do? -- Tim...more >>

How to insert images into a Microsoft Word document using VB.NET??
Posted by JSL at 8/28/2006 1:51:50 PM
How to insert images into a Microsoft Word document using VB.NET?? my code: Public Function PictureReport() (it doesn't work!!!) On Error Resume Next Dim oDoc As Word.Document Dim range As Word.Range oDoc = GetObject(strIniFileName) oDoc.Bookmarks.Item...more >>

BeginSend timeout?
Posted by Bob at 8/28/2006 12:53:11 PM
This question has been brought up before but I have yet to find a reasonable answer. Can someone explain to me how to create a timeout for the BeginSend method? I have seen where people say to create a timer and then have it close the socket when the timer expires but this is not a true sock...more >>

Mousewheel event...
Posted by Dave K at 8/28/2006 12:33:02 PM
I seem to be missing something... I want to use a mousewheel event in my VB.NET app... and there's a lot of example code on the net showing how to use the mousewheel event... and the .NET docs discuss the mousewheel event... but there doesn't seem to BE a mousewheel event. in VS 2003 or 2005...more >>

File Types in Deployment Project - "Open With" List
Posted by Mark.V.Sullivan NO[at]SPAM gmail.com at 8/28/2006 12:26:39 PM
I have encountered the same problem another posted about several months ago. Unfortunately, there was no result posted on the old thread. I will let the original message text stand and ask if anyone can help me with this.. "I have created a deployment project for a .NET program which opens a...more >>

Newbie ASP.NET Question
Posted by Sean at 8/28/2006 10:41:02 AM
I am working with an ASP.Net web application in VB.net. I am trying to save these characters: (<, >) in a database as text. The problem is that whenever I enter something like: "<text>" it says that whatever is in the textbox(which is "<text>"), is not safe/malicious/etc. I was wondering if ...more >>

DataAdapter.Update( )
Posted by Tom Costanza at 8/28/2006 6:55:01 AM
Is there any way to see the final SQL that gets executed by the Update( ) method. I'm getting a syntax error for the SQL, but all looks OK as far as I can see. I need to see the SQL with all the parameters replaced. Connecting to a MS Access database. Thanks, Tom Costanza...more >>

Make a Base64 string Url Safe
Posted by Rasmus at 8/28/2006 6:35:01 AM
In a asp.net site i need to make a url link like this: http://server.com/test.aspx?base64=c+KAnMOfxZLDqhd2w4DCtMOmwr8hawkCdsK9YH7igqwITuKAmcOhXAcDxbjFoR3Cum/DqwFJRU7DpzbigJlYZD1cJcKBwqgaBsObw6VxMMW9wrTDpD7CpSTDkeKAuuKAlFfDt8W+Jz3CvhM7w5HCjeKAneKAuT3Dn8WTw5zigKErw6QFxaF+wrvDksOkwqjDq1fCrsOewrc= I...more >>

Characters missing when reading from file.
Posted by bart.kowalski NO[at]SPAM gmail.com at 8/28/2006 5:42:04 AM
I'm trying to read a text file that contains international (specifically Polish) characters line by line. I'm using the following C# code: FileStream lStream = new FileStream(pFileName, FileMode.Open); using (StreamReader lReader = new StreamReader(lStream)) { string lLine; while ((...more >>

What's wrong with my IIS after I installed Sharepoint portal serve
Posted by George Shui at 8/28/2006 12:13:02 AM
I first installed Visual Studio .net on my local computer without installing Frontpage Server Exetension 2002 and I tried creating Web Sites and find it work well. Then I installed Sharepoint portal server on the same computer. The sharepoint portal server works well now. But now when I cre...more >>


DevelopmentNow Blog