Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Saturday, March 31, 2012

Set a separator image for a SiteMapPath (skin)

In a ASP.NET 2.0 project I'd like to set an image as path separator in
the SiteMapPath. When I edit the PathSepartor template (for this
SiteMapPath) and drag an image on it, it works fine for all pages in
the root of the Web project. VS2005 creates the folling aspx:
<asp:SiteMapPath ID="SiteMapPath" runat="server">
<PathSeparatorTemplate>
<img src="http://pics.10026.com/?src=Images/arrow-right.jpg" />
</PathSeparatorTemplate>
</asp:SiteMapPath>
However, this project also has pages in subfolders. For all pages in
these subfolers this images reference doesn't work anymore (logical
behavirour). So I changed the img src to "~/Images/arrow-right.jpg" as
shown below:
<asp:SiteMapPath ID="SiteMapPath" runat="server">
<PathSeparatorTemplate>
<img src="http://pics.10026.com/?src=~/Images/arrow-right.jpg" />
</PathSeparatorTemplate>
</asp:SiteMapPath>
This results in not showing the arrow image at all. Even not in the
pages in the root of the webproject. The image properties in the
website state: "http://localhost/project/~/Images/arrow-right.jpg".
Other options I tried where "../" and "./". None of them seem to work.
Does somebody has a solution to this problem? Is it a bug?
Kind regards,
Jules
BTW: The behaviour as described above also occurs when I set this
SiteMap style in a .skin file in the App_Thems.Mark your <img> with runat=server
-Brock
http://staff.develop.com/ballen

> In a ASP.NET 2.0 project I'd like to set an image as path separator in
> the SiteMapPath. When I edit the PathSepartor template (for this
> SiteMapPath) and drag an image on it, it works fine for all pages in
> the root of the Web project. VS2005 creates the folling aspx:
> <asp:SiteMapPath ID="SiteMapPath" runat="server">
> <PathSeparatorTemplate>
> <img src="http://pics.10026.com/?src=Images/arrow-right.jpg" />
> </PathSeparatorTemplate>
> </asp:SiteMapPath>
> However, this project also has pages in subfolders. For all pages in
> these subfolers this images reference doesn't work anymore (logical
> behavirour). So I changed the img src to "~/Images/arrow-right.jpg" as
> shown below:
> <asp:SiteMapPath ID="SiteMapPath" runat="server">
> <PathSeparatorTemplate>
> <img src="http://pics.10026.com/?src=~/Images/arrow-right.jpg" />
> </PathSeparatorTemplate>
> </asp:SiteMapPath>
> This results in not showing the arrow image at all. Even not in the
> pages in the root of the webproject. The image properties in the
> website state: "http://localhost/project/~/Images/arrow-right.jpg".
> Other options I tried where "../" and "./". None of them seem to work.
> Does somebody has a solution to this problem? Is it a bug?
> Kind regards,
> Jules
> BTW: The behaviour as described above also occurs when I set this
> SiteMap style in a .skin file in the App_Thems.
>

Set a separator image for a SiteMapPath (skin)

In a ASP.NET 2.0 project I'd like to set an image as path separator in
the SiteMapPath. When I edit the PathSepartor template (for this
SiteMapPath) and drag an image on it, it works fine for all pages in
the root of the Web project. VS2005 creates the folling aspx:

<asp:SiteMapPath ID="SiteMapPath" runat="server">
<PathSeparatorTemplate>
<img src="http://pics.10026.com/?src=Images/arrow-right.jpg" />
</PathSeparatorTemplate>
</asp:SiteMapPath
However, this project also has pages in subfolders. For all pages in
these subfolers this images reference doesn't work anymore (logical
behavirour). So I changed the img src to "~/Images/arrow-right.jpg" as
shown below:

<asp:SiteMapPath ID="SiteMapPath" runat="server">
<PathSeparatorTemplate>
<img src="http://pics.10026.com/?src=~/Images/arrow-right.jpg" />
</PathSeparatorTemplate>
</asp:SiteMapPath
This results in not showing the arrow image at all. Even not in the
pages in the root of the webproject. The image properties in the
website state: "http://localhost/project/~/Images/arrow-right.jpg".
Other options I tried where "../" and "./". None of them seem to work.
Does somebody has a solution to this problem? Is it a bug?

Kind regards,

Jules

BTW: The behaviour as described above also occurs when I set this
SiteMap style in a .skin file in the App_Thems.Mark your <img> with runat=server

-Brock
http://staff.develop.com/ballen

