all groups > asp.net > february 2004 >
You're in the

asp.net

group:

ASPX Page name in user control


Re: ASPX Page name in user control Craig Deelsnyder
2/1/2004 7:18:09 PM
asp.net:
[quoted text, click to view]

All Controls have a .Page property...

--
Craig Deelsnyder
ASPX Page name in user control A.M
2/1/2004 7:33:09 PM
Hi,

I know that i can use Page.Request.Path to find what is the current page
name.

The problem is I can't access to Page object inside a user control.
Is there any way that a user control access to the page class?

Thanks
Ali

RE: ASPX Page name in user control felixwu NO[at]SPAM online.microsoft.com
2/2/2004 8:27:42 AM
Hi A.M,

What's the problem you got? You should be able to access the Page property
inside a user control. Just as Craig said, all asp.net controls should have
this property, including user controls.

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
[quoted text, click to view]
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.
phx.gbl!TK2MSFTNGP10.phx.gbl
[quoted text, click to view]
Re: ASPX Page name in user control A.M
2/2/2004 9:26:26 AM

For some reason my IDE Intlisence doesn't show Page's mebers. That
missleadded me. I used Page inside the user control and now ican see it
works fine.
Does your IDE shows the Page's propertis?

Thanks for reply,
Ali


[quoted text, click to view]

Re: ASPX Page name in user control A.M
2/2/2004 1:17:41 PM

If I type Page., after pressing dot key, it doesn't show members. Other than
that, my intelisence works fine.
How can check intelisence settings ?

Thanks,
Ali



[quoted text, click to view]

Re: ASPX Page name in user control Mark
2/2/2004 1:53:55 PM
Try mybase.request.path instead

hth
Regards
Mark

Re: ASPX Page name in user control felixwu NO[at]SPAM online.microsoft.com
2/2/2004 3:10:00 PM
Yes. I just typed:

"this." (without quotations), then I can see the Page property in the
Intlisence menu :- )

Regards,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
[quoted text, click to view]
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!tk2msftngp13.phx.gbl
[quoted text, click to view]
Re: ASPX Page name in user control felixwu NO[at]SPAM online.microsoft.com
2/3/2004 4:40:23 AM
Hi A.M,

It seems weird, the Intelisence should appear after pressing dot key. The
Intelisence settings are located at:

Tool->Options->Text Editor->C#/Basic/->General. However, you only need to
enable "Auto list members" option, which is enabled by default, the
Intelisence can work.

BTW, does it work if you create a new User Contorl? Does restarting VS.NET
IDE fix the problem?

Thanks,

Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
[quoted text, click to view]
<EQ5x0ZW6DHA.1992@cpmsftngxa07.phx.gbl>
<e1bbYjZ6DHA.3804@tk2msftngp13.phx.gbl>
<LN7Pk6Z6DHA.2768@cpmsftngxa07.phx.gbl>
[quoted text, click to view]
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.
phx.gbl
[quoted text, click to view]
Re: ASPX Page name in user control Ravichandran J.V.
2/3/2004 7:59:58 AM
The User Control inherits from the Control class if I remember
correctly. More after I check in detail.

with regards,


J.V.Ravichandran
- http://www.geocities.com/
jvravichandran
- http://www.411asp.net/func/search?
qry=Ravichandran+J.V.&cob=aspnetpro
- http://www.southasianoutlook.com
- http://www.MSDNAA.Net
- http://www.csharphelp.com
- http://www.poetry.com/Publications/
display.asp?ID=P3966388&BN=999&PN=2
- Or, just search on "J.V.Ravichandran"
at http://www.Google.com

*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button