listview Sorting in ajax update panel not working in firefox

Joined
Dec 7, 2008
Messages
2
Reaction score
0
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)

{

LoadAllData();

}

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;

lvWorkItems.DataBind();

}

}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top