如题
比如说当前用户为 张三
就显示 你好:张三
要求不能用控件,只能用javascript来写我现在一点头绪都没有,希望各位大侠帮帮忙

解决方案 »

  1.   

    你用户名是用什么存的?cookie 的话js可以直接用,session的话可以用ajax,不用控件你就直接response.write()出来
      

  2.   

     public string strname = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            strname = "小非";
        }<html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>无标题页</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        aaa 你好:<%=strname %> bbb
        </div>
        </form>
    </body>
    </html>
      

  3.   

    回1楼的
    当前用户信息用profile存在数据库里
      

  4.   

    回2楼
    你js可以写的详细些么
    js我会的不太多
    你那样写会报错的