I have an email that I am trying to send that contains a hyperlink which is supposed to open the target page in a new window or tab when clicked. However the problem I am having is there is no space between the querystring variable "item_id" and the "target" tag.
As you can see below the target is running onto the querystring variable thus causing a page error. This is how the link is formed in runtime.
http://www.mystore.com/item.aspx?id=1target='_blank'
I need to have the link look like this: http://www.mystore.com/item.aspx?id=1 target='_blank'
Below is the code I am using. In the quotation marks contain the "target", I have a space before "target". But the space is not there at runtime.
Dim viewLink As String
viewLink="<a href=" + "http" + "://www.mystore.com/item.aspx?id=" + item_id + " target=" + "_blank" + ">" + "View Item" + "</a>" + "<br/><br/>"
Can anyone tell me how to fix this?