我有一个javascript函数“初始化(纬度,经度)”,当我点击我的按钮时,我想从我的文本框中传递值来做某事。
Protected Sub btnLat_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim latit As TextBox = formView.FindControl("nr_latitudeTextBox")
Dim longit As TextBox = formView.FindControl("nr_longitudeTextBox")
Page.ClientScript.RegisterStartupScript(Me.GetType(), "initialize", "initialize(" & latit.Text, longit.Text & ");", True)
End Sub
但是当我尝试这样做时,我得到了错误
重载解析失败,因为没有可访问的“RegisterStartupScript”接受此数量的参数。