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.


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!


Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.