D
David Thielen
Hi;
I have a page that displays a record. What is shown is based on the record
values - for example there is a MultiView and the View shown depends on a
value in the record.
So I cannot use a DetailsView or FormView - it's just a bunch of fields on
the page.
1) I want to call using ViewDatasource.aspx?ID=5 and I have an
ObjectDataSource set up to get the correct record on a select. But I don't
think that is happening. What do I have to do to have the select called and
the ObjectDataSource populated?
2) To display Text in a cell I put <td><%# Eval("Title") %></td> (the column
name is Title). Is this correct.
3) To pick the multiview I put <asp:MultiView ActiveViewIndex='<%#
Eval("ProviderType") %>' ... where ProviderType is an enum:int and returns 0
or 1. Is this correct?
4) How do I display a RadioButtonList and CheckBox value where it is display
only? I would like to have the radio buttons and checkbox displayed - but
they cannot be editable and disabling them looks wrong (to me). Can they be
made read-only?
5) How do I set the initial value of a RadioButtonList? I can't find a
property for that.
I have a page that displays a record. What is shown is based on the record
values - for example there is a MultiView and the View shown depends on a
value in the record.
So I cannot use a DetailsView or FormView - it's just a bunch of fields on
the page.
1) I want to call using ViewDatasource.aspx?ID=5 and I have an
ObjectDataSource set up to get the correct record on a select. But I don't
think that is happening. What do I have to do to have the select called and
the ObjectDataSource populated?
2) To display Text in a cell I put <td><%# Eval("Title") %></td> (the column
name is Title). Is this correct.
3) To pick the multiview I put <asp:MultiView ActiveViewIndex='<%#
Eval("ProviderType") %>' ... where ProviderType is an enum:int and returns 0
or 1. Is this correct?
4) How do I display a RadioButtonList and CheckBox value where it is display
only? I would like to have the radio buttons and checkbox displayed - but
they cannot be editable and disabling them looks wrong (to me). Can they be
made read-only?
5) How do I set the initial value of a RadioButtonList? I can't find a
property for that.