473,411 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

converting asp to asp.net problems

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
Sep 3 '08 #1
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

Sep 3 '08 #2
"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

Sep 3 '08 #3
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


Sep 3 '08 #4
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

Sep 3 '08 #5
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

Sep 3 '08 #6
"Steven" <so*****@somewhere.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...

[please don't top-post]
>> 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

I was beginning to think so myself :). My forte is not ASP.NET, how would
one proceed?
http://www.amazon.com/Beginning-ASP-...9407696&sr=8-1
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 3 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
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...
4
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...
4
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...
2
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...
2
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...
2
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...
1
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...
7
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...
2
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...
116
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...
0
BarryA
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...
1
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...
0
isladogs
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...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.