May 06, 2014, 4:04 PM
Define code in codebehind outside Page_Load which is not rerender after event?
Hey guys, I have a question.
I have built a form in code-behind, which is filled with data. If I change the values and save the form, disappear, the new values and the old values appear, but saving has worked in the background.
Why, I know. He leads well known after the event the Page_Load again and renders me the new form. But is there a way to define code that will not run again? I do not want that my form is rendered again. I think this creates the problem that the old values are displayed. I always have to make an extra reload the page so that the new values are displayed. Not acceptable :-/ I hope someone can help me?
I have built a form in code-behind, which is filled with data. If I change the values and save the form, disappear, the new values and the old values appear, but saving has worked in the background.
Why, I know. He leads well known after the event the Page_Load again and renders me the new form. But is there a way to define code that will not run again? I do not want that my form is rendered again. I think this creates the problem that the old values are displayed. I always have to make an extra reload the page so that the new values are displayed. Not acceptable :-/ I hope someone can help me?