We help IT Professionals succeed at work.
Get Started

Open form to insert new record.

dodgerfan asked
Last Modified: 2012-05-12
I have a gridview on a form that displays records. Next to each record is a Edit button. When this button is clicked, another form pops up to allow editing of that record. The form that pops up is another asp.net form with a asp:FormView control on it to display a record. I would like to have another button outside of the gridview that will open up the same popup form to insert a new record. So the popup form needs to open up to blank fields. The formview on that form has the EditItemTemplate, ItemTemplate and InsertItemTemplate on it. By defualt I set it to open up in Edit Mode. How can I get my button to open it in Insert Mode? Thanks.
Watch Question
Full Stack .NET Developer
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE