Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:191983
More Search Options
RSS Available
Matching Posts
Re: Unable to cast object of type 'ASP.masterpage_master' to type 'ASP.masterpage_master'.
I have a workaround!! I added a Try Catch around the problem code: Was: Master.BodyCSSClass = "fixWidth" Workaround (in VB): Try Master.BodyCSSClass = "fixWidth" Catch ex As Exception ' Log error End Try Funny thing though . . . I expected the page to load, even w the error happens. But I assumed the property would not be set in the Master page. I figured I could live with this for now. However, even when the error gets reported, the page loads and the Master's custom property gets set. Very WEIRD
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jsalwen
on 2/1/2006
Re: Unable to cast object of type 'ASP.masterpage_master' to type 'ASP.masterpage_master'.
I have been having the same problem. It will also be fine, then it pops up, then it fixes itself (after 30 hours over the weekend) :( Once it starts happening, it effects all pages that set properties in master pages: Example: Page_Load of .aspx page Master.PageType = Enumorators.PageDisplayType.Full If we are around, we can fix it by making a minor mod to the global.asax or web.config, which forces the app to recompile. This is a big problem for us, so any help is appreciated.
Posted to
Master Pages, Themes and Navigation Controls
(Forum)
by
jsalwen
on 1/30/2006
Re: Title, Description & Keyword meta tags in ASP.NET 2.0
Opps. I gave the wrong link before to the source code: http://www.joshsalwen.com/default.aspx?guid=143b79f6-f235-4a56-8ba0-f0aff98adb99
Posted to
Getting Started
(Forum)
by
jsalwen
on 12/17/2005
Re: Title, Description & Keyword meta tags in ASP.NET 2.0
This was driving me crazy as well. I wrote a couple of helper methods to deal with this. It uses the same basics as listed above with the addition that it also updates a Meta Tag if it was added in the markup or programmatically // Loop through all the controls in the Header foreach (Control ctrl in header.Controls) { // Check if the control is a Meta Tag if (ctrl is HtmlMeta) { // Get the Meta Tag and check if the name is the same meta = (HtmlMeta)ctrl; if (name.Equals(meta.Name, StringComparison
Posted to
Getting Started
(Forum)
by
jsalwen
on 12/13/2005
Page 1 of 1 (4 items)
WindowsClient:
ASP.NET AJAX 4.0 Data Binding on MSDN Magazine
WindowsClient:
Don’t miss out..
TechNet Edge:
Improving Collaboration with SharePoint - Tech Focus December 2009 Part 1
Channel 9:
Channel 9 Live at PDC09: Scott Guthrie
Channel 10:
Get Discounted Concert Tickets at the New Windows Section 7
Channel 10:
Get Bing Wallpapers on the iPhone
Channel 10:
Bing Gets a New Toolbar
ASP.NET:
More on medium trust: what permission are you missing?
Channel 9:
Channel 9 Live at PDC09: Bob Muglia
WindowsClient:
Adventures With Windows Azure Diagnostics
Mix Online:
Adventures With Windows Azure Diagnostics
Channel 9:
Channel 9 Live at PDC09: Ray Ozzie
Channel 9:
Coding4Fun: DrinkTendr
Channel 9:
TWC9: Scott Hanselman, John Galloway, Bing, parallel unit tests, more
TechNet Edge:
ISA to TMG Migration Guidance
Channel 9:
Life at Microsoft: Episode 3
TechNet Edge:
Microsoft Windows Server 2008 to AITP
ASP.NET:
How important is medium trust to you?
WindowsClient:
Microsoft Web Platform & You
WindowsClient:
New Book: Developing for Microsoft Surface
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online