Re: vb.net question

2011-12-13 Thread djones147
End is very bad,  replace it with application.exit.  

End will leave threads / resources active/open.

Davy
Sent from my BlackBerry® wireless device

-Original Message-
From: Peter Maddin petermad...@iinet.net.au
Sender: ozdotnet-boun...@ozdotnet.com
Date: Tue, 13 Dec 2011 16:59:13 
To: 'ozDotNet'ozdotnet@ozdotnet.com
Reply-To: ozDotNet ozdotnet@ozdotnet.com
Subject: vb.net question

I do not code in vb.net but have been given vb.net source to look at.

 

I have noticed that I have an event handler coded as

 

Private Sub _testCatalogue_ViewerNewVersion(ByVal sender As Object,
ByVal e As System.EventArgs) Handles _testCatalogue.ViewerNewVersion

End

End Sub

 

When it hits the End statement the application closes. I am expecting that,
but I have tried to find out where this 'End' is documented.

Is there a list of vb.net commands that specifies what this does. I would
have thought that closing the main form would close the application, but
this End seems to do this ok.

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285 (Monday, Wednesday,Friday)

Phone : +618 9346 4372 (Tuesday, Thursday)
Mobile: 0423 540 825 
E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 




RE: vb.net question

2011-12-13 Thread Bill McCarthy
It should be in the language documentation: look for End Statement.  
For windows.forms it calls on Environment.Exit

|-Original Message-
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of Peter Maddin
|Sent: Tuesday, 13 December 2011 7:59 PM
|To: 'ozDotNet'
|Subject: vb.net question
|
|I do not code in vb.net but have been given vb.net source to look at.
|
|
|
|I have noticed that I have an event handler coded as
|
|
|
|Private Sub _testCatalogue_ViewerNewVersion(ByVal sender As Object,
ByVal
|e As System.EventArgs) Handles _testCatalogue.ViewerNewVersion
|
|End
|
|End Sub
|
|
|
|When it hits the End statement the application closes. I am expecting that,
but I
|have tried to find out where this 'End' is documented.
|
|Is there a list of vb.net commands that specifies what this does. I would
have
|thought that closing the main form would close the application, but this
End
|seems to do this ok.
|
|
|
|Regards Peter Maddin
|Applications Development Officer
|PathWest Laboratory Medicine WA
|Phone : +618 6396 4285 (Monday, Wednesday,Friday)
|
|Phone : +618 9346 4372 (Tuesday, Thursday)
|Mobile: 0423 540 825
|E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au The
|contents of this e-mail transmission outside of the WAGHS network are
intended
|solely for the named recipient's), may be confidential, and may be
privileged or
|otherwise protected from disclosure in the public interest. The use,
reproduction,
|disclosure or distribution of the contents of this e-mail transmission by
any
|person other than the named recipient(s) is prohibited. If you are not a
named
|recipient please notify the sender immediately.
|
|
|
|




RE: vb.net question

2011-12-13 Thread Peter Maddin
I found this in the documentation

The End statement stops code execution abruptly, and does not invoke the
Dispose or Finalize method, or any other Visual Basic code. Object
references held by other programs are invalidated. If an End statement is
encountered within a Try or Catch block, control does not pass to the
corresponding Finally block.

Sounds like it should only be used in exceptional circumstances i.e. when
critical/catastrophic errors are encountered

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285 (Monday, Wednesday,Friday)
Phone : +618 9346 4372 (Tuesday, Thursday)
Mobile: 0423 540 825 
E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.
 

-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Bill McCarthy
Sent: Tuesday, 13 December 2011 5:07 PM
To: 'ozDotNet'
Subject: RE: vb.net question

It should be in the language documentation: look for End Statement.  
For windows.forms it calls on Environment.Exit

