2017-03-02 74 views
0

我在famenroll1.aspx页面中有一个url。页面的代码如下:asp.net的内容在页面中不可见

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="famenroll1.aspx.cs" Inherits="famenroll1" %> 

<!DOCTYPE html> 

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <META http-equiv=Content-Language content=en-us> 
<META http-equiv=Content-Type content="text/html; charset=windows-1252"> 
<meta http-equiv="x-ua-compatible" content="IE=10"> 
<style> 
#Enroll1_url{ 
    padding: 1px !important; 
    text-decoration:none !important;   
    background-color: #0B70BE; 
    background-image: -moz-linear-gradient(center center , rgb(11, 112, 190) 0%, rgb(11, 112, 190) 100%) !important; 
    border-radius: 2px !important; 
    border: 2px solid rgb(43, 125, 185) !important; 
    font-weight: bold; 
    font-size: 13px !important; 
    font-family: Helvetica Neue,Helvetica,Arial,sans-serif; 
    height: 28px !important; 
    text-shadow: none !important; 
    color: rgb(255, 255, 255) !important; 
} 
</style> 
<script type="text/javascript"> 
     if (document.layers) { 
      //Capture the MouseDown event. 
      document.captureEvents(Event.MOUSEDOWN); 

      //Disable the OnMouseDown event handler. 
      document.onmousedown = function() { 
       return false; 
      }; 
     } 
     else { 
      //Disable the OnMouseUp event handler. 
      document.onmouseup = function (e) { 
       if (e != null && e.type == "mouseup") { 
        //Check the Mouse Button which is clicked. 
        if (e.which == 2 || e.which == 3) { 
         //If the Button is middle or right then disable. 
         return false; 
        } 
       } 
      }; 
     } 

     //Disable the Context Menu event. 
     document.oncontextmenu = function() { 
      return false; 
     }; 
    </script> 
    <Script Language="VBScript" Src="GetLearn.vbs"> 
</head> 
<body> 
    <asp:HyperLink ID="Enroll1_url" NavigateUrl="#" Text="Please Try Again" runat="server" /> 

    <p style="position:absolute !important; top:5px !important; left:4px !important;"> 

</body> 
</html> 

相应famenroll1.aspx.cs页如下:

public partial class famenroll1 : System.Web.UI.Page 
{ 
    string name, app_user, ai_logid, finger, cust_type; 

    protected void Page_Load(object sender, EventArgs e) 
    { 
     name = Request.QueryString["name"]; 
     app_user = Request.QueryString["app_user"]; 
     ai_logid = Request.QueryString["ai_logid"]; 
     finger = Request.QueryString["finger"]; 
     cust_type = Request.QueryString["cust_type"]; 

     changeUrl(); 
    } 

    void changeUrl() 
    { 
     Enroll1_url.NavigateUrl = "famenroll1.asp?name="+name+"&app_user="+app_user+"&ai_logid="+ai_logid+"&check=&finger=1&cust_type="+cust_type; 
    } 

} 

但asp.net网页的内容没有显示。当我运行它时,famenroll1.aspx中没有超链接。可能是什么原因?请帮帮我 。

+0

当您在浏览器中查看页面的源代码时,它看起来像什么?你说链接没有显示 - 这将有助于知道它是否实际不存在,或只是不可见。 – SouthShoreAK

回答

1

您正在从.aspx文件调用.vbs文件。我认为这不是从.aspx文件调用.vbs脚本的确切方式。

相关问题