473,326 Members | 2,113 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,326 software developers and data experts.

which function returns the web page class name?

ABC
as title
Nov 19 '05 #1
6 935
try this.ToString()

"ABC" <ab*@abc.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
as title

Nov 19 '05 #2
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"?
"Onin Tayson" <Le*********@compaid.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
try this.ToString()

"ABC" <ab*@abc.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
as title


Nov 19 '05 #3
> 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

"Onin Tayson" <Le*********@compaid.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
try this.ToString()

"ABC" <ab*@abc.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
as title


Nov 19 '05 #4
And as a side note you may have a different behavior once ported to 2.0 as
it uses partial classes.

--
Patrice

"Hans Kesting" <ne***********@spamgourmet.com> a écrit dans le message de
news:mn***********************@spamgourmet.com...
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

"Onin Tayson" <Le*********@compaid.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
try this.ToString()

"ABC" <ab*@abc.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
as title


Nov 19 '05 #5
Did you try this.GetType().Name?

"ABC" <ab*@abc.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
as title

Nov 19 '05 #6
ABC
I found!!
this.GetType().BaseType.Name



"Siva M" <sh******@online.excite.com> wrote in message
news:ed**************@tk2msftngp13.phx.gbl...
Did you try this.GetType().Name?

"ABC" <ab*@abc.com> wrote in message
news:%2***************@TK2MSFTNGP15.phx.gbl...
as title

Nov 19 '05 #7

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

Similar topics

7
by: knoak | last post by:
Hi there, I have a site with just a few pages. (e.g. home.php) In every page there is another page included with things like the header etc. The included file is in a subdirectory called...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
2
by: Daniel Walzenbach | last post by:
Hi, I created an ASP.NET Datagrid where a single row can be selected by clicking anywhere on the row (according to...
17
by: clintonG | last post by:
I'm using an .aspx tool I found at but as nice as the interface is I think I need to consider using others. Some can generate C# I understand. Your preferences please... <%= Clinton Gallagher ...
7
by: John Grandy | last post by:
My ASP.NET Web Service project has a Web Method that returns an array filled with instances of a custom class. The custom class is defined in a Class Library that is included in the web-service...
4
by: mflll | last post by:
I am looking into the different techniques of handling arrays of edit boxes in Java Script. The first program below works fine. However, are there better ways of doing this, where the person...
3
by: Angus | last post by:
I have a web page with a toolbar containing a Save button. The Save button can change contextually to be a Search button in some cases. Hence the button name searchsavechanges. The snippet of...
2
by: ELINTPimp | last post by:
Hello all, Have a really interesting problem (at least to me) with my upload_file() function. I have it working now, with a bit of a work around, but would like to know what everyone thinks in...
6
by: jmarcrum | last post by:
Hi everyone! I'm using a super class (DVD.java) that handles another class (EnhancedDVD.java). I want to pass the "details" of the DVD into the super class DVD.java. The super class contains the...
2
by: printline | last post by:
Hi all I have a problem with a form script. The form script should do the following: When a user selects a value from a drop down list and hits the "next" button it should take him to a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.