|-Original Message-
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of Peter Maddin
|Sent: Tuesday, 13 December 2011 7:59 PM
|To: 'ozDotNet'
|Subject: vb.net question
|
|I do not code in vb.net but have been given vb.net source to look at.
|
|
|
|I have noticed that I have an event handler coded as
|
|
|
|Private Sub _testCatalogue_ViewerNewVersion(ByVal sender As Object,
ByVal
|e As System.EventArgs) Handles _testCatalogue.ViewerNewVersion
|
|End
|
|End Sub
|
|
|
|When it hits the End statement the application closes. I am expecting that,
but I
|have tried to find out where this 'End' is documented.
|
|Is there a list of vb.net commands that specifies what this does. I would
have
|thought that closing the main form would close the application, but this
End
|seems to do this ok.
|
|
|
|Regards Peter Maddin
|Applications Development Officer
|PathWest Laboratory Medicine WA
|Phone : +618 6396 4285 (Monday, Wednesday,Friday)
|
|Phone : +618 9346 4372 (Tuesday, Thursday)
|Mobile: 0423 540 825
|E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au The
|contents of this e-mail transmission outside of the WAGHS network are
intended
|solely for the named recipient's), may be confidential, and may be
privileged or
|otherwise protected from disclosure in the public interest. The use,
reproduction,
|disclosure or distribution of the contents of this e-mail transmission by
any
|person other than the named recipient(s) is prohibited. If you are not a
named
|recipient please notify the sender immediately.
|
|
|
|




VB6 calling modal .net dialog

2011-12-13 Thread Greg Keogh
Folks, I have a working .NET Form that runs fine as a modal dialog in
managed apps, it's used to pick an item from a list and it returns the Int32
Id of the selected item. Now I have to make this dialog available to VB6.
I've done plenty of Interop before to wrap managed library methods as
ComVisible, but this is the first time I've tried this with a Window.Forms
class.

 

I presume the VB6 caller can only pass me a HWND, so I ran a few experiments
to see if I could convert a HWND from an NUnit test to an Owner of my
dialog, but I can't figure that out. I then tried HWND to NativeWindow to
ShowDialog(owner) on the caller side, but it doesn't run modal. It's not
looking good so far.

 

I have a feeling I'm heading into a world of pain trying make the modal
behaviour work with a VB6 caller. I can't get any definitive advice from web
searches so far, so I thought I'd ask first to see if anyone has been there
before.

 

Greg



RE: VB6 calling modal .net dialog

2011-12-13 Thread Keir Nathan
Why not just manually disable the parent form while the dialog is visible?  
That's pretty much all a modal dialog is really doing anyway.  If that's not 
enough, the SetParent win32 api function may also help.

Regards,

Nathan Keir
Systems Analyst
John Deere Financial Limited A.C.N. 078 714 646
Australian Credit Licence Number 391484
Incorporated in Queensland, Australia
166-170 Magnesium Drive, Crestmead, QLD, Australia 4132
PO Box 1544, Browns Plains BC, QLD, Australia 4118
+61 7 3802 3274 (office)
+61 7 3802 3142 (fax)
keirnat...@johndeere.commailto:namey...@johndeere.com
www.JohnDeere.com.auhttp://www.johndeere.com.au/
CONFIDENTIALITY. This message, including attachments, may be confidential. If 
you believe this message was sent to you in error, do not read it. If you are 
not the intended recipient, any retention, dissemination, distribution, or 
copying of this communication is strictly prohibited. Please reply to the 
sender that you have received the message in error and delete it.

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Greg Keogh
Sent: Wednesday, 14 December 2011 9:57 AM
To: 'ozDotNet'
Subject: VB6 calling modal .net dialog

Folks, I have a working .NET Form that runs fine as a modal dialog in managed 
apps, it's used to pick an item from a list and it returns the Int32 Id of the 
selected item. Now I have to make this dialog available to VB6. I've done 
plenty of Interop before to wrap managed library methods as ComVisible, but 
this is the first time I've tried this with a Window.Forms class.

I presume the VB6 caller can only pass me a HWND, so I ran a few experiments to 
see if I could convert a HWND from an NUnit test to an Owner of my dialog, but 
I can't figure that out. I then tried HWND to NativeWindow to ShowDialog(owner) 
on the caller side, but it doesn't run modal. It's not looking good so far.

I have a feeling I'm heading into a world of pain trying make the modal 
behaviour work with a VB6 caller. I can't get any definitive advice from web 
searches so far, so I thought I'd ask first to see if anyone has been there 
before.

Greg


Re: VB6 calling modal .net dialog

