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
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
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
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
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
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
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
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
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
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
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
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
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:
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
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
>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
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
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
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.
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
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
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
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
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
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
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:
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
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: [
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
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
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
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:
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
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
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
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
[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
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
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
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]
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
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
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
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.
>>>
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
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
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
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
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
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
> 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
"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
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
53 matches
Mail list logo