【发布时间】:2014-05-09 09:54:15
【问题描述】:
我在 asp.net 中有我正在写地址的文本框。
在下面的链接按钮上,我想将其定向到 goole 地图。
我有以下文本框:
<asp:TextBox ID="txtJobAddress" runat="server" TextMode="MultiLine" Width="95%" Height="20px"
onBlur="javascript:saveChanges('JobAddress');"></asp:TextBox>
链接按钮如下:
<a href="http://maps.google.com/maps?q=<%=txtJobAddress.Text%>" target="_blank">
<img src="images/gmap_button.gif" alt="Map" />
</a>
但是当它通过锚标签被引导时,它没有捕捉到“q”参数。
它的给定为:
https://www.google.com/maps/preview?q=
为什么它没有取值:
<%=txtJobAddress.Text%>
请帮帮我,我怎样才能在此处附加文本框字符串
http://maps.google.com/maps?q=
如下
【问题讨论】:
标签: c# javascript asp.net .net google-maps