Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net target=\u具有相同url的空白打开_Asp.net_Html_Css - Fatal编程技术网

Asp.net target=\u具有相同url的空白打开

Asp.net target=\u具有相同url的空白打开,asp.net,html,css,Asp.net,Html,Css,我在我的页面中添加了超链接控件。当我输入“”时,它将在新窗口中打开(良好)并指向google 1。当我进入“www.google.com”时,它会在新窗口中打开,但Url是“”。为什么会这样?如何指向www.google.com <a href= '<%# Eval("ConferenceUrl") %>' runat ="server" id="ConferenceUrl" target="_blank"> <%# Eval("ConferenceUrl")%

我在我的页面中添加了超链接控件。当我输入“”时,它将在新窗口中打开(良好)并指向google

1。当我进入“www.google.com”时,它会在新窗口中打开,但Url是“”。为什么会这样?如何指向www.google.com

<a href= '<%# Eval("ConferenceUrl") %>'  runat ="server" id="ConferenceUrl" 
target="_blank"> <%# Eval("ConferenceUrl")%> </a>


我相信你需要
http://
在url中,我相信。你需要
http://
在url中,我相信。

你必须在href

的开头添加http://你必须在href

的开头添加http://前缀。
需要
http://
前缀。更改数据或将其添加到
href
属性

<a href= 'http://<%# Eval("ConferenceUrl") %>'  runat ="server" id="ConferenceUrl" target="_blank"> <%# Eval("ConferenceUrl")%> </a>

需要有
http://
前缀。更改数据或将其添加到
href
属性

<a href= 'http://<%# Eval("ConferenceUrl") %>'  runat ="server" id="ConferenceUrl" target="_blank"> <%# Eval("ConferenceUrl")%> </a>