Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > listview Sorting in ajax update panel not working in firefox

Thread Tools

listview Sorting in ajax update panel not working in firefox

sunkrajesh sunkrajesh is offline
Junior Member
Join Date: Dec 2008
Posts: 2
I have used a list view in Ajax Update panel. And iam using this listview in a user control. and this user control is placed in a Master Page.I have implemented sorting for list view . For the intial page load, complete data appearsin both IE and Firefox. I have three links for Sorting, based on which data changes. This works fine in Internet explorer, but in Firefox, sorting is not working.

When i debug, I saw that for initial page load data is getting loaded in both IE and firefox.But, when sorting link or any other link is clicked, this method is not fired in firefox.I used the condition Ispostback. In case of Internet Explorer, when it is not Ispostback, the debug point is going to the footer control page load of master page and comming back to the sort method and sorting is implemented. But in case of Firefox, the debug point is going to the footer control page load in master page, but it is not comming back.So the method is not firing.can any tell why this is not working in firefox.

The code for the above scenario:

if (!IsPostBack)




protected void lvWorkItems_Sorting(object sender, ListViewSortEventArgs e)


string sortExpression = e.SortExpression + " " + "ASC";

if (ViewState["datatab"] != null)


DataTable dtProductsqq = (DataTable)ViewState["datatab"];

DataView sortdataview = new DataView(dtProductsqq);

sortdataview.Sort = sortExpression;

lvWorkItems.DataSource = sortdataview;



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post ListView control - Configure ListView option missing? . ASP .Net 0 07-24-2010 12:20 AM
Listview error when inside of update panel John ASP .Net 0 07-10-2008 01:11 PM
listview with a collapsible panel that has a updatepanel and listv Giorgio ASP .Net 0 07-03-2008 09:41 PM
Databinding Syntax Not Working in ListView LayoutTemplate Roshawn ASP .Net 0 03-21-2008 07:42 PM 2.0 menu .... In Side update Panel Not working... Masudur ASP .Net 0 12-19-2006 12:12 PM