I have a page in which I want to update a Quick Launch node on the fly. Basically, the page is loaded with a value in the query string. I want to pass that query string from one page to another when they click on the link. So, I have a custom web part that updates the node’s url to “mypage.aspx” + Request.Querystring[“Value”]. This works.
Problem is, the link is already rendered unto the page by the time the web part is loaded. So, the link is still the version that it was LAST time it was changed. This won’t do, because I need the link to contain the same value that the querystring contains on that instance of the page.
So, if my page is
“somepage.aspx?value=abc”
…I need the link in the quick launch to point to
“someotherpage.aspx?value=abc”
Currently, with my code in a custom web part, it will update the quick launch link, but AFTER it has been rendered. So, the link still points to
“someotherpage.aspx?value=xyz”
Is there a way/type of web part or whatever to run this code on PreRender or something so that the value is updated BEFORE the control is rendered on the page?
Thanks!
Update: I just did it with JQuery. You know how SharePoint is… the fact that you can hack it to pieces and force it to do what you want proves that you can supposedly do “anything” with SharePoint.