> In a ASP.NET 2.0 project I'd like to set an image as path separator in
> the SiteMapPath. When I edit the PathSepartor template (for this
> SiteMapPath) and drag an image on it, it works fine for all pages in
> the root of the Web project. VS2005 creates the folling aspx:
> <asp:SiteMapPath ID="SiteMapPath" runat="server">
> <PathSeparatorTemplate>
> <img src="http://pics.10026.com/?src=Images/arrow-right.jpg" />
> </PathSeparatorTemplate>
> </asp:SiteMapPath>
> However, this project also has pages in subfolders. For all pages in
> these subfolers this images reference doesn't work anymore (logical
> behavirour). So I changed the img src to "~/Images/arrow-right.jpg" as
> shown below:
> <asp:SiteMapPath ID="SiteMapPath" runat="server">
> <PathSeparatorTemplate>
> <img src="http://pics.10026.com/?src=~/Images/arrow-right.jpg" />
> </PathSeparatorTemplate>
> </asp:SiteMapPath>
> This results in not showing the arrow image at all. Even not in the
> pages in the root of the webproject. The image properties in the
> website state: "http://localhost/project/~/Images/arrow-right.jpg".
> Other options I tried where "../" and "./". None of them seem to work.
> Does somebody has a solution to this problem? Is it a bug?
> Kind regards,
> Jules
> BTW: The behaviour as described above also occurs when I set this
> SiteMap style in a .skin file in the App_Thems.

Thursday, March 22, 2012

set icon for website_deploy DLL file

Hi;

How can I set the icon for the DLL file a portla deploy project creates?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htmHello Dave,

As for the setting Icon for the project dll file, do you mean you want your
project's assembly dll has a own Icon as an exe application? If so, I'm
afraid this setting can not be configured individually. It is the windows
shell that controls the icon of each file extension(stored in registry).
And the "exe" is a particular case that the Icon of each exe program can be
defined in the exe itself(as an embeded resource). For other extension
such as "dll", you can only specify a fixed icon for all the files (of that
extension) globally. To do this, you use the "tools-->folder
options-->file types" and use the "advance" setting to change the icon for
all files of a given extension.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

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

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Steven Cheng[MSFT]" wrote:

Quote:

Originally Posted by

Hello Dave,
>
As for the setting Icon for the project dll file, do you mean you want your
project's assembly dll has a own Icon as an exe application? If so, I'm
afraid this setting can not be configured individually. It is the windows
shell that controls the icon of each file extension(stored in registry).
And the "exe" is a particular case that the Icon of each exe program can be
defined in the exe itself(as an embeded resource). For other extension
such as "dll", you can only specify a fixed icon for all the files (of that
extension) globally. To do this, you use the "tools-->folder
options-->file types" and use the "advance" setting to change the icon for
all files of a given extension.
>
Sincerely,
>
Steven Cheng
>
Microsoft MSDN Online Support Lead
>
>
This posting is provided "AS IS" with no warranties, and confers no rights.
>
>

set icon for website_deploy DLL file

Hi;
How can I set the icon for the DLL file a portla deploy project creates?
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htmHello Dave,
As for the setting Icon for the project dll file, do you mean you want your
project's assembly dll has a own Icon as an exe application? If so, I'm
afraid this setting can not be configured individually. It is the windows
shell that controls the icon of each file extension(stored in registry).
And the "exe" is a particular case that the Icon of each exe program can be
defined in the exe itself(as an embeded resource). For other extension
such as "dll", you can only specify a fixed icon for all the files (of that
extension) globally. To do this, you use the "tools-->folder
options-->file types" and use the "advance" setting to change the icon for
all files of a given extension.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.
oh - ok.
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
"Steven Cheng[MSFT]" wrote:

> Hello Dave,
> As for the setting Icon for the project dll file, do you mean you want you
r
> project's assembly dll has a own Icon as an exe application? If so, I'm
> afraid this setting can not be configured individually. It is the windows
> shell that controls the icon of each file extension(stored in registry).
> And the "exe" is a particular case that the Icon of each exe program can b
e
> defined in the exe itself(as an embeded resource). For other extension
> such as "dll", you can only specify a fixed icon for all the files (of tha
t
> extension) globally. To do this, you use the "tools-->folder
> options-->file types" and use the "advance" setting to change the icon fo
r
> all files of a given extension.
> Sincerely,
> Steven Cheng
> Microsoft MSDN Online Support Lead
>
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>

Tuesday, March 13, 2012

Set Option Strict on for whole web site

Where can I set Option Strict On so it applies to the whole web site? It was not set On by default when I started the project but I want to turn it on now and I can't find a place to set it and forget it.

By that I mean currently I have to set it on in each code behind page and I don't want to have to do that anymore.In VS2005 it comes on by default. You must be using VS2003.

To set it on VS2003, you can do that from the IDE directly.

Tools -> Options -> Projects -> VB Defaults -> Option Explicit ON

HTH
HoraShadow