cannot reference user control in site definition's aspx?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
cannot reference user control in site definition's aspx?

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server
Author Message
robert
Guest





Posted: Fri Jan 14, 2005 6:37 am    Post subject: cannot reference user control in site definition's aspx? Reply with quote

Dear All,

I tried to reference a simple user control in the site definition's
default.aspx. the user control and the aspx file reside in the same
directory. However, when I visit the protal site, the following error
occured:

Could not find a part of the path "F:\sites\test\Program Files\Common
Files\Microsoft Shared\Web Server
Extensions\60\Template\1033\SPSTOPIC\header.ascx".

where ?:\sites\test?is the directory for the virtual site. any ideas how
this was happening? how to solve?

Thanks very much for your attention.

--
Robert
Back to top
Nigel Bridport [MSFT]
Guest





Posted: Fri Jan 14, 2005 12:38 pm    Post subject: Re: cannot reference user control in site definition's aspx? Reply with quote

Not sure if it solves your problem but take a look at
http://blogs.msdn.com/nigelbridport/archive/2004/11/18/265762.aspx

It may be of some help.

Nigel.

"robert" <robertwang@ozzo.com> wrote in message
news:ObqU8Ed%23EHA.1524@TK2MSFTNGP09.phx.gbl...
Quote:
Dear All,

I tried to reference a simple user control in the site definition's
default.aspx. the user control and the aspx file reside in the same
directory. However, when I visit the protal site, the following error
occured:

Could not find a part of the path "F:\sites\test\Program Files\Common
Files\Microsoft Shared\Web Server
Extensions\60\Template\1033\SPSTOPIC\header.ascx".

where ?:\sites\test?is the directory for the virtual site. any ideas how
this was happening? how to solve?

Thanks very much for your attention.

--
Robert


Back to top
robert
Guest





Posted: Fri Jan 14, 2005 1:52 pm    Post subject: Re: cannot reference user control in site definition's aspx? Reply with quote

thanks for your advice.

Server side controls can solve the problem. however, it is inconvenient for
our scenario. the user controls here is basically some common static html
tags and sps controls extracted from aspx files in a site definition, and no
rendering logic is needed. but sps does not seems to support referencing
user control. so is there any way to go around this restriction?

--
Robert

"Nigel Bridport [MSFT]" <nigelbri@online.microsoft.com> wrote in message
news:Ohq$uOg%23EHA.2788@TK2MSFTNGP15.phx.gbl...
Quote:
Not sure if it solves your problem but take a look at
http://blogs.msdn.com/nigelbridport/archive/2004/11/18/265762.aspx

It may be of some help.

Nigel.

"robert" <robertwang@ozzo.com> wrote in message
news:ObqU8Ed%23EHA.1524@TK2MSFTNGP09.phx.gbl...
Dear All,

I tried to reference a simple user control in the site definition's
default.aspx. the user control and the aspx file reside in the same
directory. However, when I visit the protal site, the following error
occured:

Could not find a part of the path "F:\sites\test\Program Files\Common
Files\Microsoft Shared\Web Server
Extensions\60\Template\1033\SPSTOPIC\header.ascx".

where ?:\sites\test?is the directory for the virtual site. any ideas how
this was happening? how to solve?

Thanks very much for your attention.

--
Robert




Back to top
Nigel Bridport [MSFT]
Guest





Posted: Fri Jan 14, 2005 9:36 pm    Post subject: Re: cannot reference user control in site definition's aspx? Reply with quote

How about this then?
http://www.gotdotnet.com/workspaces/releases/viewuploads.aspx?id=6cfaabc8-db4d-41c3-8a88-3f974a7d0abe

Nigel.

--
This posting is provided "AS IS" with no warranties, and confers no rights.


"robert" <robertwang@ozzo.com> wrote in message
news:%23ND0S4g%23EHA.4004@tk2msftngp13.phx.gbl...
Quote:
thanks for your advice.

Server side controls can solve the problem. however, it is inconvenient
for our scenario. the user controls here is basically some common static
html tags and sps controls extracted from aspx files in a site definition,
and no rendering logic is needed. but sps does not seems to support
referencing user control. so is there any way to go around this
restriction?

--
Robert

"Nigel Bridport [MSFT]" <nigelbri@online.microsoft.com> wrote in message
news:Ohq$uOg%23EHA.2788@TK2MSFTNGP15.phx.gbl...
Not sure if it solves your problem but take a look at
http://blogs.msdn.com/nigelbridport/archive/2004/11/18/265762.aspx

It may be of some help.

Nigel.

"robert" <robertwang@ozzo.com> wrote in message
news:ObqU8Ed%23EHA.1524@TK2MSFTNGP09.phx.gbl...
Dear All,

I tried to reference a simple user control in the site definition's
default.aspx. the user control and the aspx file reside in the same
directory. However, when I visit the protal site, the following error
occured:

Could not find a part of the path "F:\sites\test\Program Files\Common
Files\Microsoft Shared\Web Server
Extensions\60\Template\1033\SPSTOPIC\header.ascx".

where ?:\sites\test?is the directory for the virtual site. any ideas how
this was happening? how to solve?

Thanks very much for your attention.

--
Robert






Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB