English 中文(简体)
链接没有显示。
原标题:Link isn t shown

hello i have a silly issue, my link isn t shown. i use the same code like in an other programm (despite i forget something)

 <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">


<script  runat="server">


    Sub Page_Load()

        If IsPostBack Then
            meinnewLink.InnerHtml = "Beispiele und weitere Erklärungen"
            meinnewLink.HRef = "http://lucene.apache.org/java/2_9_1/queryparsersyntax.html"
            meinnewLink.Title = "Lucene"
            meinnewLink.Name = ("Arial")
            meinnewLink.Target = "_top"
        Else
            meinnewLink.InnerHtml = "Beispiele und weitere Erklärungen"
            meinnewLink.HRef = "http://lucene.apache.org/java/2_9_1/queryparsersyntax.html"
            meinnewLink.Title = "Lucene"
            meinnewLink.Name = ("Arial")
            meinnewLink.Target = "_top"

        End If

    End Sub

</script>


<head runat="server">
    <title>Hilfe</title>
</head>
<body>
    <form id="form1" runat="server">

    <asp:Image ID="Image1"
runat="server"
AlternateText="logo"
ImageUrl="logo.bmp"/>


    <p><u> Grundfunktionalitäten:</u></p> 
    Volltextsuche: Suche im Text<br />
    Dateinamensuche: Suche im Titel<br />
    Eine Kombination ist möglich<br /><br />

    OR: Oder Verknüpfung der Suchbegriffe (Defaulteinstellung)<br />
    AND: Und Verknüpfung der Suchbegriffe<br />
    NOT: schließt einen Suchbegriff aus<br />
    *: Wildcard für mehrere Buchstaben<br />
    ?: Wildcard für einen Buchstaben<br />
    Hinweis: Wildcard darf nicht der erste Buchstabe sein <br />

    <p><font size="2"><a runat="server" id="meinnewLink"  style ="font-family :Arial " ></a></font></p>


    </form>
</body>
</html>

"好的,我搜索了错误,但我找不到它。"

最佳回答

缺少meinnewLink.Text?

尝试使用服务器端控件,如LinkButton或HyperLink。

问题回答

我认为内尔语是错误的,它应当是内塔里特。

编辑

当我尝试重新创建这个时,我在代码后台文件中覆盖了页面加载事件,并且脚本代码没有运行,当我从代码后台中删除它时,它运行了。您能检查一下代码后台中是否有页面加载事件吗? (Translation may vary depending on context and desired level of formality)

在客户端上右键单击页面,查看源代码...你能看到标签之间的文本吗?





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签