Re: [DOTNET] Urgent pls -script engine

2002-06-14 Thread george antony
hi I want the .net code itself to be executed as a script. The user enters a .net code..The whole code should execute as a script.. regards gan --- "Collins, Michael G" <[EMAIL PROTECTED]> wrote: > Here is some sample code I created a few days back. > This is a WinForm application. > > Watch for

Re: [DOTNET] ADO.NET Roundtrip DataAdapter Question

2002-06-14 Thread Beauchemin, Bob
Manual control means that you can hook the DataAdapter.Update before an individual update is sent to the database (in its Updating event) and do anything with the pameterized statement there, including reconstructing the statement to use less parameters (update based on only changed columns, on

Re: [DOTNET] ADO.NET Roundtrip DataAdapter Question

2002-06-14 Thread Matthew Hunter
Thanks Bob, I guessed I used the term 'connect' where i was actually thinking 'talk' - sorry about that. When you say "manual control" does that mean not using the dataadapter FILL and UPDATE to talk to the database (ie. just executing the command object directly)? PS. Don't suppose your book i

Re: [DOTNET] ADO.NET Roundtrip DataAdapter Question

2002-06-14 Thread Beauchemin, Bob
Oh, and please post this to the new newsgroups. A lot of folks have gone on digest mode. Or unsubscribed to this one entirely. Thanks, Bob -Original Message- From: Beauchemin, Bob Sent: Friday, June 14, 2002 7:11 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] ADO.NET Roundtrip DataAdap

Re: [DOTNET] ADO.NET Roundtrip DataAdapter Question

2002-06-14 Thread Beauchemin, Bob
It doesn't connect to the database 7 times, but it would make 7 round trips. By default; unless you code it differently, remember there are a couple of hooks in the process, including complete manual control. It does this in order to judge success or failure of each action statement (0 or non-z

[DOTNET] how to marshal STA created interface to MTA in managed code?

2002-06-14 Thread Frank Colbert
Hi, I have test client COM component created in an STA. I want to pass this interface into managed code. I then want to forward this interface on to other managed components asynchronously via BeginInvoke on a delegate object. I undertstand that the system will create MTA threads to do this an

[DOTNET] ADO.NET Roundtrip DataAdapter Question

2002-06-14 Thread Matthew Hunter
Guys, When using the SQLDataAdapter or OLEDBDataAdapter to talk to the database, if you set each of the commands (ie. Select, Insert, update and delete) how many round trips does it do to the database? For example, obviously the FILL function would use the Select statement and this would only

Re: [DOTNET] Performence of SqlDataAdapter.Fill

2002-06-14 Thread Sean Greer (SBI-Chico)
Well, you could modify your stored procedure to look like this: set rowcount = @rows select * from SomeTable set rowcount = 0 Where @rows is a parameter that is passed into the procedure...or if you only want one, just hard code it. My understanding is that 'set rowcount' is more efficient than

Re: [DOTNET] Performence of SqlDataAdapter.Fill

