Saturday, March 31, 2012

Themes not working sometimes.

I am setting the src of a Iframe in the page load like this:
fraContent.Attributes.Item("src") = "Splash.aspx"
and sometimes the themes do not work. The page displays in the browser but
the themes are not applied. The <link ... is on the page when I look at the
soruce.
Any Ideas.
Thank you,
--
JerryHello Jerry,
I do not have your source code to test on directly. But here are some
suggestions that, I think, deserve your trial.
1. Does the "<link _" links to the correct theme page when the themes are
not applied? Please pay attention to the relative path. In my best guess,
the theme page cannot be loaded because the relative path to the page is
not correct.
2. Is the line fraContent.Attributes.Item("src") = "Splash.aspx" inside the
if statement: if (!Page.IsPostBack) { _ }?
If that, when the page post-back occurs, the line
fraContent.Attributes.Item("src") = "Splash.aspx" will not be executed in
the Page_Load event handler.
We can debug the site in Visual Studio, set a breakpoint on
fraContent.Attributes.Item("src") = "Splash.aspx" and see if it is executed
every time when we need to load the theme page.
3. When the theme page cannot be loaded, what is the browser? As far as I
know, some browsers do not support html tags very well.
By the way, since ASP.NET 2.0, a new feature "Theme & Skin" has been
supported by ASP.NET. If your theme pages only contain style information,
I'd suggest using ASP.NET Theme, which is much easier to accomplish the
task. For more information about "Theme and Skin" in ASP.NET, please refer
to:
ASP.NET Themes and Skins Overview
http://msdn2.microsoft.com/en-us/library/ykzx33wh.aspx
How to: Apply ASP.NET Themes Programmatically
http://www.15seconds.com/issue/040105.htm
Code in Style with ASP.NET Themes.
http://www.15seconds.com/issue/040105.htm
Hope it helps.
Regards,
Jialiang Ge (jialge@.online.microsoft.com, remove 'online.')
Microsoft Online Community Support
========================================
==========
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscript...t/default.aspx.
========================================
==========
This posting is provided "AS IS" with no warranties, and confers no rights.
Hello Jerry,
Sorry for the incorrect link to the article "How to: Apply ASP.NET Themes
Programmatically".
The link should be:
http://msdn2.microsoft.com/en-us/library/tx35bd89.aspx
If you have any other concerns or need anything else, please feel free to
let me know.
Regards,
Jialiang Ge (jialge@.online.microsoft.com, remove 'online.')
Microsoft Online Community Support
========================================
=========
When responding to posts, please "Reply to Group" via your newsreader
so that others may learn and benefit from your issue.
========================================
=========
This posting is provided "AS IS" with no warranties, and confers no rights.
Jialiang,
Thank you for your reply. The problem only occurs SOME of the time so all
the links are about appying the themes and if the code was not correct the
themes would not be there ALL of the time not just SOME of the times.
Anyway.
I have fixed the problem. This does not explain why the problem occured in
the first place. I placed a system.threading.thread.sleep line in the
LoadComplete event of the page. this seemed like the same problem solved by
the waitForEvents in window forms.
Have you seen any of this kind of problem.
Thank you
--
Jerry
"Jialiang Ge [MSFT]" wrote:

> Hello Jerry,
> Sorry for the incorrect link to the article "How to: Apply ASP.NET Themes
> Programmatically".
> The link should be:
> http://msdn2.microsoft.com/en-us/library/tx35bd89.aspx
> If you have any other concerns or need anything else, please feel free to
> let me know.
> Regards,
> Jialiang Ge (jialge@.online.microsoft.com, remove 'online.')
> Microsoft Online Community Support
> ========================================
=========
> When responding to posts, please "Reply to Group" via your newsreader
> so that others may learn and benefit from your issue.
> ========================================
=========
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>

Themes vs css?

Hi;

I see the additional functionality that themes add. But it also seems to me
that if we use css instead of themes, then it's a lot easier for people to
change the look of our site as css is very well understood.

Any comments on how useful in practice the extra features of themes have been?

