开发者

prevent hyperlink control from reordering navigateurl attribute

开发者 https://www.devze.com 2022-12-14 09:48 出处:网络
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

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&inl开发者_JAVA技巧ineId=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?


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消