I have a hierarchical structure and when the user press on Add a child, I reopen the same page with [Add, ParentID] parameters.
The problem is, after pressing Add, a postback is made and the reading for the querystring is made again because the querystring is still the same and I catch & process it in the page_load.
Note: I can’t use IsPostBack because the calling is from the same page, so it’ always true.
Any help!
Make sure you only process the query string when the page has not been posted back, by using the
IsPostBackproperty ofPage: