listview Sorting in ajax update panel not working in firefox

Discussion in '.NET' started by sunkrajesh, Dec 7, 2008.

  1. sunkrajesh

    sunkrajesh

    Joined:
    Dec 7, 2008
    Messages:
    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)

    {

    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();

    }

    }
    sunkrajesh, Dec 7, 2008
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?cm9kY2hhcg==?=

    datalist and ajax update panel

    =?Utf-8?B?cm9kY2hhcg==?=, Oct 2, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    718
    =?Utf-8?B?cm9kY2hhcg==?=
    Oct 2, 2006
  2. Masudur
    Replies:
    0
    Views:
    1,043
    Masudur
    Dec 19, 2006
  3. Giorgio
    Replies:
    0
    Views:
    598
    Giorgio
    Jul 3, 2008
  4. John
    Replies:
    0
    Views:
    430
  5. .
    Replies:
    0
    Views:
    702
Loading...

Share This Page