Avoid Loading Time While Using Repeater

Jul 26, 2010

I am using .net 3.5 framework and i am using repeater control in my application.I am using link button to display the records.Displaying 9 records in a page.Show all button is there.When i click on show all button(Result of 250 records) then the page is loading and hanging for some time anf then it is displaying the all records.I know the time taken between the server and the browser.But i need to avoid the hanging of the page and the loading time should be reduced.How to solve this issue.If the page contains 9 products then it is loaded quickly.But if it contains lot of images then it's hanged. some of my friends told to use the jquery but i have noo idea regarding jquery so can anyone give an solution for this.Till it's breaking my head.

View 2 Replies


Similar Messages:

Web Forms :: Avoid Loading Time While Switching Over From One Menu Item (tab) To Another?

Feb 24, 2011

I have used the following controls in my web page.

1.Menu
2.Multi view
3.view
4.Gridview

But my problem is...whenever i clicks on the menu item it loads particular content individually. I mean if i click on menuitem1 it takes some time to load Gridview1 , after if when i click on menuitem2 again it takes some time to load Gridview2. Is there is any way to load all the menu items content during first time of page load. So that we can avoid loading time while switching over from one menu item(tab) to another.I have used the following code

[Code]....

View 1 Replies

Avoid Loading A LINQ To SQL Object Twice When Editing It On A Website

Apr 9, 2010

I know you are all tired of this Linq-to-Sql questions, but I'm barely starting to use it (never used an ORM before) and I've already find some "ugly" things. I'm pretty used to ASP.NET Webforms old school developing, but I want to leave that behind and learn the new stuff (I've just started to read a ASP.NET MVC book and a .NET 3.5/4.0 one). So here's is one thing I didn't like and I couldn't find a good alternative to it.

In most examples of editing a LINQ object I've seen the object is loaded (hitting the db) at first to fill the current values on the form page. Then, the user modify some fields and when the "Save" button is clicked, the object is loaded for second time and then updated. Here's a simplified example of ScottGu NerdDinner site.

//
// GET: /Dinners/Edit/5
[Authorize]
public ActionResult Edit(int id) {
Dinner dinner = dinnerRepository.GetDinner(id);
return View(new DinnerFormViewModel(dinner));
}
//
// POST: /Dinners/Edit/5
[AcceptVerbs(HttpVerbs.Post), Authorize]
public ActionResult Edit(int id, FormCollection collection) {
Dinner dinner = dinnerRepository.GetDinner(id);
UpdateModel(dinner);
dinnerRepository.Save();
return RedirectToAction("Details", new { id=dinner.DinnerID });
}

As you can see the dinner object is loaded two times for every modification. Unless I'm missing something about LINQ to SQL caching the last queried objects or something like that I don't like getting it twice when it should be retrieved only one time, modified and then comitted back to the database. So again, am I really missing something? Or is it really hitting the database twice (in the example above it won't harm, but there could be cases that getting an object or set of objects could be heavy stuff).

View 3 Replies

Crystal Reports :: Each And Every Page Loading Time And Where Actually It Take Long Time?

Nov 22, 2010

I have developed an application in asp.net with crystal report. It has more than 30 pages in the project. Now I want to improve the performance of the application.1. What I need is , I want to know each and every page loading time and where actually it take long time to load while requesting the page.There are so many tools available. But am not able to follow as where actually the problem is and how to solve.

View 6 Replies

MVC :: Avoid Loading Images When Using Caching And Javascript Image Preloader In An Mvc Application?

Jun 18, 2010

i have implemented an image preloader using javascript inside my mvc 2 web app, in order to display an animated "loading" image .gif while sequentially displaying page images.I have also implemented caching using a cache profile for the controller action that displays the specific page ([OutputCache(CacheProfile = "LongCache")]).The problem is that the image preloader javascript is called when caching is applied. I was wondering whether i could, somehow, use the image preloader code only when the page gets refreshed and not when the cached version is rendered.

View 2 Replies

Crystal Reports :: Taking Too Much Time For Loading On First Time?

Dec 5, 2010

when i am runnig the project, the crystal report(rpt) file will taking too much time for loading on first time... any one please help me to avoid the time delay for loading the rpt file in first time .

View 2 Replies

Timestamp - How Much Time Took Whole Page Loading Time In Asp

Jan 18, 2010

i currently use the context.timestamp function to get the time in the beginning of the request but i want to know if i can check the time sooner in the pipeline (before the load page phase) or the timestamp is the earlier time i can get. now i need to find the latest time after the request was processed, of course i can check the time in the end of the function, but is there somewhere else where i can check the time of the request ending.

View 3 Replies

Forms Data Controls :: How To Avoid Repeater Databind On ItemCommand

Apr 3, 2010

I have a repeater which does quite expensive processing when it is populated. It gets the info from a web service which is itself a federated search service and will take 15 to 20 seconds to return results.

In each repeater item/alternatingitem, i have 3 imagebuttons doing some actions (saving in session some ID's, updating some custom collections...) , the problem is when clicking on one of the buttons, the repeater will trigger the command and then databind again, which takes quite some time to process again..

View 10 Replies

Forms Data Controls :: Avoid Reconnection To Database While Paging In Repeater?

Oct 22, 2010

Tell me how can i avoid reconnection to database while paging in repeater?

View 1 Replies

Web Forms :: Avoid Sending Emails Each Time An Exception Is Caught?

Mar 23, 2011

I have a .exe application that runs daily. I want to avoid sending emails each time an exception is caught.I want to compile a list of errors (in a unique log file fileupload[mm/dd/yyyy].log) while the application runs. Then send an email with the log attached after it the application finishes.What would be the approach for this?

View 1 Replies

Loading User Control In A Repeater?

Mar 23, 2010

I have a Repeater control that loads instances of a custom control I have built. This repeater looks like this:

<asp:Repeater ID="myRepeater" runat="server" OnLoad="myRepeater_Load">
<HeaderTemplate>
<table border="0" cellpadding="0" cellspacing="0">
</HeaderTemplate>
<ItemTemplate>
<tr><td><my:CustomControl ID="myControl" runat="server"
OnLoad="myControl_Load" />
</td></tr>
</ItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>

I bind to the Repeater through the myRepeater_Load event handler. My custom control is used to render an item within the Repeater. Because of this, I am trying to set properties on the custom control during the myControl_Load event handler. However, I do not know how to access the current item during the myControl_Load event.

Is there a way I can pass along the current item or access the current item during the myControl_Load event? If so, how?

View 3 Replies

JQuery :: How To Avoid Page Refreshing / How To Use Ajax On Page Loading

Nov 29, 2010

I want to avoid page refereshing or loding with the of jquery ajax. Here i am attatch my asp page code.

[Code]....

In this page I am trying to use jquery ajax on page loding but it does not give response .

View 20 Replies

VS 2012 - Loading Images Into Repeater Control

Aug 19, 2013

I'm creating a simple CMS for a fairly simple web page. I'm currently working on a part for displaying news on the main page.

The controls I have on the page:

- a GridView control with enabled pagging and a SELECT button,
- an Image control for displaying news cover picture,
- CKeditor control for editing news text,
- Repeater control for displaying pictures from database

How does it all work?

In Page_load I have the following:

vb.net Code:
connectionString = "Data Source=KORISNIK-PCSQLEXPRESS;Initial Catalog=****;
User ID=**;Password=****"        conn = New SqlConnection(connectionString)       
If conn.State = ConnectionState.Closed Or conn.State = ConnectionState.Broken Then             
Try                conn.Open()                If Not IsPostBack Then                    bindGrid()                   

[Code] ...

As you can see, I load the GridView control with news from DB. At this moment all other control are disabled. User has to SELECT the row he wants to edit, and click the MODIFY button.

This is what happens when user clicks the MODIFY button:

vb.net Code:
Private Function selectForEdit()        dsSelectForEdit = New DataSet       
captionPicture.ImageUrl = ""         enableCommands()       
Dim sqlQuery As String        
sqlQuery = "SELECT news.newsCaption, news.newsIntro, news.newsCoverPicture, news.newsStatus,

[Code] ....

Basically, I select newsDetails based on newsID. Also, this is where I take the coverPicture from the database using a generic handler.

This is the code for showImage.ashx:

vb.net Code:
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest        
Dim newsID As Int32        If Not context.Request.QueryString("newsID") Is Nothing Then           
newsID = Convert.ToInt32(context.Request.QueryString("newsID"))        Else           
Throw New ArgumentException("No parameter specified")        End If        

[Code] ....

This part works fine, as the picture is correctly displayed in the Image control. Now, I also want to load the pictures that are related to the selected news. So, I use this function:

vb.net Code:
Private Function selectNewsPictures()        dsSelectPicturesForEdit = New DataSet         enableCommands()       
Dim sqlQuery As String         sqlQuery = "SELECT newsDetailsPictureID,newsDetailsPicture,newsDetailsPictureCaption,newsDetailsPictureDescription FROM newsDetailsPictures WHERE newsID = @newsIDEditing"          myCommand = New SqlCommand(sqlQuery, conn)         myCommand.Parameters.Add("@newsIDEditing", SqlDbType.Int, 250)       

[Code] ....

You can see that I take pictureID's and store them into a List (of integer). That way I can use those integers in showNewsPictures.ashx to display all the pictures.

showNewsPictures.ashx:

vb.net Code:
Sub ProcessRequest(ByVal context As HttpContext) Implements IHttpHandler.ProcessRequest        
Dim newsID As Int32        If Not context.Request.QueryString("pictureID") Is Nothing Then           
newsID = Convert.ToInt32(context.Request.QueryString("pictureID"))        Else           
Throw New ArgumentException("No parameter specified")        End If        

[Code] ....

The picture ID's are being sent through pictureRepeater_ItemDataBound:

vb.net Code:
Private Sub pictureRepeater_ItemDataBound(sender As Object, e As RepeaterItemEventArgs)
Handles pictureRepeater.ItemDataBound        
If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then            
Dim ctrl As New Image            ctrl = e.Item.FindControl("pictureHolder")           
ctrl.Width = 100            ctrl.Height = 100              ctrl.ImageUrl = "~/showNewsPictures.ashx?pictureID=" &
listOfIDs.Item(itemIndex)            itemIndex = itemIndex + 1         End If    End Sub

THE PROBLEM:

I load the page, select the news, click the MODIFY button and all works well. The news details are loaded, the cover picture is loaded, the repeater pictures are loaded.

I click the cancel button (clears all the commands and disables them) and I get an error saying the DataReader needs to be closed.And I never use one This happens either in showNewsPictures.ashx or showImage.ashx.

In some other scenario, this happens right after I click the MODIFY button.

View 1 Replies

C# - Loading A Nested Repeater With Data From 2 Entity Framework Queries?

Jan 20, 2010

I have 2 tables A and B that have a many to many relationship. I am using nested repeaters to show the data in a web page. My issue is, how do I write an ObjectQuery or an IQueryable query that returns the parent rows in A and the child rows in B so that I can use them as my data sources for my inner and out repeater. I have the code I wrote so far below but I am not sure if it is correct or even close.

<asp:Repeater ID="A" runat="server"><br/>
<ItemTemplate><br/>
<h2 class="Information"><br/>

[code]...

View 1 Replies

Page Is Loading For The First Time In The Web Browser?

Jan 15, 2010

Is there any way I can figure out that the page is loading for the first time in the web browser. We are deploying in a web farm scenario and doing some crazy operations with our website and it has become hard for me to figure out how to know that the website is loaded th e first time in the browser.

Also is there any way I can clear cache as old data keeps on getting displayed.

View 3 Replies

Reduce Time Of Loading Page?

Jun 11, 2010

I am facing a problem related to webpage loading. After analysing the problem I got the conclusion that this is because of the use of third party control (Telrik Control) on the page.

it loads "ScriptResource.axd?d=VHFRlHPU4ruHmOYm-mEPLk5XeFL0XZCCksSiaq9cH120I4XzMjzdvS3A-Z1Q4FSlJuGkXycxn8tvOxEGZvni7w2&t=634068427680000000"

type of scripts on browser so it take time to load the page. Is there any way to reduce time of loading page?

View 5 Replies

Web Forms :: Count The Loading Time For Page?

Jul 14, 2010

I recently re-develop our company's web system. However, when I just finished everything, our internal user complains that the page is noticable slower than the old one. I tested it on my machine and it seems to be ok. As it is a major concern of my manager, I decide to add a bit of code to return the time comsumed in page loading. Can someone give some idea about it? What I try to know is: from the time user click on "submit" button until the page is fully loaded to the user, how many seconds it costs. I have ajax in the page. Is it possible to do it in js? or any other sort of way is fine too.

View 10 Replies

WebSite Page Loading / Response Time

Jan 22, 2010

I have noticed two time-related problems with my website:

[1] Slowness of loading the graphics for each page in the browser;
[2] Receiving a "Runtime Error" page in the browser when I do take action on the site (e.g. navigate to another page) within approx. 30 seconds.

Are these problems related to limitations of my web host?

View 3 Replies

Configuration :: Live Application Is Not Loading After Some Time?

Jan 18, 2011

My application is live and it's work perfectly, but some time it's not loading and page is not load in browser but when i RESET iis it will working perfect.

application is in visual studio 2005 and back end is sqlserver 2005.

View 4 Replies

Web Forms :: How To Reduce Website Loading Time

Dec 27, 2012

I want increasing my website pages loading speed 

I know one of thing is compress css file is there other thing that I do to increasing webpage loading speed?

View 1 Replies

Web Forms :: Loading Dashboard Screen - Taking Time

Aug 10, 2010

i have a loging page, once i login into my application it is redirecting into main dash borad screen. where i am displaying data from other server. it is taking time to load page..

case 1:- in my dashboard one block i am displaying some simple info like alerts, news, mails count..etc.. that is comming from my local database ( there is no performance issues on that..)

case 2: in the same page (dashboard block) i am showing data, it is comming from another server.. first it will check the credentials and retrive data and displaying in same dashboard screen ( here it is taking time)

once hit the login button and redirecting into a dashbard screen using response.redirect("dashbard.aspx"); it is redirecting to dashbard screen..once all the process of page load is comple,,,then it is displaying the dashboard page what i am looking is first i want to redirect to the dashboard screen and then process the case1 ( simple data ) ..and for case2 i just want to show some ajax spinner image on the second block..

View 7 Replies

Long Loading Time (hours) When Made The Change

Mar 6, 2010

whenever I replace a master page on my site the pages load after a few hours(1-2) and only after that the site returned to work as normal.. I dont use VS "open web site" from the web method, instead I download the page I want to change (using flashfxp for instance), make my changes and upload it back. I do this process because every now and then the VS stuck/not responding/think long time. he master pages I change are used by few thousand of pages in the site, my thought is that whenever I change a master all the site get rebuild and therefor the long loading time..

View 11 Replies

Web Forms :: Loading Menu Items Using WebService At Run - Time

Mar 8, 2011

Is there any way to load [main] menu items in run-time? for instance using WebServices? My web application's main menu is so big and takes a long time to be loaded. So that, i want to load its items on demand. I want to load the sub-items of the menu item user is hovering.

View 1 Replies

Performance - Page Contains Dynamic Elements - Loading Takes Time

Feb 10, 2010

I am dynamically creating a table of checkboxes on my test.aspx page. The dimensions (row and column count) of the table are determined by querying the database. In test.aspx page, I do the following:

<script language="C#" runat="server">
protected void Page_Load ( object src, EventArgs e ) {
//Query the database to get the data for rows and columns
CheckBox[] chkBox = new CheckBox[rows * columns]; //creates a collection of checkboxes
//Iterate over the query set in a double for loop to create dynamic checkboxes
}
</script>

Right now I have the number of rows=20 and columns=10, but it can increase (with the columns more likely). I used the Net tab in Firebug to ascertain the time taken by different events and found that GetTest.aspx is taking close to 4 minutes, which is too long a time to wait. Is there a way to being down the page load time? Is my approach to create dynamic check boxes correct?

View 4 Replies

Forms Data Controls :: Loading GridView Page At A Time?

Jan 5, 2011

I know you can do paging in gridview but is there a way which allows u to load one page ie page 1 and then when the user select page 2 it loads that page...because I will have 100,000 rows and I dont want to load all of them.. But I need to show all, so is there a way which u can do paging which allows u to load a page at a time?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved