Re: [DOTNET] How can I write a stream to a sql server database?

2002-05-24 Thread Duncan Smart
@blob"; SqlCommand cmd = new SqlCommand(sql, ...); cmd.Parameters.Add("@blob", buffer); cmd.ExecuteNonQuery(); HTH, Duncan Smart On Thu, 23 May 2002 13:22:34 -0700, Shannon Carver <[EMAIL PROTECTED]> wrote: >How can I write a stream to a sql server database table? >

Re: [DOTNET] Can an EXE look for a class in a different DLL than what it was originally compiled against?

2002-05-24 Thread Duncan Smart
Kenneth, How about using "codeBase" in the .config file? e.g. ... HTH, Duncan Smart On Thu, 23 May 2002 16:57:17 -0700, Kenneth Kasajian <[EMAIL PROTECTED]> wrote: >Without going into the details as to why, I'd li

Re: [DOTNET] OT: N-Tier Design

2002-05-18 Thread Duncan Smart
Robert, During your deliberations, this may be of interest: http://martinfowler.com/isa/ Cheers, Duncan Smart You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] creating Messaging Port on a remote Biztalk server

2002-05-14 Thread Duncan Smart
he VB.NET equivalent shouldn't be too different. Cheers, Duncan Smart On Mon, 13 May 2002 00:18:44 -0700, george antony <[EMAIL PROTECTED]> wrote: >Hi all > Is it possible to connect to a remote biztalk server >and create a port on it . I am trying to do this in >VB .Net . ca

Re: [DOTNET] Multithreaded v. Singlethreaded

2002-05-07 Thread Duncan Smart
No, you might be confusing it with your having to have [STAThread] specified on Main when you are *hosting* IE in your app On Tue, 7 May 2002 09:38:08 -0500, franklin gray <[EMAIL PROTECTED]> wrote: >[STAThread] is required if your app is run from IE, correct? If so, is MS putting out a browse

[DOTNET] IBM and MS: "Security in a Web Services World"

2002-05-07 Thread Duncan Smart
Just posted to MSDN: "A Joint White Paper from IBM Corporation and Microsoft Corporation" http://msdn.microsoft.com/library/en- us/dnwssecur/html/securitywhitepaper.asp Might be an interesting read... once you get past all of the legalese, such as: ...THERE IS NO WARRANTY OR CONDITION OF TITLE,

Re: [DOTNET] Posting files via HttpRequest

2002-05-03 Thread Duncan Smart
s(xml); myHttpWebRequest.GetRequestStream().Write(buffer, 0, buffer.Length); Cheers, Duncan Smart == On Sat, 4 May 2002 11:18:29 +1200, Dean Cleaver <[EMAIL PROTECTED]> wrote: >I have a project where I need to post XML files to a secured server. >They provided a perl sample, which isn'

Re: [DOTNET] Anyone currently using ACT or WAST to test webservices?

2002-05-03 Thread Duncan Smart
Check out Red Gate Software's "Advanced .NET Testing" tool: http://www.red-gate.com/load_testing.htm Cheers, Duncan Smart = You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.

Re: [DOTNET] Aiming to high!?!

2002-04-30 Thread Duncan Smart
e point in the fusture there will be a more esoteric persistency mechanism (called ObjectSpaces) but I think DataSets are good enough for most scenarios. Hope that helps, Duncan Smart == On Tue, 30 Apr 2002 01:27:00 +0200, =?iso-8859-1?Q?Andreas_H=E5kansson?= <[EMAIL PROTECTED]&

Re: [DOTNET] Serializing to SQL Table

2002-04-24 Thread Duncan Smart
Field", myByteArray)) HTH, Duncan Smart On Tue, 23 Apr 2002 08:46:00 +0100, Wayne Enis <[EMAIL PROTECTED]> wrote: >I can successfully serialize my object to a file (binary mode), can any one >give me any pointers for serializing to SQL2000. > >Thanks > >Wayne

Re: [DOTNET] Cookieless Forms Authentication

2002-04-24 Thread Duncan Smart
Stefan, AFAIK, there's no such thing as cookieless Forms Authentication. Forms Auth relies upon cookies. Either user Basic or Windows authentication or roll your own (using cookieless Session perhaps???). Cheers, Duncan Smart On Wed, 24 Apr 2002 11:05:57 +0100, Stefan

Re: [DOTNET] Probing and web.config

2002-04-24 Thread Duncan Smart
/wa.exe?A2=ind0204B&L=DOTNET&P=R13998 Cheers, Duncan Smart On Tue, 23 Apr 2002 01:03:08 -0700, =?iso-8859-1?Q?Hans-J=F8rgen_Belseth?= <[EMAIL PROTECTED]> wrote: >How do you set up codebase, probing etc with web.config? >I've tried the following in web.

Re: [DOTNET] How do you bind a DataGrid HyperLinkColumn to more than one field ?

