不用updatepanl   有没有谁有相应的代码案例,谢谢。据说有ajax插件的,可是我不太会弄,有其他的ajax方法最好,在线等

解决方案 »

  1.   

    使用一些JS库中提供的Ajax就可以了。如JQuery。不过做好也能够熟悉Ajax的原理。
      

  2.   

    http://dotnet.aspx.cc/article/d94323a7-e322-4ead-9f25-6e6629c8012e/read.aspx不刷新页面,改变 GridView 的显示内容方法
      

  3.   

    如果不是从数据库中取的话,javascript就可以
    从数据库读,可以用jquery
      

  4.   

    jquery我该怎么用,有相应的源码没有,急用
      

  5.   

    http://dotnet.aspx.cc/article/d94323a7-e322-4ead-9f25-6e6629c8012e/read.aspx
      

  6.   

    http://www.cnblogs.com/chenping-987123/archive/2010/08/27/1809877.html
    一个JQUERY AJAX的例子。结合网上的资料研究去吧。楼主。
      

  7.   

    取到数据,document.getElementById("xxID").innerHTML="新的内容"
      

  8.   

    可以用时间控件,每分钟自动刷新一次,不然你就用updatePanel啊,或者其他各位所说,jquery!
      

  9.   

    jquery,想当成熟的一个ajax类库!
      

  10.   

    jquery, ajax, prototype 都行
      

  11.   

    1。如果 你的值 是固定的。 可以通过简单的 js 搞定。
    比如 某个事件后 调用 JS 方法 。Js 方法 获取 控件 。然后 设置控件值function jsM()
    {
       document.getElementById("lable1").value = "新值";
    }<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
    <asp:Button ID="Button1" runat="server" Text="点击后无刷新改变Lable1的值" />2 。如果 你 的 值 是通过 数据库 动态过来的。。
     2.1 你可以使用js 调用webService 
     2.2 你可以用Ajax  2.2 做为异步获取数据 首先你得使用一下JS // JScript 文件//创建xmlHttpRequest对象
    function createRequest() 
    {
    var request;
      try 
      {
        request = new XMLHttpRequest();
      } 
      catch (trymicrosoft) 
      {
        try 
        {
          request = new ActiveXObject("Msxml2.XMLHTTP");
        } 
        catch (othermicrosoft) 
        {
          try 
          {
            request = new ActiveXObject("Microsoft.XMLHTTP");
          } 
          catch (failed) 
          {
            request = false;
          }
        }
      }
      return request;}//发送请求
    function callServer(request,url,updatePage) 
    {
      request.open("GET", url, true);
      // Setup a function for the server to run when it's done
      request.onreadystatechange = updatePage;
      // Send the request
      request.send(null);
    }<script type="text/javascript">
    var affiche;
    window.onload = function()
    {
    affiche=createRequest();
        var url='RequestPage/GetAffiche.aspx';
        callServer(affiche,url,initaffich);
    }
    function initaffich()
    {
        if(affiche.readyState == 4) 
        {
            document.getElementById('divAffiche').innerHTML = affiche.responseText;
        }
    }2.1  例子就不给出了。 可能你也不是很想要。关于JS 调用webService 网络也一大把