webforms - .Net Repeater equivalent for a single object? -


Can someone suggest the best reason for the action to resolve the following request:

I've created several types of expanded classes that use repeating classes as bases and love the flexibility, comfort and consequences of doing this. What I want to do now is to create the same custom web control for a single object (i.e. datasource not implementing the iiImable cable). I am trying to achieve the repeater by increasing it, and then when I set up a datasource using the list of 1 object to capture the object and then databanking I can create that structure.

For example a difficult example: New MyObase (1) Dim Glow New Newsze as New OioBeez. (MyObiect's list) gl.Add (oObj) rpt.DataSource = gl rpt.DataBind ()

It looks like a small hack around things, what do I do For example, a new call, where my control is new custom control: New Oibb's (1) myControl.DataSource = oObj myControl.DataBind () as the new OBJE to be enabled:

   

I want to be able to define this custom control with different variables and properties, which results in the following types of Will enable Out:

  & lt; My: ObjControl id = "frm" runat = "server" & gt; & Lt; Tabs & gt; & Lt; My: Tab name = "Details" & gt; & Lt; Items & gt; & Lt; My: Item type = "text" label = "first name" property = "first name" /> & Lt; My: Item type = "text" label = "last name" property = "last name" /> & Lt; My: Item type = "text" label = "title" property = "title" /> & Lt; / Item & gt; & Lt; / Tab & gt; & Lt; My: Tab name = "address" & gt; & Lt; Items & gt; & Lt; My: Item type = "text" label = "address1" property = "address1" /> & Lt; My: Item type = "text" label = "address2" property = "address2" /> & Lt; My: Item type = "text" label = "address 3" property = "address3" /> & Lt; / Item & gt; & Lt; / Tab & gt; & Lt; / Tabs & gt; & Lt; / Mary: ObjControl & gt;  

This implementation should be done to use the webform, although it seems that the use of MVC will be the ideal approach to the above ideas. By doing this, I would like to create a flexible web control that uses reflection (which can be used for all classes that apply to a specific interface) which is essentially just three lines of code Will generate necessary forms. / P>

Will I add only one custom repeater (object to object), which takes the object and sets the datasource accordingly and saves time?

Cheers, Steve

Itemprop = "text">

Trying to work around, the repeater wants a list and you want to give it 1 example just wrap it in a new list * oObj) and proceed. It is done all the time.

I am not sure what is happening with the control on the custom server. I think you are trying hard again.

  & asp: repeater id = "whatever" runat = server & gt; & Lt; ItemMatePlat & gt; First name: & lt;% # DataBinder.Eval (container.datetime, "Firstname")% & gt; & Lt; / Itememplate & gt; & Lt; / ASP: Repeater & gt;  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -