P
Phillip Vong
Using VS2005 / SQL 2000 / VB.NET 2 / ASPX
---------------------
I have a code that I want to run ONLY when the ReadOnly mode of Formview is
loaded. How do I do this. Since ReadOnly is the default load for Formview,
I can add the code to Page Load. In the Read Only mode,
I have a Label that displays something but it's only in the Read Only mode.
If I Edit something and then hit Update, I get an error saying object can
not be found. I tried adding the code to check to see if it's NOT postback
and the default mode is ReadOnly and that works but I get the same error
message when I go from Edit mode to Read mode. This has been bugging me for
awhile now and I decided it's time for me to find an answer to this.
Thanks!
---------------------
I have a code that I want to run ONLY when the ReadOnly mode of Formview is
loaded. How do I do this. Since ReadOnly is the default load for Formview,
I can add the code to Page Load. In the Read Only mode,
I have a Label that displays something but it's only in the Read Only mode.
If I Edit something and then hit Update, I get an error saying object can
not be found. I tried adding the code to check to see if it's NOT postback
and the default mode is ReadOnly and that works but I get the same error
message when I go from Edit mode to Read mode. This has been bugging me for
awhile now and I decided it's time for me to find an answer to this.
Thanks!