which function returns the web page class name?

A

ABC

Thanks, it return "ASP.MyWebPage1_aspx", not the expected return
"MyWebPage1". I think I need to cut the head and tail string.

Are sure the page.tostring return as "ASP.xxxxxxxx_asp"?
 
H

Hans Kesting

Thanks, it return "ASP.MyWebPage1_aspx", not the expected return
"MyWebPage1". I think I need to cut the head and tail string.

Are sure the page.tostring return as "ASP.xxxxxxxx_asp"?

The classname of the *page* is really "ASP.MyWebPage1_aspx".
The codebehind (that you presumably want) is a *baseclass* for
the "real" class that is generated from the aspx file.

Hans Kesting
 
P

Patrice

And as a side note you may have a different behavior once ported to 2.0 as
it uses partial classes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top