Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: User Control Problem


Message #1 by "Kan Yu Ting" <yu-ting.kan@p...> on Wed, 29 May 2002 12:13:09
Dear all,

I encounter problems while implementimg user controls for my site. It 
probably due to the cross domain problem of user control. However I cant 
work around it using suggestions online.

Description.
I have a virtual Directory called "powerbase"
which contain a application directory called Login and I place all user 
control in another folder inside "powerbase"

|
powerbase
  |_ Login (Application)
  |
  |_ UserControl (simple directory)
     |_TitleBar (created by VS.NET using empty web projects)

(1)When I register the control in my aspx (locate in Login directory),
   <%@ Register TagPrefix="DCPower" TagName="XPTitleBar"    
src="../UserControl/TitleBar/XPTitleBar.ascx" %>
   Following error prompts
   Parser Error Message: The virtual  
path '/powerbase/UserControl/TitleBar/XPTitleBar.ascx' maps to another 
application, which is not allowed.


(2)When I try to resolve this and place the .ascx and .ascx.cs in the 
   same location as my aspx.
   <%@ Register TagPrefix="DCPower" TagName="XPTitleBar" 
src="XPTitleBar.ascx" %>
   Following error promots
   Parser Error Message: Could not load type 'PWR_XPTitleBar.XPTitleBar'.

Can anyone help or give me some suggestions?
Thanks a lot

regards
Kan



  Return to Index