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 > april 2005

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

Setting the current value in a DropDownList
Posted by BillG at 4/30/2005 11:34:04 PM
How do I set the current value in a DropDownList? I populate the DDL and then I want to position it to the current value. ...more >>

ADO DB Connection (SQL Server) via ASP.Net web app - help!!!!
Posted by kvrdev1 at 4/30/2005 5:41:02 PM
I'm attempting to connect to a SQL Server DB, using ADO, from my new ASP.NET web application. I can use the same connect string from within a VB.Net app (windows app) just fine, but I cannot do it from within my web app... Here is the error I am receiving: Login failed for user '(null)'. ...more >>

calling javascript function from code-behind page
Posted by BillG at 4/30/2005 2:48:31 PM
In my DeleteButton_OnDelete method I would like to get confirmation from the user as to whether they are sure they want to delete a member. How do I call a js routine to confirm the choice? ...more >>

How to use a XSD file to validate a XML file
Posted by Peter at 4/30/2005 2:13:04 PM
Please advise how to apply a XSD file to validate a XML file in Visual Studio.Thanks. Peter ...more >>

Single-Line If Statement Problem
Posted by DLP22192 at 4/30/2005 12:36:02 PM
I have the following single-line if statement that is evaluating true even though it shouldn't. I have never seen this before and I am concerned that this can happen in other areas of my code. If String1.Length > 0 Then String2 = String1 where String1 = "" This statement also evaluates...more >>

Double lock on iseries db2 ado.net transaction
Posted by John Bailo at 4/30/2005 10:40:03 AM
I'm seeing some odd locking behavior when using an DB2400 database and running an ado.net transaction. My code -- in simplified form, appears at the bottom. I want to run several INSERT statements using the same iDB2Connection and iDB2Command. Then I want to Commit() so that either all...more >>

[newbie] webservice questions
Posted by Peter Schmitz at 4/30/2005 10:12:02 AM
Hi, I'm new to .net webservices (esp. with .net framework 2.0) and I have these questions - perhaps one of the gurus in here could give me some hints... - I just created a WebMethod() that shall return a value of type ArrayList. But when I try to call the webmethod in my client - the retur...more >>

Accessing controls in another form
Posted by DaveG at 4/30/2005 12:00:00 AM
Hi Using VB.net 2003 I know how to access controls on a 2nd form after declaring the form in the first. But how do I access the controls on the original form from the 2nd form. (in frmMain) Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Hand...more >>



Basic Help
Posted by willie at 4/30/2005 12:00:00 AM
hi, i am running a windows server 2003. setup with dns, iis, ftp, news, mail and web server. able to run file.aspx from my server. how to run .net framework with SQL database. MDAC 2.8 installed. i guess i dont have SQL server desktop engine in my system. where can i downoad? ...more >>

VS.Net 2003 and XP Service Pack 2
Posted by Bryan Dickerson at 4/29/2005 4:35:31 PM
Has anyone installed XP SP2 on a machine prior to installing VS.Net 2003 and experienced any difficulties? ...more >>

Debbuging in VS.NET
Posted by jdang at 4/29/2005 2:44:05 PM
Hi all, I have a simple question about debugging in VS.NET and I think you may know how to do this. In Visual Studio 6 and earlier, in command window I can debug my code on fly without any problem. Now, in VS.Net, in the command window, I can check the value of any properties but cannot...more >>

how windows service finds another .Net component
Posted by BBM at 4/29/2005 10:08:03 AM
I am new to .Net. I have a Windows service in C#. It is going to use another .Net component (DLL) made by a 3rd party company. If I start my program as an app with that DLL in the same directory, my program can use it. But if I start it as a service, it does not work. How does a .Net windows ...more >>

Server monitor and notification
Posted by Kalyan at 4/29/2005 8:58:07 AM
Hi I need some idea, Is there any way to write vb code to monitor server activity and if server fails send out email to admin. thanks Kalyan...more >>

