Is it possible to get a FormView to automatically default to ReadOnly mode on the record that it has just inserted via its InsertItemTemplate? It seems like this would be somethign that should come naturally to a FormView.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, It is possible.
I am demonstrating it with the Employee table
Use the following Sql Server script to create employee tabled named tbemployee
The source code for Inserting record into FormView is shown below:
FormView.aspx
and in the Code Behind of FormView.aspx page paste the following code:
FormView.aspx.cs