如何在ASP.NET中显示加载img以进行页面加载? [英] How to display loading img for page loading in ASP.NET?

查看:74
本文介绍了如何在ASP.NET中显示加载img以进行页面加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有ASP.NET(C#)网络应用程序,其中我有一些页面和每页

i想放置一个加载img,而不使用updateprogress。



使用javascript / jquery可以这样做吗?



我尝试了什么:



i尝试使用updateprogress但是当我在该页面中有转发器时它会出现问题,并且转发器中的一些按钮,然后这些按钮无法调用他们的活动。



请帮助我。



谢谢

Hi guys,

I have ASP.NET(C#) web application, in which i have some pages and in each page
i want to place a loading img, without using updateprogress.

Using javascript/jquery can i do this?

What I have tried:

i have tried using updateprogress but it is making problem when i have repeater in that page, and have some buttons in that repeater, then these buttons are not able to get calling their events.

plz help me.

Thanks

推荐答案

你好,



这里有几个有趣的项目。

Hello,

Here are couple of interesting projects.


  1. 在页面加载时显示加载进度图像或使用ASP.Net显示PostBack [ ^ ]
  2. 使用jQuery加载页面时显示加载图像 [< a href =http://www.jquerybyexample.net/2012/06/show-loading-image-while-page-is.htmltarget =_ blanktitle =New Window> ^ ]

  1. Display loading progress image when Page Loads or does PostBack using ASP.Net[^]
  2. Show loading image while Page is loading using jQuery[^]



问候,

Prasad P. Khandekar


有有几种方法可以实现,你可以使用HTML DIV来显示加载进度图像,使用JQuery,见下面的代码片段

[code]

There are couple of ways to do it, you can use HTML DIV which is used to display the loading progress image, using JQuery, see below snippet
[code]
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

<script type="text/javascript">

    function ShowProgress() {

        setTimeout(function () {

            var modal =


( '< div />');

modal.addClass(modal);
('<div />'); modal.addClass("modal");


这篇关于如何在ASP.NET中显示加载img以进行页面加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