Hello everyone,
I have a rather large Asp web that I'm considering moving to Asp.Net. I
ran it thru the Asp.Net Migration Tool and, of course, it does not compile.
In just trying to set up the default.aspx page, the page has some includes
on it. I'm fine with that, even tho it's not the best solution. But the
file that is included is setup like this:
IncludedFile.aspx
Class c1
Methods...
End Class
Class c2
Methods...
End Class
Methods not in a class..
End IncludedFile.aspx
The problem is that c1 or c2 cannot call the methods that are not in either
class, and if I put them in a class, I get 'reference to shared member
requires requires an object reference' on the 'response.write' code. I
would sure appreciate some suggestions. This is quickly becoming a
nightmare!
Thanks,
Steve 6 1080
Is it "Reference to *non-* shared member requires an object reference" ?
If yes add the Shared keyword in the methods signature so that thay can be
called as Shared methods (or try to place them in a module rather than in a
class).
--
Patrice
"Steven" <so*****@somewhere.coma écrit dans le message de groupe de
discussion : eQ**************@TK2MSFTNGP03.phx.gbl...
Hello everyone,
I have a rather large Asp web that I'm considering moving to Asp.Net. I
ran it thru the Asp.Net Migration Tool and, of course, it does not
compile. In just trying to set up the default.aspx page, the page has some
includes on it. I'm fine with that, even tho it's not the best solution.
But the file that is included is setup like this:
IncludedFile.aspx
Class c1
Methods...
End Class
Class c2
Methods...
End Class
Methods not in a class..
End IncludedFile.aspx
The problem is that c1 or c2 cannot call the methods that are not in
either class, and if I put them in a class, I get 'reference to shared
member requires requires an object reference' on the 'response.write'
code. I would sure appreciate some suggestions. This is quickly becoming
a nightmare!
Thanks,
Steve
"Steven" <so*****@somewhere.comwrote in message
news:eQ**************@TK2MSFTNGP03.phx.gbl...
I have a rather large Asp web that I'm considering moving to Asp.Net. I
ran it through the Asp.Net Migration Tool
I would strongly advise you not to even try using the ASP.NET Migration
Tool - it's worse than useless...
If you're new to ASP.NET, get a copy of this: http://www.amazon.com/Beginning-ASP-...9407696&sr=8-1
--
Mark Rae
ASP.NET MVP http://www.markrae.net
Yes, it is 'reference to non-shared member...'
"Patrice" <http://www.chez.com/scribe/wrote in message
news:CA**********************************@microsof t.com...
Is it "Reference to *non-* shared member requires an object reference" ?
If yes add the Shared keyword in the methods signature so that thay can be
called as Shared methods (or try to place them in a module rather than in
a class).
--
Patrice
"Steven" <so*****@somewhere.coma écrit dans le message de groupe de
discussion : eQ**************@TK2MSFTNGP03.phx.gbl...
>Hello everyone, I have a rather large Asp web that I'm considering moving to Asp.Net. I ran it thru the Asp.Net Migration Tool and, of course, it does not compile. In just trying to set up the default.aspx page, the page has some includes on it. I'm fine with that, even tho it's not the best solution. But the file that is included is setup like this:
IncludedFile.aspx
Class c1 Methods... End Class Class c2 Methods... End Class Methods not in a class..
End IncludedFile.aspx
The problem is that c1 or c2 cannot call the methods that are not in either class, and if I put them in a class, I get 'reference to shared member requires requires an object reference' on the 'response.write' code. I would sure appreciate some suggestions. This is quickly becoming a nightmare!
Thanks, Steve
I was beginning to think so myself :). My forte is not asp.net, how would
one proceed?
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
"Steven" <so*****@somewhere.comwrote in message
news:eQ**************@TK2MSFTNGP03.phx.gbl...
> I have a rather large Asp web that I'm considering moving to Asp.Net. I ran it through the Asp.Net Migration Tool
I would strongly advise you not to even try using the ASP.NET Migration
Tool - it's worse than useless...
If you're new to ASP.NET, get a copy of this: http://www.amazon.com/Beginning-ASP-...9407696&sr=8-1
--
Mark Rae
ASP.NET MVP http://www.markrae.net
Start to learn the way ASP.NET is meant to be. Having previously done some
ASP developing, I do believe the ASP migration tool is anything but useful,
as Mark pointed out. However, if you have basic concept of what web
application is, it is fairly to get started with ASP.NET. SO, simply throw
away the ASP, and pick up a ASP.NET book, off you go. Of course you need to
be familia with .NET framework.
"Steven" <so*****@somewhere.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...
>I was beginning to think so myself :). My forte is not asp.net, how would one proceed?
"Mark Rae [MVP]" <ma**@markNOSPAMrae.netwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>"Steven" <so*****@somewhere.comwrote in message news:eQ**************@TK2MSFTNGP03.phx.gbl...
>> I have a rather large Asp web that I'm considering moving to Asp.Net. I ran it through the Asp.Net Migration Tool
I would strongly advise you not to even try using the ASP.NET Migration Tool - it's worse than useless...
If you're new to ASP.NET, get a copy of this: http://www.amazon.com/Beginning-ASP-...9407696&sr=8-1
-- Mark Rae ASP.NET MVP http://www.markrae.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Hal Vaughan |
last post by:
If I have a byte and I convert it to string (String sData = new
String(byte bData), then convert it back (byte bData = sData.getBytes()),
will all data be intact, or do Strings have problems with...
|
by: Joseph Suprenant |
last post by:
I have an array of unsigned chars and i would like them converted to
an array of ints. What is the best way to do this? Using RedHat 7.3
on an Intel Pentium 4 machine. Having trouble here, hope...
|
by: Cyde Weys |
last post by:
I'm currently working on converting a simulator program from Visual
Basic 6.0 to Visual C++ .NET. I've figured out most of the stuff, but
there's still one thing I haven't gotten to and I've never...
|
by: mike |
last post by:
regards:
I follow the following steps to converting from HTML to XHTML
http://webpageworkshop.co.uk/main/xhtml_converting
My parser is http://htmlparser.sourceforge.net/
Xhtml version is 1.0...
|
by: John Ortt |
last post by:
Hi All,
I have a database in Access 97 which works fine but our company is
converting from NT4 to XP Pro and in the process changing Office 97 for
Office 2003. I have tried to convert the 97...
|
by: Map Reader |
last post by:
Greetings,
I am converting an old VB6 application to use .NET. One of the old controls
loads icons from the disk and displays them. However, the transparent color
turns to blue somewhere in the...
|
by: Wayne |
last post by:
I am having a tremendous amount of problems converting a current web
application over to ASP.NET/VB.NET 2.0.
I have managed to fix all the errors except 7 to 10 of them (depending on
the...
|
by: Coleen |
last post by:
Does anyone have any good detailed information on the conversion process?
We are in the process of converting 2 projects from 2003 to 2005 and have
some conversion errors that I can not find...
|
by: TheLongshot |
last post by:
Ok, let's try this again.
I have an ASP.NET 1.1 application that I'm working to convert to 2.0,
but I've run into a snag.
The problem is with this line:
return...
|
by: Dilip |
last post by:
Recently in our code, I ran into a situation where were stuffing a
float inside a double. The precision was extended automatically
because of that. To make a long story short, this caused...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |