Building Hyperlink

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?
 
T

Thiago Macedo

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>"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top