2011-12-13 Thread Matt Siebert
Quite some time ago I played around with porting a VB6 app to .NET.  It was
too large to do it all at once so I had to look at using .NET for new stuff
and using interop.  It was an internal app and so in the end it didn't have
enough time budgeted to do the work, but I seem to recall modal dialogs
being a rather large stumbling block (brick wall?).

If I understand your scenario correctly, there may be hope.  I have a .NET
app where I set the main form's owner to a window from another process
using a HWND.

The first step is to implement System.Windows.Forms.IWin32Window:

public class Win32Window : IWin32Window
{
public Win32Window(IntPtr handle)
{
this.Handle = handle;
}

public IntPtr Handle { get; private set; }
}

Then once you have your HWND in an IntPtr you could do something like:

var owner = new Win32Window(hwnd);
myForm.ShowDialog(owner);


Maybe this will work in your scenario.

On Wed, Dec 14, 2011 at 9:57 AM, Greg Keogh g...@mira.net wrote:

 Folks, I have a working .NET Form that runs fine as a modal dialog in
 managed apps, it’s used to pick an item from a list and it returns the
 Int32 Id of the selected item. Now I have to make this dialog available to
 VB6. I’ve done plenty of Interop before to wrap managed library methods as
 ComVisible, but this is the first time I’ve tried this with a Window.Forms
 class.

 ** **

 I presume the VB6 caller can only pass me a HWND, so I ran a few
 experiments to see if I could convert a HWND from an NUnit test to an Owner
 of my dialog, but I can’t figure that out. I then tried HWND to
 NativeWindow to ShowDialog(owner) on the caller side, but it doesn’t run
 modal. It’s not looking good so far.

 ** **

 I have a feeling I’m heading into a world of pain trying make the modal
 behaviour work with a VB6 caller. I can’t get any definitive advice from
 web searches so far, so I thought I’d ask first to see if anyone has been
 there before.

 ** **

 Greg



RE: VB6 calling modal .net dialog

2011-12-13 Thread Greg Keogh
Matt, I tried something similar with an nunit test, like this:

 

IntPtr hwnd =
System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle;

var win = new NativeWindow();

win.AssignHandle(hwnd);

var picker = new MyPicker();

var result = picker.ShowDialog(win);

 

I was hoping that this would set the nunit app window to be the owner of the
ShowDialog, but sadly two things go wrong: (1) It's not modal, but that
might be a quirk with using the nunit window (2) The dialog doesn't appear
in the CenterParent position, it goes to screen top-left.

 

Greg

 



Re: VB6 calling modal .net dialog

2011-12-13 Thread Matt Siebert
Sorry, I missed the NativeWindow bit.

I have some other code for doing this (my scenario, native window, out of
process) with WPF windows which is a little different and uses
WindowInteropHelper and the SetWindowLong Win32 API function (because using
just WindowInteropHelper doesn't give modal behaviour).

I'm not sure why my code uses SetWindowLong instead of SetParent like
Nathan suggested.

On Wed, Dec 14, 2011 at 10:38 AM, Greg Keogh g...@mira.net wrote:

 Matt, I tried something similar with an nunit test, like this:

 ** **

 IntPtr hwnd = System.Diagnostics.Process
 .GetCurrentProcess().MainWindowHandle;

 var win = new NativeWindow();

 win.AssignHandle(hwnd);

 var picker = new MyPicker();

 var result = picker.ShowDialog(win);

 ** **

 I was hoping that this would set the nunit app window to be the owner of
 the ShowDialog, but sadly two things go wrong: (1) It’s not modal, but that
 might be a quirk with using the nunit window (2) The dialog doesn’t appear
 in the CenterParent position, it goes to screen top-left.

 ** **

 Greg

 ** **



RE: VB6 calling modal .net dialog

2011-12-13 Thread Bill McCarthy
In VB6 the main window handle is actually a hidden window, so you'd need to
get the form's handle

|-Original Message-
|From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
|boun...@ozdotnet.com] On Behalf Of Greg Keogh
|Sent: Wednesday, 14 December 2011 11:39 AM
|To: 'ozDotNet'
|Subject: RE: VB6 calling modal .net dialog
|
|Matt, I tried something similar with an nunit test, like this:
|
|
|
|IntPtr hwnd =
|System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle;
|
|var win = new NativeWindow();
|
|win.AssignHandle(hwnd);
|
|var picker = new MyPicker();
|
|var result = picker.ShowDialog(win);
|
|
|
|I was hoping that this would set the nunit app window to be the owner of
the
|ShowDialog, but sadly two things go wrong: (1) It's not modal, but that
might be
|a quirk with using the nunit window (2) The dialog doesn't appear in the
|CenterParent position, it goes to screen top-left.
|
|
|
|Greg
|
|