Help in asp.net addhandler
Posted by Pierre at 4/29/2005 8:12:04 AM
Hi, I create an dynamic command button like that: buttonCmd= New Button buttonCmd.ID = "IDBTN1" buttonCmd.Text = "Test" AddHandler buttonCmd.Click, AddressOf MessageClick I have this click sub: Su...more >>

Inheritance - issue with Constructors
Posted by Doug at 4/29/2005 5:34:39 AM
I have a public abstract class that I want to inherit from in two other classes. My public abstract one has a constructor with several parameters. For some reason I cannot get to that constructor unless I create a constructor in my two other classes like this: public ClassName(string szParam...more >>

communication to serial port
Posted by Mike D at 4/29/2005 5:18:03 AM
I need to write a program that takes data from a balance connected via serial port. In vb I would use the MSComm object. What is available in vb.net?? Thanks Mike ...more >>

multiple sort criterias for any class; arraylist performance
Posted by herbert at 4/29/2005 2:15:01 AM
1) I created a class Person whose objects are stored in collections. Using IComparable allows to define one sort criteria like name. Best practice: How can I add more sort criterias like age, zip, ...? I don't care whether the original collection is sorted or I get a copied collection sorted. ...more >>

Win32API Function NetQueryDisplayInformation
Posted by Chris van den Heuvel at 4/29/2005 12:00:00 AM
I am trying to enumerate the users of a system from within my app = (VB.NET) Not finding any .Net Framework classes to do this I turned to = the Win32 API and NetQueryDisplayInformation. I can't get it to work = from within VB.NET however. I found the following KB article from MS http://suppor...more >>

How to find available SQL Server on local network
Posted by Job Lot at 4/28/2005 10:12:03 PM
Using VB.NET how can I find all available SQL Server on a local network and list all the databases in each server. Thanks ...more >>

combobox.selectedvalue problem
Posted by amber at 4/28/2005 9:57:21 PM
Hello, I have a combobox populated by a dataset filled with data from a SQL view. In the view I have combined two fields to create one. I can't set my combobox.selectedvalue to this value. Any other field in the view works, but this one leaves the combobox empty... The purpose behind this ...more >>

Easiest database to use (free)?
Posted by Wraith Daquell at 4/28/2005 8:19:05 PM
Hello all, I am searching for a free database to use with .NET. I haven't worked with databases much but can manipulate them with a small knowledge of SQL; I need to be able to store possibly large amounts of data, and the database should probably be only one or so files. Also, there will not ...more >>

Help with Translation from C# to VB.NET
Posted by AMerrell at 4/28/2005 3:56:32 PM
Hello, In C# I have seen subs overload each other that have the same signature. For example: void IPostBackDataHandler.RaisePostDataChangedEvent() { ((BasePostBackControl)this).RaisePostDataChangedEvent(); } protected virtual void RaisePostData...more >>

convincing a client to go with dotNet instead of Access project
Posted by bill at 4/28/2005 3:08:54 PM
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded. I believe a dotNet solution is better, but I'm trying to be as convincing as possible -- and may...more >>

Xml Deserialization with Visual C++ .NET
Posted by Meta-Meta at 4/28/2005 2:29:01 PM
Hi, I'm trying to deserialize a VC++ .NET class and am stumped by the following problem : In order to create the XmlSerializer you need to pass the type of the object being created. The doc shows the example in C# (no C++ available) : >> [C#] MySerializableClass myObject; // Construct...more >>

is there a way to get an assembly to parse its own source code at runtime ?
Posted by Mad Scientist Jr at 4/28/2005 2:01:07 PM
We have an old system that uses Scheme as its scripting language, that many developers need to use, but 99% of our people know C# & .NET, not Scheme. This system is not going away anytime soon. Some of us had the bright idea to make a system to allow you to write the scripts in C# (using VS.NET,...more >>

