Click here to Skip to main content
14,427,400 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to insert in <%#=address%>. How do you do this in I know how to do it in php:

<img src="<%#=address%>&zoom=13&size=600x600&maptype=roadmap&sensor=true" alt="Home" />
Updated 17-Jun-14 23:24pm

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

You may try as shown below.

Note: This is just a sample.Please Adjust it according to your app.

1. Redirect to a location with a query string :

Response.Redirect("YourPage.aspx?id=" + yourId.toString(), true);

2. Render the button as a LinkButton and set the URL :

LinkButton myLinkButton = new LinkButton("YourPage.aspx?id=" + yourId.toString(), true);

3. Render the button as a client side link (with Repeater control)
<a href="/KB/answers/YourPage.aspx"?id=<%# Eval("yourID") %>'>Link</a>
Teledextri 18-Jun-14 4:56am
How do you define <%# Eval("yourID") %> How do you assign a value?
Sampath Lokuge 18-Jun-14 5:14am
Actuality it's a Repeater Control.Please check this link for more info.
Teledextri 18-Jun-14 6:25am
How do you define "yourID" in vb without a gridview or Repeater?
Sampath Lokuge 18-Jun-14 6:47am
Why can't you use 1st or 2nd method if you don't have any repeater thing in your app ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100