No fields in FormView

U

Uriah Piddle

Hi,

I have a FormView where nothing gets rendered past the opening
<ItemTemplate> tag. The FormView Header renders but nothing else. If I put
garbage in an Eval statement, no errors are raised and the page loads but,
of course, with no data in the FormView. If I put a div inside the
ItemTemplate, it does not render.

In Design view, my FormView shows up just as a grey form and says:
'Right-click or choose the Edit Templates . . .". I have noticed that with
FormView controls that work properly in the sample code I have looked at,
they appear, in design view, showing the bound fields and it says 'Data
Bound'. When I opened the control in design view, each of fields said 'data
bound' in the properties window but they don't act that way.

I set the DataSourceID to an ObjectDataSource that works fine with a
DetailsView control.

Thanks for any ideas.

Steve
 
U

Uriah Piddle

I was setting the mode for the FormView to Insert but I did not have an
Insert template declared. I hit my head against the wall on this all day and
figured it out right after posting.
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top