Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Dynamically set the title and meta description and keyword tagsDynamically set the title and meta description and keyword tags
Previous
 
Next
New Post
5/4/2007 5:31 PM
 

Well, that's the beauty of .NET. Ultimately, it doesn't care what language you use. And you can use VB or C# for module development. There have been times in the past when the Core had some C# components in it, when a particular team member needed to put something out quickly.

Some of us have learned the hard way, too-- NEVER be tempted to modify the core code! That is, unless you are submitting it to the Core Team for consideration. And then NEVER commit production sites to it until the Core Team has integrated it into the core. Back when I was working on the skinning solution, there were a few who had committed production sites to the "XML Skins" approach. Then got bit hard in the butt when that wasn't what was finally implemented.

So I NEVER touch the core code unless there's a definite bug, and I've submitted it to the present Core Team for inclusion.

Again, glad I could help.

 
New Post
8/31/2010 12:46 PM
 
Here's a really lightweight to accomplish the same result. Early in your Page_Load code, initialize a nofollow flag in ViewState like this:
ViewState["isNoFollow"] = false;
When you identify a nofollow condition in your Page_Load code, set a flag into the ViewState like this:
ViewState["isNoFollow"] = true;
The META ROBOTS tag already exists on every page with the ID MetaRobots, so you don't have to worry about creating it... just find it & modify it if necessary. So insert this line into your Page_Prerender function:
if ((bool)(ViewState["isNoFollow"]))
((HtmlMeta)(Page.Header.FindControl("MetaRobots"))).Content = "NOINDEX, NOFOLLOW";
That's all there is to it!
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Dynamically set the title and meta description and keyword tagsDynamically set the title and meta description and keyword tags


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out