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 > september 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

Reading from XML to MemoryStream
Posted by Yehia A.Salam at 9/30/2006 6:09:58 PM
Hello, I am trying to read from an xml file and put it to a memory stream so I can read it multiple times from the beginning using XmlTextReader without accessing the harddisk , I tried using FileStream but it locked the xml file so I can't access it anymore until I close the filestream, so...more >>

JSON and .Net
Posted by John Bailo at 9/30/2006 11:57:12 AM
Has anyone used a JSON implementation in a c# application? -- Texeme Construct...more >>

t-SQL Bookmark?
Posted by John Bailo at 9/30/2006 11:53:18 AM
What is a SQL server bookmark (SQL2000/w2k standard)? How does it affect performance? -- Texeme Construct...more >>

Is C# really better than VB 2005
Posted by Newish at 9/30/2006 1:00:09 AM
Hi Can someone please enlighten me. I hear different things. Some suggest that the difference between the languages in terms of capability and versitility has really narrowed down to a point where it does not make any difference which language you use. Some suggest that C# is still far sup...more >>

Is C# really better than VB 2005
Posted by Newish at 9/30/2006 12:59:59 AM
Hi Can someone please enlighten me. I hear different things. Some suggest that the difference between the languages in terms of capability and versitility has really narrowed down to a point where it does not make any difference which language you use. Some suggest that C# is still far sup...more >>

how to zoom
Posted by Yoshitha at 9/29/2006 5:57:57 PM
I'm developing windows application using c#.net (vs 2003), i've placed several images (picture boxes) in panel control and i want to zoom the panel control so that the images and text which contained in the panel control has to be zoomed and i want to work on that zoomed portion like we work i...more >>

hWnd in .net?
Posted by AppleBag at 9/29/2006 4:24:14 PM
As an ex-vb6 developer, I used to just do something like me.hWnd or button1.hWnd to get or pass the handle to that item. I noticed it missing now in vb.net. How does one do this in .net? TIA ...more >>

Enterprise Library - Exception Handling Application Block
Posted by thejackofall at 9/29/2006 2:53:01 PM
Howdy? Good. I am getting this error when the Exception Handling Application Block when it tries to create my exception handler. Here is the error. Constructor on type 'MyCompany.Exception.MyCompanyExceptionHandler' not found. In my code, the contructor for the handler is as follows: ...more >>



Can I use GDI+ in a Service?
Posted by Don Curtis at 9/29/2006 1:31:01 PM
If I use GDI+ within a service, what problems can I expect? Why can't GDI+ be used within a service? http://msdn2.microsoft.com/en-us/library/system.drawing.aspx "Classes within the System.Drawing namespace are not supported for use within a Windows or ASP.NET service. Attempting to use t...more >>

Can a windows sevice have a User interface
Posted by Suman at 9/29/2006 12:22:56 PM
Hello everyone. Pardon me for my basic questions about windows services.. Is a windows service a stand alone system with no interaction with outside environment? Can a windows sevice have an interface which it can use as an output? Can a windows service take user parameters before/while...more >>

How to dynamically display entries made into a growing log file
Posted by Suman at 9/29/2006 11:34:11 AM
Happy Friday everyone!!! I am working on a windows service and a C# application and needed some help with certain functionality. Please read through my issue below. Thanks! I have a windows service which writes into a log file periodically (text file). I want to create a windows form applic...more >>

ASP.NET web farm with Oracle - design and deploy
Posted by yoram.ayalon NO[at]SPAM structuredweb.com at 9/29/2006 10:07:20 AM
We have a web application running on classic ASP, where the session is maintained in the Oracle DB, so every page redirect/form submit can switch servers without any problem we are looking now at writing a .NET application on the farm using same Database. a couple of questions/notes: - I u...more >>

Multiple datagridviews same form
Posted by TomH at 9/29/2006 9:34:03 AM
I am using VB within VS 2005. How can I have multiple datagridviews on the same form pulling from the same table? e.g. I want to see all clients from New York in one view and all clients from LA in another view on the same form. I've set up a parameterized tableadapter and pass it the city. Ho...more >>