2002-06-14 Thread Lars Löfström
Modify the SQLstring to SELECTWHERE... or probably even better: use a parameter for the stored procedure. -- Lasse Löfström -Ursprungligt meddelande- Från: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]]För Andreas Håkansson Skickat: den 15 juni 2002 01:31 Till: [EMAI

[DOTNET] Test

2002-06-14 Thread Dmitry & Elena Zaslavsky
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

[DOTNET] Performence of SqlDataAdapter.Fill

2002-06-14 Thread Andreas Håkansson
I'm currently writing a class that acts as a collection that sits ontop of a database, i.e it fetches the data from the database when it's requested. I'm adding an indexer to my class to get item x, which also means row x in the query result. What I'm doing now is use a SqlCommand setup to call m

Re: [DOTNET] TransformFinalBlock returns

2002-06-14 Thread Tarik Soulami
This is because we use PKCS style padding, and we need to add a block of padding. So 24 bytes will yield 32 bytes of encrypted text. When this encrypted bytes will be decrypted, we will know how to remove the 8 bytes of padding and will return the original 24 bytes of plain text. Thanks, --Tar

Re: [DOTNET] MS SOAP implementation - cross platform issues?

2002-06-14 Thread Dan Souk
Thanks for the resources Bill. I'll pass these on and see if that triggers some more specific questions. -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Bill Conroy Sent: Friday, June 14, 2002 11:03 AM To: [EMAIL PROTECTED] Subject:

Re: [DOTNET] Urgent pls -script engine

2002-06-14 Thread Collins, Michael G
Here is some sample code I created a few days back. This is a WinForm application. Watch for line breaks where they don't belong. (Wonderfull email) Make sure you include a reference to the MSScriptingControl: 1) Right click on 'References' in the Solution Explorer 2) Click on Add Reference 3) C

[DOTNET] Very odd experience

2002-06-14 Thread Erick Thompson
I just had a very odd experience in VS.NET. I was debugging a WinForms application, and had disabled all breakpoints. I closed the Window, which stopped debugging. I had all the right options (start debugging, etc) and none of the debugging options (pause button, etc). My application uses a Proces

Re: [DOTNET] Put ascii to char

2002-06-14 Thread Mattias Sjögren
>Sure, you need to be explicit about the assignment and cast that's all. Try >this instead: > > >char escape = (char)27; > Two more options: char escape = '\x1B'; char escape = '\u001B'; Mattias === Mattias Sjögren [EMAIL PROTECTED] You can read messages from the DOTNET archive, unsubscribe

Re: [DOTNET] IDispose and Determinstic Finalisation?

2002-06-14 Thread Eric Gunnerson
If you go to http://www.gotdotnet.com/team/csharp/information/default.aspx, you'll find a link to an article Brian Harry wrote that talks about why things are the way they are in great detail. -Original Message- From: Rolls, Robert [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002

[DOTNET] TransformFinalBlock returns

2002-06-14 Thread Valentina Shkolnikov
Why the 'ICryptoTransform.TransformFinalBlock' method returns an array larger than the .OutputBlockSize property states? As a result I'm getting discrepancy when encrypting-decrypting. Is this an undocumented feature, or I'm doing something wrong way: ... Private mCryptor As ICryptoTransform Pri

[DOTNET] OT: FYI Anyone heard about F#.

2002-06-14 Thread John
Hi people, Just saw this and thought it might be of interest to some of you. http://research.microsoft.com/projects/ilx/fsharp.htm Regards, John You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] ASP.NET Session Expiration

2002-06-14 Thread Houck, Rob
Gotcha. Good tip. Thanks for the info! -Original Message- From: Bryan Batchelder [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 1:18 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] ASP.NET Session Expiration Good point. Just be sure to close the browser to start a new session

Re: [DOTNET] Put ascii to char

2002-06-14 Thread Marsh, Drew
Eric Shiau [mailto:[EMAIL PROTECTED]] wrote: > I need to put non-printable characters to char. e.g., > > char escape=27; // which is Escape character > > above statement is valid on C/C++, but for C#, I got the > following error > > error CS0031: Constant value '27' cannot be converted to a 'cha

[DOTNET] Put ascii to char

2002-06-14 Thread Eric Shiau
This might be a very simple question, but I just cannot find solution through any web tutorial. I need to put non-printable characters to char. e.g., char escape=27; // which is Escape character above statement is valid on C/C++, but for C#, I got the following error error CS0031: Constant va

Re: [DOTNET] MS SOAP implementation - cross platform issues?

2002-06-14 Thread Dan Souk
Thanks. -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Christoph Sent: Friday, June 14, 2002 12:10 PM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] MS SOAP implementation - cross platform issues? There was an architect webcast recen

Re: [DOTNET] ASP.NET Session Expiration

2002-06-14 Thread Bryan Batchelder
Good point. Just be sure to close the browser to start a new session if you mess with the code that handles session data. --b Bryan Batchelder eBusiness Consultant ConnectWise, Inc. 813-935-7100 x 425 > -Original Message- > From: Thomas Tomiczek [mailto:[EMAIL PROTECTED]] > Sent

Re: [DOTNET] MS SOAP implementation - cross platform issues?

2002-06-14 Thread Christoph
There was an architect webcast recently on interop between MS and J2EE WebServices. Maybe this has some answers [1] Christoph Schittko Software Architect Mshow - a division of InterCall [1] http://www.microsoft.com/usa/Webcasts/ondemand/894.asp - Original Message - From: "Dan Souk" <[EMA

Re: [DOTNET] ASP.NET Session Expiration

2002-06-14 Thread Thomas Tomiczek
But be carefull in this case - when you chane the data stored in the session object, you need to handle this manually. Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -Original Message- From: Marsh, Drew [mailto:[EMAIL PROTECTED]] Sent: Freitag, 14. Juni 2002 19:

Re: [DOTNET] ASP.NET Session Expiration

2002-06-14 Thread Bryan Batchelder
Copying DLLs to your production server will have the same effect. I have some largeish websites setup using StateServer and haven't noticed any detrimental effect...and they are all using the same SQL Server (which is running the Session State Service). I am sure you'll be fine - well as sure as

Re: [DOTNET] MS SOAP implementation - cross platform issues?

