Building Hyperlink

  • Thread starter Thread starter Derek Hart
  • Start date Start date
D

Derek Hart

I am building a hyperlink into an Outlook Email from a winforms client. This
is just the dumbest thing.

Here is what the string looks like:
http://localhost/Order/Product_Orders/EditProduct_OrdersPage.aspx?Product_Orders=Product_Order_ID70

That is the string I get from Me.Page.Request.URL.ToString

So I simply try to build a hyperlink like this:

msg &="<A HREF=" & Me.Page.Request.URL.ToString & ">Click to edit order</A>"

And I don't get a neat looking hyperlink with Click to edit order, but I get
this:

Product_Order_ID70>Click to edit order

It seems to cut off at the equals sign.

Any idea what is wrong with this simple html to get a link?
 
So I simply try to build a hyperlink like this:

msg &="<A HREF=" & Me.Page.Request.URL.ToString & ">Click to edit order</A>"

You are missing the quotes. The HREF property of A tag must be
delimited by quotes.

msg &="<A HREF=""" & Me.Page.Request.URL.ToString & """>Click to edit
order</A>"
 
Back
Top