Exception Layer?
Posted by Nemisis at 9/29/2006 8:53:48 AM
Hi everyone, As i have said before i am new to the 3-tier architecture and so far, i have wrote quite a bit for both my DAL and BLL. Now one thing i want to sort out is exceptions. Should i just create an exception class within each layer? That way the BLL, will know about the DALExceptio...more >>

Datagrid not displaying new column
Posted by jfarias at 9/29/2006 8:01:02 AM
Hello all, The problem I am having is in one of the datagrids I added a new column. When I run the application data is not shown in the new column. I am using VS.NET 2003 and am connecting to a sql database(Oracle 10g). Before adding the new column the other fields show up. The other fields...more >>

how to run SQL Script on server
Posted by santosh at 9/29/2006 3:52:44 AM
dear all i am using ASP.net ,c# and SQL server 2000. i have create all table, stored procedure .views in my application which is running well in localhost but now i want to deploy it on server. for that pupose i need to create all table, stored procedure, views on the domain server database....more >>

export to excel
Posted by elangovan at 9/29/2006 2:15:42 AM
Hi all, I'm exporting a datagrid to an excel file. I'm using the following source code to export. DataTable dt = new DataTable(); DataAccess.StoredProcedure sproc = new DataAccess.StoredProcedure("sproc_getdata"); sproc.Run(dt); DataGrid1.DataSource = dt; DataGrid1.DataBind(); D...more >>

Problem with Microsoft HTML Help Control
Posted by Baiju K.U. at 9/28/2006 7:57:54 PM
Hello I have a serious problem in using the Microsoft HTML Help control for authoring help for my web site. In some machine the control works fine. But in most of the machines it is not working. The page which should show the Tree Control is just showing a (X) mark. I tried with Java applet...more >>

Adding files to Assembly
Posted by Ron M. Newman at 9/28/2006 3:56:52 PM
Hello .NET Sages, Question. What is the meaning of adding say, an XML file to a project, next to a .CS file (not that it matters). Does that mean the XML file becomes a part of the compiled assembly and I'll be able to refer to it from another application that'll open up and use this ass...more >>