2002-06-14 Thread Dan Souk
Thanks Patrick. If I had to guess, he's probably referring to serializing complex data types, but without specifics, who knows. -Original Message- From: The DOTNET list will be retired 7/1/02 [mailto:[EMAIL PROTECTED]] On Behalf Of Patrick Steele Sent: Friday, June 14, 2002 10:57 AM To: [

Re: [DOTNET] ASP.NET Session Expiration

2002-06-14 Thread Marsh, Drew
Houck, Rob [mailto:[EMAIL PROTECTED]] wrote: > Or.. Am I seeing something that only would occur on our > development servers (caused by the *build* operation) and > would not happen in production (caused by copying new DLL's > to the production box)? I'm quite sure you'll see this in both scenar

Re: [DOTNET] ASP.NET Session Expiration

2002-06-14 Thread Houck, Rob
Bryan, Good point. We're going live with the application in a couple of weeks, and it currently hosts between 200-250 concurrent users (with spikes to 500). I didn't want to be in a situation where updating the production software would cause everyone to loose their session.. :) Or.. Am I seei

Re: [DOTNET] Comparing char to ascii char

2002-06-14 Thread Marsh, Drew
I wrote: > Also, you can also convert > characters and strings to ASCII at runtime using > System.Encoding.ASCII.GetBytes/GetString(). I neglected to mention that a sinlge Char (as opposed to an array of Chars) can easily be converted to a byte at runtime just by calling it's IConvertible::ToByt

Re: [DOTNET] ASP.NET Session Expiration

2002-06-14 Thread Bryan Batchelder
I haven't noticed any detrimental affects from switching to StateServer vs. InProc. You can always go back to InProc on your production machine, though. --b Bryan Batchelder eBusiness Consultant ConnectWise, Inc. 813-935-7100 x 425 > -Original Message- > From: Houck, Rob [mailto:

[DOTNET] ASP.NET Session Expiration

2002-06-14 Thread Houck, Rob
Hi all, In doing some development, I noticed that every time I do a build on our development server, any attached users loose their current session. I'm (obviously) using the default inproc session management. I believe I can simply use out of process session management to correct this behavior

Re: [DOTNET] Comparing char to ascii char

2002-06-14 Thread Marsh, Drew
Christopher Slowik [mailto:[EMAIL PROTECTED]] wrote: > I'm using c# and need to compare each character in a string > to see if its an ascii dec 022. How do you declare an ascii > char in c#. Does c# have a chr function. I don't seem to be > able to find anything. TIA The System.Char datatype

[DOTNET] Comparing char to ascii char

2002-06-14 Thread Christopher Slowik
Hi, I'm using c# and need to compare each character in a string to see if its an ascii dec 022. How do you declare an ascii char in c#. Does c# have a chr function. I don't seem to be able to find anything. TIA -Chris

Re: [DOTNET] MS SOAP implementation - cross platform issues?

2002-06-14 Thread Bill Conroy
Good place to start...: http://www.xmethods.net/ilab/ Here are MS SOAP 2.0 interop results specifically: http://www.mssoapinterop.org/stk/ClientResults.asp -Bill Conroy On Fri, 14 Jun 2002 10:49:17 -0500, Dan Souk <[EMAIL PROTECTED]> wrote: >I got a very general question from someone the othe

Re: [DOTNET] MS SOAP implementation - cross platform issues?

2002-06-14 Thread Patrick Steele
[NOTE: This list is closing on 7/1. This conversation should probably be moved to DOTNET-WEB]. I have used .NET to call some Java web services hosted on WebSphere 3.5.4 (using Apache SOAP). The WSDL generated by the Java tools did need some massaging for WSDL.EXE to understand it, but once that

[DOTNET] MS SOAP implementation - cross platform issues?

2002-06-14 Thread Dan Souk
I got a very general question from someone the other day that MS' implementation of SOAP was 'not terribly cross-platform friendly'. I tried to get more specifics but wasn't able to since this guy was more of a manager than a developer. In any event, I haven't done any cross-platform work and am f

Re: [DOTNET] Urgent pls -script engine

2002-06-14 Thread Shawn Wildermuth
Oh, it's urgent...i'll get on it right away : ) Thanks, Shawn Wildermuth [EMAIL PROTECTED] > -Original Message- > From: The DOTNET list will be retired 7/1/02 > [mailto:[EMAIL PROTECTED]] On Behalf Of george antony > Sent: Friday, June 14, 2002 10:28 AM > To: [EMAIL PROTECTED] > Subject

Re: [DOTNET] Xsl style sheet

