microsoft.public.dotnet.general Archive - June 2002
Post a message to this list
Messages
Page: 12345
.NET deployment problem (3 replies)
microsoft.public.dotnet.general
I deployed one application which I created using vb.net on client's machine. But when I tried to run it, it is giving an error which says System.data.sqlclient.sqlexception: Sql Server does not exist or access denied. This application needs to connect to SQL Server and it has Crystal Reports. The client has proper rights (security) to access SQL Server. I added the following merge modules: Databas...
Fails to Raise an Event (2 replies)
microsoft.public.dotnet.general
[VB.net WinForm] I have built a Custom control which inherits from a group of standard controls. It has the declaration Public Event Foo(). In the logic it steps through RaiseEvent Foo() with no error. In the past, the Foo event was raised by the custom control, but since I updated other logic in the custom control, when I test this custom control the Foo even is no longer raised. Stepping through...
Visual Studio .NET "Setup Project" (3 replies)
microsoft.public.dotnet.general
I don't know how "Condition" works ? If some of you know ? If you have a sample concerning a simple project which installs COM object with conditions specified by the user during the installation.
Will DOTNET ever be cross platform ? (12 replies)
microsoft.public.dotnet.general
I know MS probably wants us to always use Windows etc etc but that doesn't look like its going to happen so .... will they ever release DOTNET for other platforms ? If not why not ;) C
Concurrency violation (2 replies)
microsoft.public.dotnet.general
I am trying to update a row in a table, but I receive a 'Concurrency violation' error. I am filling a 'disconnected' DataRow using data from a Web Form. The data in the Web Form already existings in the database, I am simply trying to edit and save the changes. I am not using persistance of any sort. What am I missing? Thanks, Craig Buchanan Here's the code .... DS.table(0).row(0).NewRow DS.table(...
FileIOPermission does not work ! (2 replies)
microsoft.public.dotnet.general
I run a .NET dll and a COM dll on a WebServer, using IIS5. The WebServer is part of a server farm, and needs to access other computers on the server farm LAN. My problem is that I cannot access files on these other computers from the .NET dll, but can just fine from my COM dlls. My .NET code is something like this: using System; using System.IO; using System.Security.Permissions; ...... FileIOPerm...
Alternatives to XmlTextReader.Close()? (2 replies)
microsoft.public.dotnet.general
Hi. If I have a method that accepts a Stream object and inside, I enclose it inside an XmlTextReader object, like so: XmlTextReader reader new XmlTextReader( stream ); When I'm done with the reader, I don't want to call reader.Close() as it would also close the Stream object, which I don't want to happen. If I do not call reader.Close(), will I not be freeing up any resources that the XmlTextReade...
Streaming Object Problem with Cryptography (2 replies)
microsoft.public.dotnet.general
When I use the code below, all seems to work until the line that returns the intLenRead value. It always comes out as 0. There is valid data in the input byte array. Anyone have any suggestions? Jeff Jones Marietta, GA To reply to me, remove the NOSPAM from the email address. Option Strict On Option Explicit On Imports System.IO Imports System.Security Imports System.Security.Cryptography Imports ...
Specified cast is not valid. (3 replies)
microsoft.public.dotnet.general
I've created a Collection: Private SQLParameters As New Collection() Added values to the collection: SQLParameters.Add(New System.Data.SqlClient.SqlParameter("@Abstract", System.Data.SqlDbType.NVarChar, 255, "Abstract").Value Value) When I try to iterate thru the collection: Dim SQLParam As System.Data.SqlClient.SqlParameter, X As String For Each SQLParam In SQLParameters X X & SQLParam.SourceColu...
Determining Drive Types from .NET SDK (3 replies)
microsoft.public.dotnet.general
I wish to determine what kind of drive I am dealing with from within the ..NET Framework: Floppy, Fixed, Removable, CD, etc. 1. I know how to get string representations of drives via the System.IO.Directory.GetLogicalDrives() method. 2. I know how to get directory information via the System.IO.FileInfo(drive).Attributes. I want to know how to determine what drive type I am working with from within...
#INCLUDE does not work (7 replies)
microsoft.public.dotnet.general
Hi! In normal ASP, I can do this for include an ASP page for do some generic task... %@ Language VBScript % HTML % ScriptTimeout 900 % ! #include file "logger.asp" TITLE ........ Now, in ASP.NET, it does not work. How can I get this functionality in ASP.NET? We have a lot of archives (and #INCLUDES ) like this, that we use for customize pages for or customers... thanks pd: I remember that a guy as...
Get Windows Username (4 replies)
microsoft.public.dotnet.general
How do you get the Username on windows 2000 or XP with VB .net? I did it alot with VB 6 but just want to know if there is a new way with .net. Thanks. James
Multiple data readers in single connection (6 replies)
microsoft.public.dotnet.general
Code snippet below. We are trying to pull multiple recordsets out of a database (SQL Server 2K) using data readers and a single connection. We get an error saying: "There is already an open datareader associated with this connection which must be closed first." This function below is called multipe times, and this is what we use to return the data reader. Any ideas on how we can get this function ...
How does a datatable get a reference to a dataset when using "Dataset.Tables.Add(datatable)" (4 replies)
microsoft.public.dotnet.general
Hi, I was just wondering how a datatable gets the reference to a dataset, when using the following code that pops up the datasetname. code Dim a As New DataSet() Dim b As New DataTable() a.Tables.Add(b) Msgbox (b.DataSet.Datasetname) /code b.DataSet is readonly. Thanks for your help, Christian
Image PropertyItem problem saving back to file (5 replies)
microsoft.public.dotnet.general
I have worked out how to load and change bitmap propertyitems my problem is I can not save the changes back to the same file (exception generated) as I believe file is in use (by GDI ?). I can save them to another file no problem. If I create a "New Bitmap" to hold a copy of the bitmap it does not carry the propertyitems with it. If I clone it I believe the link to the file is maintained by GDI ? ...
Newbie Question - Tab Box & List Box (2 replies)
microsoft.public.dotnet.general
I've got a form with a listbox and a (multi page) tab box. The tab box will have the employees information...name, address phone, hire date, etc. What I want is the listbox to show the employees name, and when the persons name is clicked on, his corresponding information should show up in the tab box. Can someone please direct me where to get help with this? I can't seem to find anything in the kn...
"monitoring" C# methods invocation (4 replies)
microsoft.public.dotnet.general
Hello ! I am new to C# and I have encountered the following problem. I would like to develop classes which would 'monitor' users' operations on the database using ADO.NET data providers classes. Let's say user operates on db using Sql/OleDbConnection, Sql/OleDbCommand, Sql/OleDbDataAdapter, etc. I would like to monitor users method invocations on these classes e.g. Sql/OleDbConnection.Open()/Close...
Question about Reflection (2 replies)
microsoft.public.dotnet.general
Is it possible to use reflection to obtain a reference to an instance of a class given the instance name in string form? If so, what class/method can do this?
Passing Logon Id to secure page (2 replies)
microsoft.public.dotnet.general
Hi, How can I pass a value from a login page to the page it loads? I want to have the user id passed after calling FormsAuthentication.RedirectFromLoginPage()} Thanks!
Databinding to Custom Data Classes (3 replies)
microsoft.public.dotnet.general
To reiterate a previous question.... How can I write my own data class to be able to provide data to both web controls and winforms controls? I should be able to implement one of the various interfaces just as the MS clases do. There is no gaurantee of the origin of my data it could be from serial devices ip devices etc. not a database and not ADO. So ..., where is documentation on how to implemen...
DataColumn MaxSize attribute with VarChars (2 replies)
microsoft.public.dotnet.general
I am working with a dataset with column datatypes mapped to SQL Server 2000 datatypes, specifically using System.Data.SqlTypes.SqlString. I am having problems with the DataColumn's MaxSize property which works OK if the datatype is defined as System.String but returns an error message when used with the 'SqlTypes'. The error is: "MaxLength applies to string data type only. You cannot set Column 'x...
Save and Cancel (3 replies)
microsoft.public.dotnet.general
I am building a basic data editing form in ASP.NET that contains a Save button and a Cancel button. I have them both set up as Submit inputs right now. In ASP, I could identify which button was clicked by checking the Count of each button after the form was submitted. What is the best way to handle the Save and Cancel buttons in ASP.NET? Should I make the Cancel just a link back to the form that c...
Why .Net? (5 replies)
microsoft.public.dotnet.general
I have a large project starting at work and I would like to develop the solution with .Net. But I have to create a justification document for it. Any suggestions on the key points to put across to get the business to agree to a .Net development project?
How do I terminate a TextBox entry with the ENTER Key (2 replies)
microsoft.public.dotnet.general
How can I terminate a TextBox entry with the ENTER Key? instead of having to click an OK button. Enter Student ID [12345(Enter)]
Auto scrolling a textbox control (2 replies)
microsoft.public.dotnet.general
Hello, Does anyone know how it can auto scroll a textbox control? I'm using one to display a log to which I append data. I'd like the textbox to scroll down in pace with the data I'm appending. (I'm developing in C#.) Thanks, Ben
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com