Project Structure And Namespaces
Posted by Yehia A.Salam at 9/28/2006 3:43:03 PM
Hello, I got confused with all the folders generated by VS and the way it handles namespaces, my project simply consists of a control library and an application that uses it, my namespaces is like that: so in the control library I used this namespace: namespace Xeen { namespace U...more >>

VB.NET Common Language Runtime questions
Posted by douglass_davis NO[at]SPAM earthlink.net at 9/28/2006 3:07:22 PM
Some things i do not understand about CLR if any one could clear this up i would appreciate it. 1. When I compile a program in VB .NET 2003 and get an executable, does that executable contain native code or Intermediate Language? 2. Is there somewhere a choice in VB .NET 2003 between c...more >>

A Thumbnail Script
Posted by David R. at 9/28/2006 12:42:01 PM
I found a script that converts a regular size image to a thumbnail. It's a wonderful script, except the thumbnail quality is a bit low. I'd like to add the following code to improve the output quality of the thumbnail. Can someone direct me where to incorporate this code? Thanks. Code to ...more >>

Mysterious perf problem...could it be Date.Now? (long post)
Posted by David at 9/28/2006 12:03:02 PM
We've developed a seismic-data processing app in VB.NET 1.1 which runs on XP Pro using SQL2K. Like all seismic data apps, it deals with HUGE amounts of binary data (we use NTFS sparse "flat files") ... a typical user will have a 20 Terabyte raid array. During a particular operation that re...more >>

including folders in visual studio.net 2003
Posted by dbrown NO[at]SPAM protocol-national.co.uk at 9/28/2006 8:58:50 AM
I've excluded a few things from a VS project and now I need to re-include them but can't figure out how. I excluded a web service, web reference and proxy file because they were part of something which didn't need to be rolled out at the time. Only problem is that I now need to re-include them...more >>

enterprise or Professional
Posted by Ant at 9/28/2006 6:06:01 AM
Hi, I'm moving to VS2005 & wonder which should I go for. I need to be able to create XML web services. Will the Professional version allow me to do this or must I go for the Enterprise? What extras do I get? Thanks for your help in advance Ant...more >>

How to Access HTML Controls from code behind ?
Posted by viveklinux NO[at]SPAM gmail.com at 9/28/2006 6:02:24 AM
Hi , I have a table which needs to be populated at runtime. Is there a way to do this without using a server side control like repeater or datagrid ? How can an HTML control be accessed in code behind ? Thanks in advance .. ...more >>

C# Regular Expressions
Posted by Stedak at 9/28/2006 4:38:02 AM
I have a series of number that need parsed. Strip the zeros, if a caret exists replace it with a slash. 1.) 000123^2 - should be 123/2 2.) 1^2 - should be 1/2 3.) 0001 - should be 1 4.) 000123 - should be 123 I have this started: Regex r = new Regex(@"(?<base>[1-9]{1}\d*)\W(?<group>\d*)"...more >>

Cannot find file specified
Posted by hypermommy NO[at]SPAM comcast.net at 9/28/2006 4:10:47 AM
Hi all, I have a problem that's got me just stumped. On my local machine (WinXPPro) my application runs just fine. But on the client's server (Win2003ServerStandard) when I try to pull up my default.aspx or login.aspx page, I get no error message but simply a plain white page that says "The...more >>

Hybrid Windows Service + Console App
Posted by Chris Mullins at 9/27/2006 10:03:25 PM
For some reason the question, "Can I make an EXE that is both a Windows Service and a Console Application?" has come up quite a bit for me over the last few weeks. I've been doing this for years, but for some reason I've never seen it documented anywhere. C# (or VB.Net) is perfectly happy to c...more >>

IoC Container
Posted by Derek Smith at 9/27/2006 9:21:28 PM
I am looking for a lightweight Inversion of Control container besides the Spring Framework. Is there a .NET implementation of Pico Container? What other IoC containers are people using for .NET? Derek ...more >>

Play Sound Clip Once
Posted by illmagination at 9/27/2006 4:23:42 PM
Hi, I recently received a task to have a .wav file play only once when home page is 1st loaded and only play again when the user re-visits the page by opening a new browser. I am using asp.net 2.0 framework. Could someone please guide me? Thank you. ...more >>

string variables in C#
Posted by C#leaner at 9/27/2006 1:15:31 PM
In the following code, I am getting a compile error saying that use of unassigned local variable d. Can anyone help? ---------------------------------------------------------------------------------------------- string d; int i=1; while (i<13) { i++; if (i==1) d="first"; if (i==2) ...more >>

string variables in C#
Posted by C#leaner at 9/27/2006 1:15:29 PM
In the following code, I am getting a compile error saying that use of unassigned local variable d. Can anyone help? ---------------------------------------------------------------------------------------------- string d; int i=1; while (i<13) { i++; if (i==1) d="first"; if (i==2) ...more >>

Clock differences on servers
Posted by Josh at 9/27/2006 1:07:25 PM
I posted this in the distributed apps section but there wasn't a single answer. It seems that this forum is a little busier and just as applicable so I'll try again. Imagine I have a distributed app on a number of servers, say a web farm and a couple of app servers. Can you think of any t...more >>

is there syntax error in my code
Posted by C#leaner at 9/27/2006 12:12:41 PM
I am getting squggly blue on (i==1) as well as on d. class Program { static void Main(string[] args) { string d; int i; for (i = 0; i < 12; ) { i++; if (i == 1) d = "first"; if (i == 2) d = "seco...more >>

Managed DirectX 2.0 ? (MDX2)
Posted by Robert Hooker at 9/27/2006 7:56:38 AM
Does anyone have any information on when MDX2.0 will come out of Beta? It seems like its been in Beta for a looong time... Rob ...more >>

Rename Project?
Posted by Herb at 9/27/2006 7:38:02 AM
I have a VS 2005 Website project named ABC. The project leader has changed the name to XYZ. Is there a bulit-in way to change the project name? Is this simpler than I think? If I just create anohter project named XYZ, can I copy the files to that folder? Can I just rename the ABC folder to...more >>

ASP.NET 1.1 password recovery
Posted by jeffg at 9/27/2006 6:18:02 AM
I have a web site that I use forms authentication on. I am trying to implement a password recovery tool, but am unable to get beyond the login screen to get to my PasswordRecovery page. My forms authentication is set up in the web config file as follows: <authentication mode="Forms"...more >>

Retrieving child data in DAL or BLL
Posted by Nemisis at 9/27/2006 5:04:02 AM
hi all, If i have a table in my database, and that table contains foreign keys to other tables, should i extract the data from the other tables at the same time, or should my business layer call the separate DAL retrieve methods for each child object? if i take the example of a company and ...more >>

Runtime information
Posted by tasiekk NO[at]SPAM tlen.pl at 9/27/2006 4:16:54 AM
How can i get information in code if exec was execute in cd-rom or in hard drive ?? My prog should only work from cd-rom so i need to know i code if it was executed from cd or not. Ty for any help. ...more >>

Regular Expression
Posted by Tedmond at 9/27/2006 4:15:01 AM
Dear all, I want to read a file data block by block using regular expression. The file contents is like MWH ........ ................. ..................... MWH ................. ........................... ........................... ..................... MWH .... Each block star...more >>

comparing two VARIANTS
Posted by Vasuki at 9/27/2006 2:16:02 AM
hi when I try to compare two VARIANTS, i get a compilation error. when i tried the same in version visual studio 7.0 it works fine but with 7.1 it gives me the following compilation error: binary '!=' : no operator found which takes a left-hand operand of type 'VARIANT' (or there is no ac...more >>

Web services or something else?
Posted by Mateo at 9/27/2006 2:10:34 AM
HI! Situation: I have database on desktop computer (lets' call it DB1) which is connected to the internet (permanent ADSL or cable). I have second database (let's call it DB2) on web server (rented hosting). I need to synchronise those 2 databases. Syncronisation must be bidirect...more >>

Retrieving child objects, and when
Posted by Nemisis at 9/27/2006 2:00:12 AM
Hi everyone, sorry if this post gets really long, i just wanna make sure i fully explain what i am trying to do. I am new to OOP and .net 2.0, so if this is obvious, i am sorry. I have wrote a data access layer, which contists of separate servicebases for each object within my database. Co...more >>

help on Windows Service startup
Posted by serge calderara at 9/27/2006 12:37:01 AM
Dear all, I have build a windows service whcih read soime remote configuration in an application file. That file path is pass as argument in the satrt parameter of the service. If I start the service without any config file related, it start fine but as long as I ask for reading a config...more >>

ScrollableControl Problems
Posted by Yehia A.Salam at 9/26/2006 8:44:04 PM
Hello, I'm trying to create my own control derived from ScrollableControl public partial class qViewer : ScrollableControl{ public qViewer() { VScroll = true; AutoScroll = true; } ... } I override the OnPaint method with my own code, how...more >>

Which version?
Posted by Linn Kubler at 9/26/2006 3:08:23 PM
Hi, I was just wondering, do I need to have both versions of .NET installed on my computer? I see there is Version 1.1 and Version 2.0, does 2.0 include all the functionallity of 1.1? Please advise, Linn ...more >>

HELP! .Net user control in a VB6 app requires double-click to activate
Posted by holysmokes99 NO[at]SPAM hotmail.com at 9/26/2006 2:59:55 PM
I have a VB6 Winform application that has a .Net 2.0 user control (exposed via COM Callable Wrapper) that I made. No matter what I have tried, once the user control looses focus, it always requires a double-click to regain focus. My control is located on a tab of a Microsoft VB6 Tab control. So...more >>

Expression Evaluator
Posted by Brian Gideon at 9/26/2006 2:08:45 PM
All, I'm looking for an expression evaluator to use in .NET and I was hoping someone could point me to a free library. Google's not playing nice on this one. I wrote my own, but if there is another out there that performs better or has more features I'd probably use it instead. Here are my...more >>

Visual Studio Proffessional 2005
Posted by Miro at 9/26/2006 12:32:37 PM
If someone can help me out here It would be much appreciated. I dont want to spend $$$ and find its not what I am looking for. I am looking to buy Visual Studio 2005 Professional. - This is the version that I can tell from here: http://msdn.microsoft.com/vstudio/products/compare/ So wha...more >>


DevelopmentNow Blog