Giter VIP home page Giter VIP logo

Comments (2)

roman-yagodin avatar roman-yagodin commented on June 15, 2024

The issue is caused by dnnTabs jQuery plugin behavior - it stores currently selected tab in the cookie by 2 minutes by default, and (just my thinking) not updates it every time when tab is switched by user. This may be fine with AJAX-based queries, as then dnnTabs() is calling just once - but not with standard ASP.NET postbacks, as we need to call dnnTabs() function every single page load.

from r7.university.

roman-yagodin avatar roman-yagodin commented on June 15, 2024

The idea behind the fix: use ViewState to store selected tab number and pass it to dnnTabs () function every page load. Default value is 0 (no ViewState ~ first load), so first tab is selected by default. Then, for each postback event handler, we update ViewState to the number of tab, on which control (postback) is located.

Solution is not very elegant, but working. Also need check how it will work along with form validation, as dnnTabs () should automatically switch to the tab where invalidated messages appears.

from r7.university.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.