RE: VB6 calling modal .net dialog

2011-12-13 Thread Brendan Tierney

It would be quicker to re-write the pop up form in VB6, and add the .net 
database layer logic as dll with a com wrapper, if there is one, or just 
implement some ado in vb6 for the database stuff. 
 
Or we-write the vb6 stuff in .net :)
 

 From: bill.mccarthy.li...@live.com.au
 To: ozdotnet@ozdotnet.com
 Subject: RE: VB6 calling modal .net dialog
 Date: Wed, 14 Dec 2011 13:49:33 +1100
 
 In VB6 the main window handle is actually a hidden window, so you'd need to
 get the form's handle
 
 |-Original Message-
 |From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-
 |boun...@ozdotnet.com] On Behalf Of Greg Keogh
 |Sent: Wednesday, 14 December 2011 11:39 AM
 |To: 'ozDotNet'
 |Subject: RE: VB6 calling modal .net dialog
 |
 |Matt, I tried something similar with an nunit test, like this:
 |
 |
 |
 |IntPtr hwnd =
 |System.Diagnostics.Process.GetCurrentProcess().MainWindowHandle;
 |
 |var win = new NativeWindow();
 |
 |win.AssignHandle(hwnd);
 |
 |var picker = new MyPicker();
 |
 |var result = picker.ShowDialog(win);
 |
 |
 |
 |I was hoping that this would set the nunit app window to be the owner of
 the
 |ShowDialog, but sadly two things go wrong: (1) It's not modal, but that
 might be
 |a quirk with using the nunit window (2) The dialog doesn't appear in the
 |CenterParent position, it goes to screen top-left.
 |
 |
 |
 |Greg
 |
 |
 
 
  

RE: VB6 calling modal .net dialog

2011-12-13 Thread Greg Keogh
In VB6 the main window handle is actually a hidden window, so you'd need to
get the form's handle

Good grief! I suppose that makes sense considering how VB6 windows behave.

It would be quicker to re-write the pop up form in VB6, and add the .net
database
layer logic as dll with a com wrapper, if there is one, or just implement
some ado
in vb6 for the database stuff. Or we-write the vb6 stuff in .net :)

My colleague has decided to write the picker UI in VB6 and all the data
stuff will be in a .NET DLL with an Interop wrapper.

The lesson from this is that VB6-.NET Interop of library code is not too
hard, but doing so with Forms/dialogs is very hard to improbable. I haven't
tried wrapping .NET Controls as ActiveX for VB6 to consume, I almost did a
few weeks ago and then remembered all the registering of COM and the install
footprint and I abandoned the idea.

Greg



RE: ASP.NET web site

2011-12-13 Thread Rob von Nesselrode
Looks more like classic ASP to me. ignoring the file extensions...
 
R

  _  

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Peter Maddin
Sent: Wednesday, 14 December 2011 15:55
To: 'ozDotNet'
Subject: ASP.NET web site