2002-06-14 Thread Marsh, Drew
george antony [mailto:[EMAIL PROTECTED]] wrote: > > Hi all > can any one tell me how to apply XSL stylesheet to an > xml file in .net You need to use the System.Xml.XslTransform class. Check out the documentation here[1]. HTH, Drew [ .NET MVP | weblog: http://radio.weblogs.com/0104813/ ] [1]

[DOTNET] Urgent pls -script engine

2002-06-14 Thread george antony
hi all Has anyone worked with script engine in .Net. How to execute the .net code using script engine progromatically.. regards gan __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com You can read me

[DOTNET] Xsl style sheet

2002-06-14 Thread george antony
Hi all can any one tell me how to apply XSL stylesheet to an xml file in .net regards gan __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com You can read messages from the DOTNET archive, unsubscribe

Re: [DOTNET] IDispose and Determinstic Finalisation?

2002-06-14 Thread Andreas Häber
See http://www.sellsbrothers.com/tools/RotorRefCounting.doc ;-) (and also the discussion over at DOTNET-CLR) Andreas Häber - Original Message - From: "Rolls, Robert" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 5:24 AM Subject: Re: [DOTNET] IDispose and Determin

Re: [DOTNET] ADO.NET and Dispose

2002-06-14 Thread Kevin Kenny
Ian/Dan, >>> "Kevin E. Kenny" <[EMAIL PROTECTED]> wrote: >>> > Where there is a Close() it will invariably call Dispose(). >>> >>> For SqlConnection that's not quite true. Close() doesn't call >>Dispose(). >>> But Dispose() does call Close(). Dispose() also clears the >>connection string. >>>

Re: [DOTNET] sms application

2002-06-14 Thread Mark Towse
Try the following link. I havent had a go at it myself but there seems to be some useful information there. http://www.programmersresource.com/tips/tip108.asp You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.de

Re: [ADVANCED-DOTNET] Evaluation of boolean expressions.

2002-06-14 Thread Johnson, Brian
The C# ECMA Spec shows that (14.11 - Conditional Logic operators): "* The operation x || y corresponds to the operation x | y, except that y is evaluated only if x is false." This is also known as "short-circuit" evaluation, and is also a feature of C++. Hope this helps Brian Johnson -Ori

Re: [ADVANCED-DOTNET] SqlDataReader

2002-06-14 Thread Ben Kloosterman
This will be slower than the Dataset method. The reason the Dataset is slower for Web operations is the time it takes to build the Dataset object. Building an XML document will not be quick - though XML is great for batch updates. Most performance tests with DataReader vs Datasets continually cre

Re: [ADVANCED-DOTNET] Data Access API

2002-06-14 Thread Rune Christensen 8397
If your browser is IE you can open it there and execute "Save As..." Regards, Rune Christensen -Original Message- From: Syed.Alam [mailto:[EMAIL PROTECTED]] Sent: 13. juni 2002 19:37 To: [EMAIL PROTECTED] Subject: Re: [ADVANCED-DOTNET] Data Access API Can anyone tell me how to convert

Re: [ADVANCED-DOTNET] Data Access API

2002-06-14 Thread Kevin Hector
easy - use google :) msdn.microsoft.com/library/en-us/dndotnet/html/dotnetperftips.asp >Can anyone tell me how to convert > >ms-help://MS.MSDNQTR.2002APR.1033/dndotnet/html/dotnetperftips.htm > >to http://? > >Thanks _ Chat with

[ADVANCED-DOTNET] AW: [ADVANCED-DOTNET] Evaluation of boolean expressions.

2002-06-14 Thread Martin Wawrusch
Hi Stefan, This is a defined part of the language, you can use it safely. It will never change. Martin -Ursprüngliche Nachricht- Von: Moderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED]] Im Auftrag von Stefan Holdermans Gesendet: Freitag, 14. Juni 2002 08:57 An: [EMA

Re: [DOTNET] ADO.NET and Dispose

2002-06-14 Thread Dan Green
> Dispose() also clears the connection string. Does that have an affect on the connection pool? Dan Green [ http://dotnetdan.com -- putting the dan in .net ] > -Original Message- > From: The DOTNET list will be retired 7/1/02 > [mailto:[EMAIL PROTECTED]] On Behalf Of Ian Griffiths > Se

Re: [DOTNET] ADO.NET and Dispose

2002-06-14 Thread Ian Griffiths
"Kevin E. Kenny" <[EMAIL PROTECTED]> wrote: > Where there is a Close() it will invariably call Dispose(). For SqlConnection that's not quite true. Close() doesn't call Dispose(). But Dispose() does call Close(). Dispose() also clears the connection string. -- Ian Griffiths DevelopMentor You

Re: [DOTNET] OT: spaces in subject line

2002-06-14 Thread Ian Griffiths
It is true that the problem results from a combination of factors. But the fact remains that according to the specs it is a bug in the client. (Sorry - MUA is the standard term for email client...) Clients are required to ignore this stuff. Clients that don't are in error. Now the infrastruct