.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Link added to Global Nav does not work from AAM URL

Posted By:      Posted Date: October 08, 2010    Points: 0   Category :SharePoint

I setup the "My Site" as a separate Web App, as instructed to do so according to best practices.

As such, getting it to be linked from the Global Nav (top navigation bar) requires it to be added manually with a specific URL.  I wasn't able to find any other way to get this to work.

This works great, when accessing from inside the network - however when accessing the site from the internet using an Alternate Accessing Mappings that "hardcoded" URL does not resolve.  Alternatively, if this URL is "hardcoded" to work from the Internet URL, then internally it will not resolve...

Any ideas on what to do?

Can an Audience possibly be setup to display one address or the other based on where the traffic is coming from?

View Complete Post

More Related Resource Links

Global not work

Global.asax:void Application_Error(object sender, EventArgs e)     {        if (HttpContext.Current.Server.GetLastError() != null)        {            Exception myException = HttpContext.Current.Server.GetLastError().GetBaseException();            string mailSubject = "Error in page " + Request.Url.ToString();            string message = string.Empty;            message += "<strong>Message</strong><br />" + myException.Message + "<br />";            message += "<strong>StackTrace</strong><br />" + myException.StackTrace + "<br />";            message += "<strong>Query String</strong><br />" + Request.QueryString.ToString() +            "<br />";            //SmtpClient mySmtpClient = new SmtpClient();    

Error adding Global Navigation Link


We the following error when adding a custom link to the Global Navigation at the top-level of the site (sub-sites inherit Global Nav):

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Here is the full error log:

09/29/2010 13:38:11.66 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Name=Request (POST:http://SERVER:80/_layouts/AreaNavigationSettings.aspx)	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.66 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Logging Correlation Data   	xmnv	Medium 	Site=/	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.71 	w3wp.exe (0x1194)            	0x03A4	Web Content Management    	Publishing Cache       	fev4	Medium 	CreatePageFromUrlNoUpperCase failed with ArgumentException. Url = '/TEST/SITEPAGES/HOME.ASPX'.	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.71 	w3wp.exe (0x1194)            	0x03A4	SharePoint Foundation     	Monitoring          	b4ly	High  	Leaving Monitored Scope (CachedObjectFactory: Caching Page at: /TEST/SITEPAGES/HOME.ASPX). Execution Time=19.7002691682881	0b656ac4-ae85-417a-9b8e-fa10d9bfda18
09/29/2010 13:38:11.72 	w3wp.exe (0x1194)            	0x03A4	Web Content Management    	Publishing Cache       	fev4	Medium 	CreatePageFro

Making a link work in a JS function



I'm new to jQuery, but learning fast, and loving the new functionality!
I'm using a Flash upload component that all works fine, and once it's complete (file uploaded) it calls the following function:
function EAFlashUpload_onResizedImagesUploadEnd() {

Fill don't work at panel added on the run ????


I have a form with a Menustrip placed at the upper edge og the form.

When I add a Panel by code and sets its Dockingstype to Fill - then it fills "up under" the menustrip ???????'

If I do the same by the designer - it don't !!!!!

Isn't that a bug ?

Best regards KSor, Denmark

Unable to Send email when work flow added from designer


I intiate a workflow when item added to a doc library it is not sending Email notification.

Global Exception Handling with ASP.NET

After your global exception handler has done its work, you'll want to redirect the users of your website to a friendly page that tells them that something has gone wrong, and then provide them with customer support information as well as a link back to your web application's home page.

RadioButton inside GridView, How to get it work as normal

Did you tried before to drag a RadioButton control inside a Gridivew templatefield, and then you attempt to select these RadioButtons , you will notice that the behavior of RadioButton control will be changed and it will work just like the behavior of checkbox control! the user will be able to select more than one radiobutton in the grid!

MSDN Abstract Classes Link

MSDN Reference For Abstract Clases

Looking for guidance: wanting to work with AJAX architecture



I'm starting a small website that will be backed by a database, and will allow a small number of users to authenticate and select an entry in the database, and then view (and optionally update) a corresponding entry (think master-detail).

I have some flexibility in how I'll do this, but I'd really like to incorperate some newer AJAX style coding, eliminating some page postbacks. I think this is a great opportunity to learn the concepts well.

I'll probably go with an ASP.NET 4.0 site. From what I've seen there are MANY ways to go about this:

-WCF Data Services to expose the data, and consume in ASP.NET

-Page methods to expose the data, separate method to update the data

-I'd rather avoid the UpdatePanel because I'm really looking for a full hands-on approach, with learning client side scripting being an objective as well.

Beyond that, it seems that one can use jQuery to build clientside templates, but also one can use the ASP.NET AJAX template engine (in ASP.NET 4.0 I believe).

A concern I have: users should only be able to work with the data exposed via these endpoints if they are logged into the website. Hopefully I can somehow reuse the ASP.NET forms authentication cookie for this purpose. 

Well, I hope I've posted enough to a

animate effect work but the render items are messed up.


Hi all,

     I have a very unique problem, humm i think. I am using a jquery effect that animate bounce effect, i have a line in my javascript pageLoad function $("#UserBrowserInfoDIV").show('bounce'); - the effects run smoothly but what it does is mess up the bolded text in the div. I have try the items inside the div without bolding and it works fine and no render problem but when bolded the text that are bolded is quite messed up, and barely readable.

Please let me know is there anything else i can do i really would like use this effect.

P.S all the effect have the same render problem, and i am using ie8 under compatibility mode.





Why getTreeNode does not work?



I try to run a  treeview example from msdn:


I also want to use code from


Here is my code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register TagPrefix="mytree"
Assembly="Microsoft.Web.UI.WebControls" %>
 <script type="text/javascript" language="javascript">

     function xxx() {

         var myNode = treeview_one.getTreeNode(treeview_one.selectedNodeIndex);


<form id="myform" runat="server">
<mytree:treeview id="treeview_one"  runat="server" Child

video tutorial link for composite and rendered custom server control


hii all

i am new to technology so go easy on this post

according to what i read from web there are 3 type of custom server controls

1 superclass

2 composite

3 rendered

i found video tutorial for superclass custom server control but couldnt find video tutials for other 2.

please forward me link for composite and rendered custom server controls video tutorial  

Category attribute of user control property does not work correctly in categories tab.



I have a User Control (ascx) and a property which a want to display in my categories tab in Visual Studio in the category named "Styles".

[Category("Styles"), DefaultValue(""), Description("The value for formating something.")]
public String MyFormatProperty
set { /* the code for set */; }
get { /* the code for get */; }

And here is the problem: Actually I do not need a get, because I only have to set the property (write only property). But when I omit the get, the property is displayed in the "Misc" category in the categories tab in Visual Studio. Only when I code the get as well, then the property is displayed correctly in the "Styles" category in the categories tab in Visual Studio.

Does anybody know why? How can I display the category correctly only with set?

Thanks, S.

Html Link Button


Hi All,

I would like to create a html link button(in aspx page) so that the page could not post back and some controls to display on clicking link button.

Can any one of you help me regarding this issue?

Let me know if you have any queries.



Can't read global resource in asp button


I have translated Text Ok in arabic and I have that placed in global Navig.resx file

<asp:Button ID

displaying dynamic added value in reports



I my application i have generated dynamic rows that contains some textbox values, i need to take those values and display in

reports. I am storing that dynamically added values in another table. please help me.

How to display related tables in one crystal report and how to link this report with combobox?


Hi! I want to display a crystal report in my vb.net application. Suppose I have tables named student details, student marks, student address, etc... Now if I want to display all these details (fields of all tables) in one crystal report (with page breaks if necessary) then how will I achieve it. I will be providing a combo box in my application that contains list of student names. How can I link this combo box with the cystal report to dynamically display report for different student on selected index change of combo box? Help me friends. An example would be appreciable.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend