Microsoft Content Management Server - catch webauthorexception

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > October 2005 > catch webauthorexception





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author catch webauthorexception
Nedo

2005-10-28, 4:58 pm

hi

i would like to catch the webauthorexception "no placeholder
PlaceholderToBind-Value xxx found" to create the placeholder
dynamically... how could i do that??
thanks


regards
nedo

Nedo

2005-10-28, 4:58 pm

problem solved...
i did it in a custom placeholder... i have overridden the OnInit
function:
protected override void OnInit(EventArgs e)
{
base.OnInit (e);
try
{
PlaceholderDefinition pd =
CmsHttpContext.Current.Posting.Template.PlaceholderDefinitions[this.PlaceholderToBind];
if(pd==null)
{
MyCreatePlaceholderDefinition(this.PlaceholderToBind);
}
}
catch(Exception ex)
{


}
}

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com