I am developing an app that allows clients to add multiple tablets to one page. Although I have not found any way to easily create a form for editing tabs.
Now assuming that there is only one title in a tab, I have a form that adds a tab, it is simple but I also want a form that displays text input for each tab. And edit the title and I am struggling with two main concepts:
- How to dynamically display areas after grabbing tab data from the database (in the table Each tab has its own line).
- How to loop through the submitted data and update each tab in the database.
- How to select a particular text field from the number (for example "1", id "Element" TabTitle_1 ".
Currently I call it five I am limiting in areas and using code like this:
1. asp: textbox id = "TabTitle_1" runat = "server" & gt; & lt; ; / Asp: textbox & gt; & lt; br & gt; .... 5. & lt; ASP: text box id = "tabetyl_5" runat = "server" & gt; & lt; / asp: text box & Gt; with the server side to set the tab:
// numrow S is the number of current tabs if numrows> 0 then Me.TabTitle_1.Text = DtClientNotes.Rows (0) .emem ("title") Me.TabTitle_1.Visible = True End if ... if numrows> 4 Then Me.TabTitle_5.Text = dtClientNotes.Rows (4) .emem ("title") m. tab Title_5.Visible = True End if to handle form sub-composition With the kind of code:
if numrows> 0 then the client.ititab (dtClientNotes.Rows (0) .emem ("id"). ToString, Me.TabTitle_1.Text) IF I TabTitle [0] would be acceptable and allow easy looping (as it happens in PHP ), But apparently this is not a "valid identifier." It is very possible that I have completely approach to her head. I have used ASP.NET and VB for simple forms, but I have been using more for PHP, if someone can give me some hints, I would be very grateful!
You want you to customize your layout (for example 'Repeater Control' link) See the examples given through the medium) It is just so easy to use the data in the control (to make each object again in the repeater, look again at the examples given on the MSDN website).
Comments
Post a Comment