FormView

S

shapper

Hello,

I have the following on a web page:

- GridView with a button on each row to EDIT a record.

- An INSERT button outside of the GridView that when clicked should
call a form to create a new record.

- A form composed by TextBoxes, DropDownLists, and a SAVE button.

Now I added a FormView to my page. I need to create the following
functionality:

- When a EDIT button is pressed the FormView should appear in Edit
mode with the record for the given row id.

- When the INSERT button is pressed the FormView should appear in
Insert mode.


I created my GridView at runtime by using the ITemplate
implementation.

1. I also need to create the FormView at runtime. Is there any example
for this?

(I am trying to copy my GridView ITemplate implementation but I
think I am doing something wrong)

Basically I am copying the form, with textboxes and dropdownlists,
that I created earlier to my FormView Templates.

2. My FormView ItemTemplate, EditItemTemplate and InsertItemTemplate
all look the same. Do I need to create all 3?

3. How do I created the EDIT / INSERT > FormView functionality that I
described earlier?

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

FormView > Edit 1
iTemplate Formview Problem 3
FormView Buttons 1
Populating Dropdownlist in Formview 2
FormView Buttons 1
FormView disappears 2
formview edit issue 12
FormView 0

Members online

Forum statistics

Threads
473,787
Messages
2,569,631
Members
45,338
Latest member
41Pearline46

Latest Threads

Top