Last post Jul 23, 2018 08:07 AM by mudassarkhan
Jul 22, 2018 03:55 PM|Omar27|LINK
i have a tab control with many divs the first one is Dashboard and the last one is delete user
in the last one i have a gridview with buttons delete and update
so whoever button i click on the web application take me to dashboard and i have every time to go back to the last div to complete my operation
so if there's something can helps me to stay on the div concerned until i click on dashboard the it moves to it
thanks in advance
Jul 22, 2018 04:02 PM|mudassarkhan|LINK
In the @Page Directive set MaintainScrollPositionOnPostback = "true"
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default5.aspx.cs" Inherits="Default5"
MaintainScrollPositionOnPostback = "true" %>
Jul 22, 2018 04:22 PM|Omar27|LINK
i tried it so it really stayed on the div i want but in the same time when i hit the update or delete button it does nothing i can't update or delete no more
Jul 22, 2018 04:37 PM|mudassarkhan|LINK
If you remove MaintainScrollPositionOnPostback = "true" does it work?
Jul 22, 2018 04:50 PM|Omar27|LINK
yes it worked ... but in my gridview i can't no more update or delete
when i hit the buttons they don't work
Jul 22, 2018 05:21 PM|mudassarkhan|LINK
Jul 23, 2018 12:49 AM|Omar27|LINK
i figured it out ... i was working with single page so that was the problem i used manu pages .aspx and in the tab control i used <a> in every single tab to take me to the page considered
and that worked well
Thank you for your time and replies
Jul 23, 2018 08:07 AM|mudassarkhan|LINK
So if my reply helped, mark answer please.