prevent hyperlink control from reordering navigateurl attribute
-
20-09-2019 - |
Question
I created a hyperlink control extended from HyperLink, but I do not know how to override the navigateurl property, the problem is: im using a jquery library that depends on the url to look like this
#TB_inline?height=285&width=510&inlineId=contactUsContent
problem with .net is that it reorders this into:
../controls/?height=285&width=510&inlineId=contactUsContent#TB_inline
how can i force it to accept my string?
Solution
i think i was too hasty to ask this question, the simple solution was to decieve the hyperlink into making it an absolute url instead of relative, so all i had to do is insert a "/" at the beginning of the url
silly me!
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow