在某个事件中,我的文本框字段是从SQL数据库填充的。没有什么比文本框,只是一个ID,TextMode和一些CSS。
以下是背景代码:
Protected Sub LocationControl_SelectedIndexChanged(sender As Object, e As EventArgs) Handles LocationControl.SelectedIndexChanged
If LocationControl.SelectedValue = "(New Location)" Then
Clear()
Else
Dim filter As String = "locationID = '" + LocationControl.SelectedValue.ToString() + "'"
Dim dv As DataView = CType(SqlDataSource1.Select(DataSourceSelectArguments.Empty), DataView)
dv.RowFilter = filter
For Each drv As DataRowView In dv
LocName.Text = drv("locationName").ToString()
LocAddress.Text = drv("locationAddress").ToString()
LocDirections.Text = drv("drivingdirections").ToString()
LocURL.Text = drv("URL").ToString()
statusDDL.SelectedValue = drv("statusID").ToString()
Next
End If
End Sub
代码有效,但是当我在任何浏览下运行它时,IE会在所有多行文本框上面创建任何额外的行。
有什么想法吗?