Well, I'm trying to realize a navigation similar to the navigation on this site. The special sub-navigation under Products, Solutions, Purchase and so on.
To give the Backend-User the posibility to design the sub-navigation I have created a page under the specific Menu-Item. Now I want to load this page (only the content between the form-tags) to display it as sub-navigation.
I've tried to use this lines of code
var navContent = item.FindControl("NavContent") as Literal;
var mywebReq = WebRequest.Create("puturlhere");
var mywebResp = mywebReq.GetResponse();
var sr = new StreamReader(mywebResp.GetResponseStream());
var strHTML = sr.ReadToEnd();
string lines = Regex.Split(strHTML, "
navContent.Text = lines;
but since the Links of inserted Navigation-Controls are rendered relative, the links doesn't work. Is there a way to let the navigation links rendered abolute?
Or is there a better way to accomplish this goal?
Thank You for Your help!