Hi Bruce,
It seems like we're not yet done with this as I've come across a 'special case'
In one of my web apps I've got two different places (procedures) where the user may upload a file (and they go in different tables). Therefore I'm handling the saving-to-database in the webhandler procedure and not in the netwebform(s). I tried your proposed p_web.SetValue('nosave',1) but that value doesn't live till the webhandler kicks in - and I've also got no code in the netwebform to wrap a test around.
So I've come up with an alternative way: in the netwebform I set a
sessionvalue first thing after the code statement: p_web.ssv('OkToSaveFile',1). Then, in the webhandler procedure, I test for this sessionvalue and if set to 1 I save the file AND set the sessionvalue to 0. That should ensure that the file only gets saved once.
My tests so far shows that it works as expected. I just wonder if there are any pitfalls in doing it this way?
Thanks
Peter