which function returns the web page class name?

  • Thread starter Thread starter Onin Tayson
  • Start date Start date
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"?
 
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
 
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

Back
Top