怎样把某个表中的数据根据名称记入表单中?
例如说,TEXTBOX控件ID A 对应列名A
TEXTBOX控件B对应列名B
这个循环我写好了
Reader.Read() For Each Content As Control In Master.FindControl("ContentPlaceHolder1").Controls Dim name As String = Content.ID If name <> Nothing Then Dim tb As TextBox = Master.FindControl("ContentPlaceHolder1").FindControl(name) tb.Text = (Reader(name)) End If next