<%@ Import namespace="KGGS_Pro" %>

解决方案 »

  1.   

    AllUserInfo myuser=new AllUserInfo();
    直接声明调用即可.不过你的
    AllUserInfo类中的属性最好设为public .不然不能访问的。
      

  2.   

    <%@ Register Namespace="KGGS_Pro"%>
      

  3.   

    AllUserInfo中的方法我如何引用!!!我不会引用啊请指教!!
      

  4.   

    <%@ Page language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="KGGS_Pro.Login" %>
    <%@ Import namespace="KGGS_Pro" %>
    <HTML>
    <HEAD></head>
    <body></body>
    </html>
    </html>
    是这样加进去是吗?那么我想用AllUserInfo中的方法如何用?是在index.aspx中引用还是要在index.aspx.cs中用里面的方法!!!请指教!!!
      

  5.   

    AllUserInfo myuser=new AllUserInfo();
    myuser.属性名
    muuser.方法名(参数)
      

  6.   

    在index.aspx.cs中前面加using KGGS_Pro;e.g:
    using System;
    using KGGS_Pro;
      

  7.   

    谢谢(老鼠米)和XiaoHui0930正确了!!马上给分!!小弟还有问题就是我能不能在index.aspx中用呢?我想在index.aspx中定义一个函数用怎么作?我可以加分给你们的,请帮小弟一把!!!
      

  8.   

    你参考index.aspx.cs中的那些函数结构就可以了。基本一样的。