Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8419839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:43:32+00:00 2026-06-10T02:43:32+00:00

I created a treeview webpart, and if you click a node, it modifies a

  • 0

I created a treeview webpart, and if you click a node, it modifies a SPList, and clears and recreates the treeview.

So when I click a node, the page gets refreshed, then the treeview function occurs and edits the list and recreates the treeview. THEN the problem is if I were to refresh the page by hitting F5, the same thing happens again i.e. the List gets modified again even though i didn’t click a node.

I suspect something like the treeview node select change event was activated again.

As well this happens when I hit refresh:

enter image description here

Is it somehow resending the tree click flag or something? How can I clear it when refreshing so it doesn’t try to resend it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:43:33+00:00Added an answer on June 10, 2026 at 2:43 am

    There are two common approaches for preventing actions performed on postback from being called repeatedly by user’s refreshing the page:

    1. In whatever code that they are running do some sort of check to see if they have already done what they are about to do. Sometimes this is easy (i.e. they clicked to delete an item, but I see it’s already deleted) and sometimes it’s just not possible or practical.

    2. After performing the postback that you don’t want to be repeated do a Response.Redirect (to either another page, or even just the same page). By doing this when they hit refresh their ‘last action’ won’t be the pastback, it will be the result of the redirect. Of course, if they start using their history to go ‘back’ they could easily end up redoing whatever action you had done before. This course of action isn’t stopping them from intentionally (or maliciously) duplicating the action, it’s just allowing them to hit ‘refresh’ without accidentally duplicating the action. Also note that this comes with a cost. You will need perform another back and forth with the client, and you’ll need to re-generate the entire page (this will likely have a performance cost, and potentially be difficult to implement as well, depending on the specifics).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In some page, my side menu is created dynamically like this. <div id=tree class=treeview>
I have created a TreeView in asp.net page and also set the height and
i've created a sitemap with my default.aspx page, coded it accordingly, then added a
I have created a Treeview and used a stack panel to include a checkbox,
I'm trying to catch a double-click event in a TreeView's empty area to create
Created an OpenGraph action and object. Trying to submit my action. When I click
I have created a menu using a treeview to launch forms when the user
I have a TreeView control that I have created in XAML in a WPF
I created Drag&Drop mechanism for my TreeView. I added DragEnter, DragDrop and ItemDrag methods
I created a website and used css friendly adapters for Menu, TreeView and GridView,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.