Update button don't postback in gridview inside Tab Container

Rate It (1)

Last post 12-10-2007 11:04 AM by jocker_wow. 2 replies.

Sort Posts:

  • Update button don't postback in gridview inside Tab Container

    12-10-2007, 10:48 AM
    • Loading...
    • jocker_wow
    • Joined on 01-19-2007, 3:20 AM
    • Egypt
    • Posts 81

    Hi,

    I'm having a strange problem,

    I have a Tab Container control with two tabs, In tab1 there is a gridview. In tab2 there is a formview with a RequiredFieldValidator.

    When I remove the validator everything goes correclty. The problem accures when I add the validator in the formview in tab2, the update button in gridview of tab1 stop responding!

    When I write some text in the required field in works correclty too. But even when the tab1 is active and I want to update a row, It requires the validator in the other tab to be qualified too! How can I solve this?

    Thanks in advance!

    Regards...
    M.Nagieb
    Jocker_Wow
  • Re: Update button don't postback in gridview inside Tab Container

    12-10-2007, 10:54 AM
    Answer
    • Loading...
    • CSharpSean
    • Joined on 10-21-2006, 5:43 AM
    • Orlando, FL
    • Posts 873

     You can set up validationgroups for this.

    http://weblogs.asp.net/scottgu/archive/2004/10/24/246945.aspx

     

    Hope this helps. 

  • Re: Update button don't postback in gridview inside Tab Container

    12-10-2007, 11:04 AM
    • Loading...
    • jocker_wow
    • Joined on 01-19-2007, 3:20 AM
    • Egypt
    • Posts 81

    Hi CSharpSean,

    Thanks alot! Validation Group makes it work like magic!

    Regards...
    M.Nagieb
    Jocker_Wow
Page 1 of 1 (3 items)
Microsoft Communities
Page view counter