I have been given a couple of applications written in vb.net (which I
dislike, having only used  c#)

 

One solution is ok, I have managed to tweak the database, asmx web services
and add a web site to IIS so that it actually runs.

It was written in vs2005 and uses lots of obsolete ideas (still at the time
it was probably hot stuff).

 

The other solution has got me flummoxed. It has code in-line with html.

When I open the web site with vs2010, it does not complain but won't build.

I get lots of errors like

 

Error  1949   '__o' is not declared. It may be inaccessible due to
its protection level.   

 

I have no idea how to address this.

 

Some of the aspx have include statements like this

 

%@ Page explicit=true %

%@ Import namespace=ADODB %

script language=VB runat=Server

 Dim Conn As ADODB.Connection

 Dim rst As ADODB.Recordset

 Dim SQLstr As String

 Dim varErrors As Double

 Dim lngCounter as Long 

/script

!-- #INCLUDE FILE=includes/include-header.aspx --

!-- #INCLUDE FILE=includes/include-adovbs.aspx --

!-- #INCLUDE FILE=includes/include-ErrorHandler.aspx --

 

I am not familiar with asp.net using  vb.net in this manor (vb code mixed in
with javascript and html). Are these include statements being honoured?

If not, it might explain why some variables/properties cannot be found.

 

I am not sure how old this code is but it looks pretty archaic to me.

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285 (Monday, Wednesday,Friday)

Phone : +618 9346 4372 (Tuesday, Thursday)
Mobile: 0423 540 825 
E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 



RE: ASP.NET web site

2011-12-13 Thread Peter Maddin
That is what I first thought, so I checked up on some asp examples.

 

It does not look like asp so I suppose it must be asp.net using vb.net just
really really old.

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285 (Monday, Wednesday,Friday)

Phone : +618 9346 4372 (Tuesday, Thursday)
Mobile: 0423 540 825 
E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Rob von Nesselrode
Sent: Wednesday, 14 December 2011 2:00 PM
To: 'ozDotNet'
Subject: RE: ASP.NET web site

 

Looks more like classic ASP to me. ignoring the file extensions...

 

R

 

  _  

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Peter Maddin
Sent: Wednesday, 14 December 2011 15:55
To: 'ozDotNet'
Subject: ASP.NET web site

I have been given a couple of applications written in vb.net (which I
dislike, having only used  c#)

 

One solution is ok, I have managed to tweak the database, asmx web services
and add a web site to IIS so that it actually runs.

It was written in vs2005 and uses lots of obsolete ideas (still at the time
it was probably hot stuff).

 

The other solution has got me flummoxed. It has code in-line with html.

When I open the web site with vs2010, it does not complain but won't build.

I get lots of errors like

 

Error  1949   '__o' is not declared. It may be inaccessible due to
its protection level.   

 

I have no idea how to address this.

 

Some of the aspx have include statements like this

 

%@ Page explicit=true %

%@ Import namespace=ADODB %

script language=VB runat=Server

 Dim Conn As ADODB.Connection

 Dim rst As ADODB.Recordset

 Dim SQLstr As String

 Dim varErrors As Double

 Dim lngCounter as Long 

/script

!-- #INCLUDE FILE=includes/include-header.aspx --

!-- #INCLUDE FILE=includes/include-adovbs.aspx --

!-- #INCLUDE FILE=includes/include-ErrorHandler.aspx --

 

I am not familiar with asp.net using  vb.net in this manor (vb code mixed in
with javascript and html). Are these include statements being honoured?

If not, it might explain why some variables/properties cannot be found.

 

I am not sure how old this code is but it looks pretty archaic to me.

 

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285 (Monday, Wednesday,Friday)

Phone : +618 9346 4372 (Tuesday, Thursday)
Mobile: 0423 540 825 
E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.

 

 



Re: ASP.NET web site

2011-12-13 Thread djones147
Yeah that is a 1.1 vb web page, to do that now you need to write it as a 
handler. 

Try turning option explicit off and option strict off in the project properties.

My first reaction, is scrap it and rewrite, it looks like it was either a 
wizard conversion from asp to asp.net, or the original developer thought that 
vb.net was the same as vb/vbscript. Which is the reason I decided not to do 
vb.net and do c# instead. 

Davy
   
--Original Message--
From: Mark Hurd
Sender: ozdotnet-boun...@ozdotnet.com
To: ozDotNet
ReplyTo: ozDotNet
Subject: Re: ASP.NET web site
Sent: 14 Dec 2011 08:11

Could it require ASP.NET 1.1 not 2.0?

-- Regards,Mark Hurd, B.Sc.(Ma.)(Hons.)
On 14 December 2011 16:52, Peter Maddin petermad...@iinet.net.au wrote:
 That is what I first thought, so I checked up on some asp examples.

 It does not look like asp so I suppose it must be asp.net using vb.net just
 really really old.

 Regards Peter Maddin
 Applications Development Officer
 PathWest Laboratory Medicine WA
 Phone : +618 6396 4285 (Monday, Wednesday,Friday)

 Phone : +618 9346 4372 (Tuesday, Thursday)
 Mobile: 0423 540 825
 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
 The contents of this e-mail transmission outside of the WAGHS network are
 intended solely for the named recipient's), may be confidential, and may be
 privileged or otherwise protected from disclosure in the public interest.
 The use, reproduction, disclosure or distribution of the contents of this
 e-mail transmission by any person other than the named recipient(s) is
 prohibited. If you are not a named recipient please notify the sender
 immediately.


Sent from my BlackBerry® wireless device

RE: ASP.NET web site

2011-12-13 Thread Peter Maddin
 Could it require ASP.NET 1.1 not 2.0?
Anything is possible. 

I have an old XP Pro desktop that I used for Delphi development.
It has vs2003 installed.
I might take a copy across if the machine still boots up.

Looking at the mess resulting from mixing HTML, VB and JavaScript up
together makes me feel ill.

Regards Peter Maddin
Applications Development Officer
PathWest Laboratory Medicine WA
Phone : +618 6396 4285 (Monday, Wednesday,Friday)
Phone : +618 9346 4372 (Tuesday, Thursday)
Mobile: 0423 540 825 
E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
The contents of this e-mail transmission outside of the WAGHS network are
intended solely for the named recipient's), may be confidential, and may be
privileged or otherwise protected from disclosure in the public interest.
The use, reproduction, disclosure or distribution of the contents of this
e-mail transmission by any person other than the named recipient(s) is
prohibited. If you are not a named recipient please notify the sender
immediately.
 

-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Mark Hurd
Sent: Wednesday, 14 December 2011 3:11 PM
To: ozDotNet
Subject: Re: ASP.NET web site

Could it require ASP.NET 1.1 not 2.0?

-- Regards,Mark Hurd, B.Sc.(Ma.)(Hons.)
On 14 December 2011 16:52, Peter Maddin petermad...@iinet.net.au wrote:
 That is what I first thought, so I checked up on some asp examples.

 It does not look like asp so I suppose it must be asp.net using vb.net
just
 really really old.

 Regards Peter Maddin
 Applications Development Officer
 PathWest Laboratory Medicine WA
 Phone : +618 6396 4285 (Monday, Wednesday,Friday)

 Phone : +618 9346 4372 (Tuesday, Thursday)
 Mobile: 0423 540 825
 E-Mail : petermad...@iinet.net.au; peter.mad...@health.wa.gov.au
 The contents of this e-mail transmission outside of the WAGHS network are
 intended solely for the named recipient's), may be confidential, and may
be
 privileged or otherwise protected from disclosure in the public interest.
 The use, reproduction, disclosure or distribution of the contents of this
 e-mail transmission by any person other than the named recipient(s) is
 prohibited. If you are not a named recipient please notify the sender
 immediately.



RE: ASP.NET web site

2011-12-13 Thread Ken Schaefer
Definitely a converted ASP application (plenty of articles touting how easy it 
as to convert ASP to ASP.NET by tweaking a bit of syntax back around 
2001/2002). This type of page is the result. The use of ADODB and adovbs.inc is 
a give-away

Cheers
Ken

-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Peter Maddin
Sent: Wednesday, 14 December 2011 3:55 PM
To: djones...@gmail.com; 'ozDotNet'
Subject: RE: ASP.NET web site

Thanks
 Yeah that is a 1.1 vb web page

I suspected as much.

 looks like it was either a wizard conversion from asp to asp.net,

It does look like a converted asp application. I actually checked out some asp 
examples in order to compare asp code with what I was looking at.

 Try turning option explicit off and option strict off in the project
properties.

I'll give that a try.

 My first reaction, is scrap it and rewrite

I could not agree more but the powers that be would prefer one to maintain 
what's there and avoid a rewrite if possible.

 Which is the reason I decided not to do vb.net and do c# instead.

I also decided not to use vb.net and go with C#. Have not regretted that 
decision until I was landed with this.