| Author |
Message |
robert
Guest
|
Posted:
Fri Jan 14, 2005 6:37 am Post subject:
cannot reference user control in site definition's aspx? |
|
|
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? |
|
|
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? |
|
|
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? |
|
|
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 |
|
 |
|
|
|
|