protected void Button3_Click(object sender, EventArgs e)
{
string val = TextBox1.Text;
string location = Server.MapPath(".");
SqlCommand cmd = new System.Data.SqlClient.SqlCommand("SELECT ISNULL(MAX(MODIFIED_NO),0) FROM FORM_NAME WHERE FRM_NME='" + TextBox1.Text + "'", con);
con.Open();
object modifyno = cmd.ExecuteScalar();
con.Close();
}
在这里,我想将“modifyno”作为参数传递给 Jquery 函数
function check(modifyno ) {
if (modifyno == "1") {
document.getElementById('Autolbl').value = "100";
document.getElementById('Autotxt').value = "100";
}
if (modifyno == "2") {
document.getElementById('Autolbl').value = "200";
document.getElementById('Autotxt').value = "200";
}
}
我如何通过传递 modifyno 的参数来调用该函数...请尽快帮助我..