Showing posts with label dll. Show all posts
Showing posts with label dll. Show all posts

Thursday, March 29, 2012

Set culture for a DLL (class library) referenced from web application

I am developing a DLL (class library) for a web application of mine.

In the web.config of the web application I have set: culture="en-GB"
uiCulture="en" in order that the date format will be dd/mm/yyyy.

I also changed the regional settings to that date format.

When I am using the Now() function in the DLL I get the date format in
mm/dd/yyyy instead. Why the date format in the DLL is different? Shouldn't
it take the culture settings from the web application he is referenced from?

How can I control the date format of the DLL (class library)?

Thanks for your time

ra294@dotnet.itags.org.hotmail.comYa Ya,

See this article on settig culture.

http://www.dotnetjunkies.com/Tutori...33D2EDD38B.dcik

I don't believe you are setting the culture on the thread and the
application assumes the culture of the server.

HTH MikeL.

"Ya Ya" wrote:

> I am developing a DLL (class library) for a web application of mine.
> In the web.config of the web application I have set: culture="en-GB"
> uiCulture="en" in order that the date format will be dd/mm/yyyy.
> I also changed the regional settings to that date format.
> When I am using the Now() function in the DLL I get the date format in
> mm/dd/yyyy instead. Why the date format in the DLL is different? Shouldn't
> it take the culture settings from the web application he is referenced from?
> How can I control the date format of the DLL (class library)?
>
> Thanks for your time
> ra294@.hotmail.com
>

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
.
>