Inputting Time on a Webform
Posted by BillG at 4/28/2005 1:34:12 PM
I am looking for an example of how to display a text box and prompt the user for a time ex. 9:00 am. I would have a start time and an end time and then I would take the difference to give me the duration of the event. I would like to provide the user with the least opportunity for screwing u...more >>

Finding Mouse Coordinates on ASP.NET Web Form
Posted by TB at 4/28/2005 10:52:04 AM
Howdy... I have an asp.net web form with an ImageButton control on the form. When clicked, the ImageButton's click event handler is supposed to pass X and Y coordinates of the mouse click's location on the PAGE. I know that I can see the X, Y coords for the click event relative to the Image...more >>

Setup Package Does Not Replace Obsolete Files
Posted by TC at 4/28/2005 10:33:34 AM
I have a deployment project which is supposed to install an application to the Program Files folder. I have set RemovePreviousVersions = True. Nevertheless, I find that the obsolete version of one critical file is not removed and is not replaced by the current version. What is going on? Why is...more >>

dotnet with files Btrieve
Posted by edunetgen at 4/28/2005 9:01:49 AM
I have big applications with Btrieve Btrieve/N and Btrieve Novell. I am developing the same ones in .net (AspNet, C# and Sql) and I need to access to files btrieve. (that are in production). Does somebody know on the Topic? ...more >>

COM+ Dependancies: System.IO.FileNotFoundException
Posted by W1ld0ne74 at 4/28/2005 8:24:05 AM
I have rewritten a VB6 COM+ object using C# .Net. The object works as expected and registers itself in COM+ on my PC, the development server and even on the Test server. I did battle with this problem on the test server, but it seemed to resolve itself. This problem however is not resolving it...more >>

best 3rd party controls
Posted by lastusernameleft at 4/28/2005 7:49:25 AM
anyone have any experience with the best 3rd party controls for .net, both vb and asp? specifically gridview, treeview, rtf. telerik so far looks very good. ...more >>

Possible bug in .net sockets implementation? Reproducible code inside
Posted by jack at 4/28/2005 7:01:14 AM
At this link I have two c# projects, one is a client, the other is a server. Just point the ip address of the client at the server http://www.slip-angle.com/hosted/bug/ The server does little more than the examples in the c# documentation for how to set up an asynchronous server. It just a...more >>

want to get bounced mail in different address
Posted by Atanu at 4/28/2005 3:33:10 AM
Im using System.Web.Mail to send emails to the users. Now i want to receive the bounced mails in a different email id from that of the from(sender) id. Im doing something like this... MailMessage mail=new MailMessage(); mail.Headers.Add("Return-Path","id@domain.com"); but the bounced mail...more >>

SqlConnection.Open() Hang
Posted by arran.pearce NO[at]SPAM online.nospam at 4/28/2005 2:46:07 AM
Hi, I am using .NET 2 (beta2) and are having problems with using a SqlConnection. I have created a test application that opens a sql connections, gets some basic data and then closes the connection. When i run this application as the administrator it works fine. However if i run the ap...more >>

Searching for code
Posted by John S at 4/28/2005 1:48:01 AM
Hi, can someone remind me how to change the windows XP search to include code files as well as text files and documents etc. I'm sure there was a knowledge base article about changing the registry or filter but can't find it now. Thanks...more >>

Datagrid size ???
Posted by serge calderara at 4/28/2005 1:18:03 AM
Dear all, I have a datagrid control on a windows form which is split in two horizontale area. My datagrid has the dock.Fill property in order that its size is occupied the full area Then When no records in the grid , I see only the header. No problem so far Then when there is 2 recors in...more >>

What Developement tool You are using?
Posted by snorman816 NO[at]SPAM yahoo.com at 4/28/2005 1:00:26 AM
Hi, O/R mapping tools!! a well known name in software development/Object-to-relational database system and certainly there are nice number of vendors working on this technology. I have found a nice bunch of companies listed in the article at http://www.service-architecture.com/products/obje...more >>

is there way to convert array of objects to array of strings ?
Posted by roni at 4/28/2005 12:00:00 AM
i have array of objects that's are strings. i need to convert it to array of string before sending to method. is there a way to convert ? (short way..) ...more >>

Namespace Naming Guidelines
Posted by clintonG at 4/27/2005 9:39:19 PM
Microsoft recommends CompanyName.TechnologyName[.Feature][.Design] and it all comes down to not breaking the inheritence model if I am not mistaken. VSN2003 however tells the compiler to use the name of the project as the name of the .dll the project compiles to. Developing on XP Pro in the...more >>

Examining Classes
Posted by Scott M. at 4/27/2005 5:55:25 PM
Is there a VS.NET way to know what exceptions a class is capable of throwing? ...more >>

Crystal Reports Missing
Posted by Taras at 4/27/2005 5:04:04 PM
I'm running VB .Net 2003 Standard (V 7.1.3088) There is no reference to Crystal Reports in the Templates box when I attempt to add a new item. I believe I performed a full install. When I try to fix the install, there is no mention made of Crystal Reports. Did my installation go bad or...more >>

window.opener attribute not set after postback
Posted by MrFez at 4/27/2005 4:36:01 PM
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the value of a textbox in the main (parent) window by using the window.opener property to reference the textbox. Everything works fine initially. Howev...more >>

Access Keys Need to show up as underlined by default
Posted by AlanF at 4/27/2005 3:01:45 PM
We have defined access keys for both our menu choices and buttons. However, when the menu displays, the access key "underline" on the menu does not display until we press the ALT key. We can toggle the access key underline display by hitting the ALT key again. How do we get the access keys to ...more >>

What could replace ActiveX in .NET?
Posted by Irene at 4/27/2005 2:12:02 PM
Currently I have in-house software package written around ActiveX(supporting VB and C++). Currently we are moving to .NET and I wonder what (component) in the .NET can replace(?) the ActiveX? I am a novice in .NET...more >>

Comma appended to textboxes when retrieving value!
Posted by Victor at 4/27/2005 2:07:00 PM
I'm retrieving values from the textboxes that I created dynamically. However I get commas appended to my text values and just a comma wherever the textbox is empty. Dont know what is causing this. Any suggestions please? ...more >>

How to store my .NET project on a server?
Posted by Mark at 4/27/2005 1:47:39 PM
I am developing a Web site and can't figure out how to store the project files on the Web server instead of my local hard drive. There must be a way, otherwise people wouldn't be able to collaborate on projects... but everything I can find talks about developing the site locally and then dep...more >>

Set Max Password Age
Posted by lysrian at 4/27/2005 12:33:45 PM
Is it possible to set the max password age of a domain using C# & DirectoryServices? Thanks....more >>

Displaying a text file
Posted by jlea at 4/27/2005 10:50:49 AM
Does anyone know of a nice little .NET class that throws the contents of a supplied file to a scrollable window/form/control? ...more >>

Does IIS Time-Out on Authenticated Users?
Posted by Shawn Brock at 4/27/2005 7:54:12 AM
Gah - sorry if this is a double post, the newsgroups are acting wierd. This is a very strange error I've been dealing with. I think these items might be related. I am able to debug code on IIS using VS.NET 2003. I can step through code, set breakpoints, and do everything I want. Howev...more >>

XmlDataDocument->DataSet->DataGrid: MDAC required??
Posted by Vico at 4/27/2005 7:47:38 AM
Hi! I have a windows forms application and , what I basically do is: 1.- Instanciate a DataSet. 2.- Instanciate a XMlDataDocument attaching the DataSet to it. 3.- Load XmlDataDocument with a local XML document (C:\mydoc.xml) 2.- Bind it to a Datagrid. That is all! My app doesn't n...more >>


DevelopmentNow Blog