HI all,

Normally I've been lucky to find someone who has had the same problem and applied their solution but after hours of searching I'm not able to find a solution to this one.

I've got a FormView which is default mode set to Insert. When the page is loading I'm checking to see if the session variable which the formview datasource is set to has a value. If it doesn't I've coded in the onLoad that some of the controls in the InsertTemplate would be set to specified value.

The code works but when the page finally renders the values are missing.

Any help would be greatly appriciated.


7 Years
Discussion Span
Last Post by Jagfarrell

Just me again - 2hrs later I got a solution.

Rather than assigning the values to the controls in the page load I needed to do it in the PRERENDER for the FORMVIEW (careful you don't select the PageEvents)

All the code working perfectly now!


This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.