--
thanks - daveCSS files are usually part of a theme.
Rely on them as much as you wish.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"David Thielen" <thielen@.nospam.nospam> wrote in message
news:CCBFC3CA-87C4-4C69-A847-208227AF90FE@.microsoft.com...
> Hi;
> I see the additional functionality that themes add. But it also seems to
> me
> that if we use css instead of themes, then it's a lot easier for people to
> change the look of our site as css is very well understood.
> Any comments on how useful in practice the extra features of themes have
> been?
> --
> thanks - dave
Hi,

How is this case going? Please feel free to let me know if you have any
concern or questions.

Thanks & Regards,

Neil Ni
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

================================================== ===
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.

This and other support options are available here:

BCPS:
https://partner.microsoft.com/US/te...erview/40010469

Others: https://partner.microsoft.com/US/te...upportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/defaul...ernational.aspx.
================================================== ===

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

Themes, Pages, and Master Pages

I am trying to understand some basic things about themes.
Why cannot I attach a theme to a master page?
When I define a CSS within a theme and then attach the theme to a page it
seems that I cannot use the CSS definitions directly on that page. Is this
correct? If so, why?
Thanks
Jayin the web.config in the <pages> tag add a styleSheetTheme attribute with th
e
name of your theme. If that isn't what you want to do, you can always
temporarily drop the CSS link directly into the master page for editing and
then remove it when done (unless of course you want it directly on that page
).
"MS News" wrote:

> I am trying to understand some basic things about themes.
> Why cannot I attach a theme to a master page?
> When I define a CSS within a theme and then attach the theme to a page it
> seems that I cannot use the CSS definitions directly on that page. Is thi
s
> correct? If so, why?
> Thanks
> Jay
>
>
I messed up and see my mistake. Everything works as expected and very
nicely.
Jay
"MS News" <someone@.nowhere.com> wrote in message
news:eJWVBajMGHA.740@.TK2MSFTNGP12.phx.gbl...
>I am trying to understand some basic things about themes.
> Why cannot I attach a theme to a master page?
> When I define a CSS within a theme and then attach the theme to a page it
> seems that I cannot use the CSS definitions directly on that page. Is
> this correct? If so, why?
> Thanks
> Jay
>
>

Themes, Pages, and Master Pages

I am trying to understand some basic things about themes.

Why cannot I attach a theme to a master page?

When I define a CSS within a theme and then attach the theme to a page it
seems that I cannot use the CSS definitions directly on that page. Is this
correct? If so, why?

Thanks

Jayin the web.config in the <pages> tag add a styleSheetTheme attribute with the
name of your theme. If that isn't what you want to do, you can always
temporarily drop the CSS link directly into the master page for editing and
then remove it when done (unless of course you want it directly on that page).

"MS News" wrote:

> I am trying to understand some basic things about themes.
> Why cannot I attach a theme to a master page?
> When I define a CSS within a theme and then attach the theme to a page it
> seems that I cannot use the CSS definitions directly on that page. Is this
> correct? If so, why?
> Thanks
> Jay
>
>
I messed up and see my mistake. Everything works as expected and very
nicely.

Jay

"MS News" <someone@.nowhere.com> wrote in message
news:eJWVBajMGHA.740@.TK2MSFTNGP12.phx.gbl...
>I am trying to understand some basic things about themes.
> Why cannot I attach a theme to a master page?
> When I define a CSS within a theme and then attach the theme to a page it
> seems that I cannot use the CSS definitions directly on that page. Is
> this correct? If so, why?
> Thanks
> Jay

Themes vs css?

Hi;
I see the additional functionality that themes add. But it also seems to me
that if we use css instead of themes, then it's a lot easier for people to
change the look of our site as css is very well understood.
Any comments on how useful in practice the extra features of themes have bee
n?
thanks - daveCSS files are usually part of a theme.
Rely on them as much as you wish.
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"David Thielen" <thielen@.nospam.nospam> wrote in message
news:CCBFC3CA-87C4-4C69-A847-208227AF90FE@.microsoft.com...
> Hi;
> I see the additional functionality that themes add. But it also seems to
> me
> that if we use css instead of themes, then it's a lot easier for people to
> change the look of our site as css is very well understood.
> Any comments on how useful in practice the extra features of themes have
> been?
> --
> thanks - dave
Hi,
How is this case going? Please feel free to let me know if you have any
concern or questions.
Thanks & Regards,
Neil Ni
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
=============
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a w to all
Microsoft technology partners in the United States and Canada.
This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/te...erview/40010469
Others: https://partner.microsoft.com/US/te...upportoverview/
If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/defaul...rnational.aspx.
========================================
=============
This posting is provided "AS IS" with no warranties, and confers no rights.

Themes/Skins

Does anybody know where to find list of all attributes I can set for each
Control in .skin file?
I've been searching for it whole afternoon without any luck.
Thanks,
Tomica GrilWe've got to drag each control into the IDE and use the properties window
and then go back and forth and back and forth. Nice huh?
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"Qweertz" <qweertz@.net.hr> wrote in message
news:enu1q9$6g4$1@.news1.carnet.hr...
> Does anybody know where to find list of all attributes I can set for each
> Control in .skin file?
> I've been searching for it whole afternoon without any luck.
> Thanks,
> Tomica Gril
>
This isn't exactly what you asked for, but you can enable Intellisense for
the skin files.
http://www.ckcmoss.com/archives/18-...0.htm
l
I had to close and re-open the project - in addition to the original
instructions - to get it to stick, but there it is.
"You actually can add intellisense to any file in Visual Studio 2005
providing you have a schema. Just drop it in the ~\Xml\Schemas folder."
Good info from a comment on the same page, in case you miss it.
Oh yea -- that's the kind of wrong I like to be. Thanks for bringing this to
our attention.
<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"mank1327" <mcwadsworth@.hotmail.com> wrote in message
news:04806EE5-3E62-472D-B2D7-91ED80D3980A@.microsoft.com...
> This isn't exactly what you asked for, but you can enable Intellisense for
> the skin files.
> http://www.ckcmoss.com/archives/18-...0.h
tml
> I had to close and re-open the project - in addition to the original
> instructions - to get it to stick, but there it is.
> "You actually can add intellisense to any file in Visual Studio 2005
> providing you have a schema. Just drop it in the ~\Xml\Schemas folder."
> Good info from a comment on the same page, in case you miss it.
>
>
> We've got to drag each control into the IDE and use the properties window
> and then go back and forth and back and forth. Nice huh?
>
Yeah, I know that.
Intellisense is all I needed, but I didn't know that I can user it in skins
as well.
Thanks to both.

Themes/Skins

Does anybody know where to find list of all attributes I can set for each
Control in .skin file?
I've been searching for it whole afternoon without any luck.

Thanks,
Tomica GrilWe've got to drag each control into the IDE and use the properties window
and then go back and forth and back and forth. Nice huh?

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"Qweertz" <qweertz@.net.hrwrote in message
news:enu1q9$6g4$1@.news1.carnet.hr...

Quote:

Originally Posted by

Does anybody know where to find list of all attributes I can set for each
Control in .skin file?
I've been searching for it whole afternoon without any luck.
>
Thanks,
Tomica Gril
>


This isn't exactly what you asked for, but you can enable Intellisense for
the skin files.

http://www.ckcmoss.com/archives/18-...ins-in-2.0.html
I had to close and re-open the project - in addition to the original
instructions - to get it to stick, but there it is.

"You actually can add intellisense to any file in Visual Studio 2005
providing you have a schema. Just drop it in the ~\Xml\Schemas folder."

Good info from a comment on the same page, in case you miss it.
Oh yea -- that's the kind of wrong I like to be. Thanks for bringing this to
our attention.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
MAP http://wikimapia.org/#y=43038073&x=...38&z=17&l=0&m=h
"mank1327" <mcwadsworth@.hotmail.comwrote in message
news:04806EE5-3E62-472D-B2D7-91ED80D3980A@.microsoft.com...

Quote:

Originally Posted by

This isn't exactly what you asked for, but you can enable Intellisense for
the skin files.
>
http://www.ckcmoss.com/archives/18-...ins-in-2.0.html
>
I had to close and re-open the project - in addition to the original
instructions - to get it to stick, but there it is.
>
"You actually can add intellisense to any file in Visual Studio 2005
providing you have a schema. Just drop it in the ~\Xml\Schemas folder."
>
Good info from a comment on the same page, in case you miss it.
>
>
>


We've got to drag each control into the IDE and use the properties window

Quote:

Originally Posted by

and then go back and forth and back and forth. Nice huh?
>


Yeah, I know that.
Intellisense is all I needed, but I didn't know that I can user it in skins
as well.
Thanks to both.