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
 
Ad

Advertisements


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

Top