.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Help, new job on the line, repeater problems

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :ASP.Net
 
I have a presentation to the CFO in two hours. I can't get a nested repeater control to work right, something to do with teh placement of the <table> tags I think. The first repeater first section works fine, then the child repeater shows the first child section right, but the next section of the parent repeater loses all the formatting applied at the parent table. I've tried vaious permutations of where to place the closing table tag of the outer and the inner and get different results, but never the right results. Here is my current code: < asp:Repeater ID="Repeater1" runat="server" EnableViewState="false" OnItemDataBound="ShowVested">   <HeaderTemplate>   <table cellpadding="3" cellspacing="2" style="border: solid 1px black;background:#b8ccd4">   <tr style="font-size:small">   <th style="width:100px"> Option ID </th>   <th style="width:100px"> Option Date </th>   <th style="width:100px"> Option Price </th>   <th style="width:100px"> Num. Shares </th>   <th style="width:130px"> Shares Exercised </th>   <


View Complete Post


More Related Resource Links

more radiobutton-repeater problems

  

I'm using radio buttons in a repeater control.  I don't think I can use a radiobutton list.  I'm displaying one or two images in a table.  The table has three image cells, but only one or two of them can display an image, never all three.  I only want the radio buttons to be displayed if there are two images, and only in the two cells that contain the images.  if this can be duplicated with a radiobutton list, I'm all ears.

I have all this working by using an array list to populate the repeater.  The aray list includes a visible property that gets passed to the radio buttons.  I've managed to Google a solution to the radio group problem.  I though I had my issues resolved and was ready to move on to the rest of the coding but then I noticed another problem.

None of the radio buttons are initially checked.  If I run the page, check a radio button, click on the link button, the fact that I check one of the radio buttons doesn't register in the Repeater1_ItemCommand.  All the radio buttons show checked = false.  I don't want anything checked initially, but I did set one as checked = true to start to see what happens.  In the Repeater1_ItemCommand event, the radio buttons maintain their initial values, no matter what I do when the page runs.



Problems with Line Chart Graph

  

I am writing a report to create a line chart for performance testing. The performance is based on request to 3rd party and getting response for 3 different call types. Time is measure in seconds and the process is ran after every 1 hour. Following are the details about my report.

Timestamp is the X axis, Response in time is Y axis and CallTyes form the series. The graph is pretty good when I diplay it in the BIS 2005. However when I deploy to Dev server, I only see the markers. Cannot see the lines connecting the markers. Can someone tell me what is the reason for this? I have no clue why is this happening on the server. I have selected both the SimpleLine Type and Smooth Line type but still the same issue.

Thanks
Deepak


Problems with Repeater Control, Update Panel and the Toolkit controls

  

Hi Guys,

 

Having a bit of an issue with the Toolkit controls.

I have a Repeater Control nested inside the Update panel, the repeater item template contains a multiview control allowing users to flick through seperate bits of information. This was working fine the async update was perfect, no issues.

I have then decided to include the rating control to one of the views. problem is now everytime i want to change the view it causes the whole page to postback.  

Attached is the code.

Any help is much appreciated


Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

To that end, I'm going to walk you through these four steps to effectively implementing a client side Repeater, using ASP.NET AJAX and jQuery:

ASP.NET Repeater Combined with jQuery FAQ Plugin Demo

  
The plugin is really straight forward. You just have to add your FAQ items in a header element such as an h2 and content sections in spans. This could be done in a pure HTML page or the FAQ items and content could be pulled from a database or XML file like I did in the download. Once the markup is built, the plugin does the rest. It will hide the content sections, add click events to the headers to open and close the content sections, toggle the plus/minus symbols and build the index shown on the right if you want.

ASP.NET repeater control - databind with style

  
even used the inline editing features, which I at the time thought was the coolest way possible to write ASP.NET code ( I managed to write code to hide all other rows and only show the current one - the row being edited). With a nice looking EditTemplate it looked indeed very slick but it really turned into giant and hard to manage code behind files.

Displaying Data using ASP.NET 2.0 Repeater and C#

  
This tutorial will show you how to display data using the .NET Repeater Control, ASP.NET 2.0 and C#.NET


The Repeater control is a powerful tool and is easy to use.

First, you will need to import the System.Data.SqlClient namespace.

Hide a repeater in ASP.NET C# if the DataSource contains no items?

  
I have an ASP.NET page that uses a repeater nested within another repeater to generate a listing of data. It's to the effect of the following:
In the (C#) code-behind I'm basically using LINQ to pull a listing of information from an XML document and bind that information to the first repeater.

Searching for the answer to this, it seems the method is to determine whether the data for the nested repeater is empty. If it is, then you set the visibility of the repeater to false.

Creating Paging for a Repeater Control

  
A common question is "How do I implement paging within a Repeater?" Although the beauty of the Repeater control is its flexibility, you're on your own for building most functions. ASP.NET 2.0 has included some new controls that provide paging, as does the DataGrid in ASP.NET 1.1. However, this tip shows you how to roll your own paging for a simple data viewer.

Creating an AJAX Repeater in ASP.NET MVC

  
The "TaskList" is a tried an true example of the most basic thing that you can do in any framework. Unfortunately, I had some problems finding a really good example of all the steps necessary to get a task list to work in ASP.NET MVC 1.0.

Top .NET Performance Problems and how to avoid them

  
Every time I work with one of our .NET customers to help them with managing their application performance I come across the same problems as seen with other clients before: lots of ADO.NET queries, many hidden exceptions in core or 3rd party .NET libraries, slow 3rd party components, inefficient custom code

Use Jquery with repeater, gridview, datagrid

  
Before we talk about jquery inside any itemtemplate (repeater, gridview, datagrid), we need to understand the basic use of jquery functions

Use jQuery and ASP.NET AJAX to build a client side Repeater

  
By sending only data to the client, you can profoundly reduce the size of what you send and see a substantial increase in performance. You also allow yourself the ability to easily add features like light-weight sorting and paging on the client. This can not only improve your users' experience, but reduce server load and bandwidth requirements.

LinkButton inside Repeater

  

Hi.

I have Repeater, which consists of LinkButon and Literal. LinkButon and Literal are whole thing by implication. I want get value from Literal, when user click on corresponding LinkButton.

TIA 


Increment div id in a repeater

  
Hi,

How can i increment a div id each time a new item is created in a repeater?

Like :

First div item =

<div id="GoogleMap0" style="width: 500px; height: 300px; text-align: center; border-color: Black;"></div>

Second div item =

<div id="GoogleMap1" style="width: 500px; height: 300px; text-align: center; border-color: Black;"></div>

and on.....


Adding new items to a Repeater control with transitions?

  

Hi,

I am currently in the process of writing a facebook type 'activity feed' for a site. Currently I am binding the last 10 items to a repeater control, which contains a usercontrol representing each item. This works fine but there are a couple of requiremnts that are giving me problems and wondered if the the good people of the forum could make some suggestions.

The requirement is that when a user clicks a refresh button any new events are added to the top of the list, the previous items drop down and the equivalent number of old items drop off the bottom, all with nice slider transitions.

I have put the repeater inside of an update control and are able to handle the transitions by using RegisterStartup script to drop jquery calls onto the page for the slider. However I cannot find a way to dynamically add or remove new datarows to the repeater. I need the old items to stay in the repeater and be pushed down by the new items, so completely refreshing the datasource seems like a bad idea.

I was thinking about maybe storing the datasource in the viewstate and adding rows to that, maybe with an extra column on the end which stores what transition is needed on the databind for my jquery, but there will be a 'View more items' link at the bottom of the page, so I am worried that the list could get pretty large and there

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend