When I set my useragent string to "ClickTale bot" the combined CSS and JS files are not rendered. Why is this?
2 Answers, 1 is accepted
0
Atanas Korchev
Telerik team
answered on 05 May 2010, 11:50 AM
Hello Karl,
Here is the code of the Render method:
public void Render()
{
if (hasRendered)
{
throw new InvalidOperationException(Resources.TextResource.YouCannotCallRenderMoreThanOnce);
}
if (ViewContext.HttpContext.Request.Browser.SupportsCss)
{
Write(ViewContext.HttpContext.Response.Output);
}
hasRendered = true;
}
The highlighted part shows why the CSS is not output with this user agent. If this is not the desired behavior you can modify the source code.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.