2002-04-24 Thread Duncan Smart
Guys - here's how you do it, In the Property Builder for your DataGrid, in Columns, select your Hyperlink column, and click the "Convert to Template Column" link at the bottom of the dialog. Now come out of the Property Builder and right-click the DataGrid and Choose "Edit Template" and choose y

Re: [DOTNET] Enumerating encodings

2002-04-24 Thread Duncan Smart
(p.PropertyType == typeof(Encoding)) { Encoding e = (Encoding)p.GetValue(null,null); Console.WriteLine("{0},{1},{2}", e.CodePage, e.EncodingName, e.BodyName); } } Hope that helps!, Duncan Smart On Tue, 23 Apr 2002 20:30:09 -0700, Kirill 'Big K' Katsnelson <[

Re: [DOTNET] C# Ascii, Asc, Char, Chr functions?

2002-04-23 Thread Duncan Smart
ers. You should consider using UTF8 or Unicode in this day and age... Cheers, Duncan Smart On Tue, 23 Apr 2002 07:13:32 -0600, Weakliem, Gordon <[EMAIL PROTECTED]> wrote: >Chr -> System.Char.GetNumericValue(char) >Asc -> System.Char.Parse(String) > > > >-Origi

Re: [DOTNET] Advanced WinForms class

2002-04-23 Thread Duncan Smart
RT/SYLLABI/2555APRELIM.ASP and "2565—Developing Microsoft .NET Applications for Windows (VB.NET)" http://www.microsoft.com/TRAINCERT/SYLLABI/2565APRELIM.ASP Cheers, Duncan Smart Aris Education (UK) On Mon, 22 Apr 2002 18:22:05 -0700, Adam Senn <[EMAIL PROTECTED]>

Re: [DOTNET] C# Ascii, Asc, Char, Chr functions?

2002-04-23 Thread Duncan Smart
: byte charCode = Encoding.ASCII.GetBytes("A")[0]; Hope that helps, Duncan Smart Aris Education(UK) = On Tue, 23 Apr 2002 08:00:40 -0500, Edward Ferron <[EMAIL PROTECTED]> wrote: >How do I get Asc, Ascii, Char Chr functions in C#? Is there another class &

Re: [DOTNET] Suggestions: How to generate static html pages via .NET

2002-04-22 Thread Duncan Smart
Going slightly offtopic, but regarding URL Rewriting check out the C++ "Friendly ISAPI" in the docs, that does URL Rewriting: "ISAPIFilter Sample: Maps URLs to Parameterized Queries" ms-help://MS.VSCC/MS.MSDNVS/vcsample/html/vcsamISAPIFilterSampleMaps.htm So you can map http://myserver/Pro

Re: [DOTNET] StyleSheet Changes not effected

2002-04-22 Thread Duncan Smart
ten will you be changing the CSS when they start using it?). Cheers, Duncan Smart [EMAIL PROTECTED] On Mon, 22 Apr 2002 12:58:36 +0530, LeTS <[EMAIL PROTECTED]> wrote: >Hi, >When we change the Style Sheet properties linked to a page the >changes are not getting effected

Re: [DOTNET] Suggestions: How to generate static html pages via .NET

2002-04-22 Thread Duncan Smart
; %> and the page will have a "snapshot" generated the 1st time somebody hits it, and then subsequent requests are served by the snapshot (i.e. no subsequent db hit). If you want to modify the page then the snapshot will be automatically regenerated on the next hit -- neat eh? Cheers

Re: [DOTNET] problem in data set type casting.

2002-04-22 Thread Duncan Smart
that makes sense to you too! Cheers, Duncan Smart [EMAIL PROTECTED] On Sun, 21 Apr 2002 22:56:38 -0700, george antony <[EMAIL PROTECTED]> wrote: >The Data Access Application blocks gives a set of >methods which can be used to return a >dataset,datareader etc . This dataset has to b

Re: [DOTNET] Moving an ADO.Net Dataset (Datatable) into an ADODB.Recordset...

2002-04-22 Thread Duncan Smart
"Easy" as in automatic: no, not as far as I know. "Easy" as in "do it yourself" -- well yes: shouldn't be too difficult to enumerate the DataTable's Columns and add these fields to the Recordset, then enumerate the DataTable's Rows and then add the v

Re: [DOTNET] Saving application settings...

2002-04-19 Thread Duncan Smart
Had a delegate of mine ask the same question recently - here's my reply. (key point is System.Windows.Forms.Application.*UserAppDataPath* property which is designed especially for user-specific application settings): -- A couple of guidelines. If you are storing user preferences then the appl

Re: [DOTNET] Showing a tooltip manually?

2002-04-11 Thread Duncan Smart
ndows messages to its container. Cheers, Duncan Smart Aris Education (UK) --- On Wed, 10 Apr 2002 12:19:10 -0700, Chris Sells <[EMAIL PROTECTED]> wrote: >I'd like to show a tooltip based on the HTML onmouseover event in a >hosted WebBrowser control. I'm catc