T
ton
Hi,
I've developed (trying) to custom server web controls:
1) A list which shows in a table several rows from a database table. The
firts column has a button, which is meant to be clicked by the user to get
to edit the record.
2) The second control, also a composite control, is a recordcard, where I
show all the fields in the record. I'm using Label, Textbox, Checkbox and
dropdown lists to let the customer modifiy the data.
What I want is:
pushing on the button from a row I want that the card will be displayed. I
prefer in another form, but from what I've heard this is not possible.
Second best: show the data on the same form. The button handler an event,
the usercontrol than raises another event (which works because I modifiy a
label in the baseform with the correct data) And than the card should be
filled.
The procedure to do all these things: My first approach was that the webcard
allready existed on the form, but with no result.
Private Sub DbWebList1_ShowCard(ByVal RecordID As Integer, ByVal TableID As
dbOLEserver.dbTableNum) Handles DbWebList1.ShowCard
Dim dbWebcard1 As New dbWebCtl.dbWebCard
Label1.Text = "XXXXXXXXXX" + CStr(RecordID) + " " + CStr(TableID)
DbWebCard1.ID = RecordID
DbWebCard1.TableID = TableID
dbWebcard1.CreateCard("all", RecordID, TableID) 'this is double but I wanted
to set the right values
Controls.Add(dbWebcard1)
End Sub
Thanx
Ton
I've developed (trying) to custom server web controls:
1) A list which shows in a table several rows from a database table. The
firts column has a button, which is meant to be clicked by the user to get
to edit the record.
2) The second control, also a composite control, is a recordcard, where I
show all the fields in the record. I'm using Label, Textbox, Checkbox and
dropdown lists to let the customer modifiy the data.
What I want is:
pushing on the button from a row I want that the card will be displayed. I
prefer in another form, but from what I've heard this is not possible.
Second best: show the data on the same form. The button handler an event,
the usercontrol than raises another event (which works because I modifiy a
label in the baseform with the correct data) And than the card should be
filled.
The procedure to do all these things: My first approach was that the webcard
allready existed on the form, but with no result.
Private Sub DbWebList1_ShowCard(ByVal RecordID As Integer, ByVal TableID As
dbOLEserver.dbTableNum) Handles DbWebList1.ShowCard
Dim dbWebcard1 As New dbWebCtl.dbWebCard
Label1.Text = "XXXXXXXXXX" + CStr(RecordID) + " " + CStr(TableID)
DbWebCard1.ID = RecordID
DbWebCard1.TableID = TableID
dbWebcard1.CreateCard("all", RecordID, TableID) 'this is double but I wanted
to set the right values
Controls.Add(dbWebcard1)
End Sub
Thanx
Ton