I am trying to add a query string at the end of a URL to control a hyperlink as follows
HyperLink testLink = new HyperLink(); testLink.NavigateUrl = "http://www.example.com" + "?siteId=asd343s32kj343dce";
But when it is displayed in the browser, it is displayed as http://www.example.com/?siteId=asd343s32kj343dce ( / char after .com ).
And if testLink.NavigateUrl = "http://www.example.com/abc.aspx" + "?siteId=asd343s32kj343dce";
Then the link displays correctly as http://www.abcd.com/abc.aspx?siteId=asd343s32kj343dce (without additional characters).
Did I miss something? Please advice.
Thank you Krsna.
source share