选中的学号,通过学号查找学生信息显示在页面上 要即时显示且页面无刷新。ajax不熟悉 不知道怎么用 。求解答 - -!刷行的我实现了全部功能 可不刷新就做不到了 求解答最好给个参考例子就行 ! 不用给全部代码 - -! if (ListBox1.SelectedIndex != -1)
{
string card = ListBox1.SelectedValue.ToString();
MODEL.CVS_User user = BLL.Bll.FindSingle(card); stunm.Text = user.s_name;
stuid.Text = user.userID;
userid.Text = user.ID_CARD;
if (user.Sex == 1)
{
Radio1.Checked = true;
}
else
{
Radio2.Checked = true;
}
Card.Text = user.card;
classname.Text = user.s_class;
tele.Text = user.phone_number;
phone.Text = user.Phone;
workNo.Text = user.WorkNo;
OldID.Text = user.OldCardID;
pname.Text = user.p_name;
}
else
{
Literal.Text = "没有相关信息学生";
}这个是要查询出来的信息 要显示在页面上 要即时的 给个 参考例子就可以了 !
{
string card = ListBox1.SelectedValue.ToString();
MODEL.CVS_User user = BLL.Bll.FindSingle(card); stunm.Text = user.s_name;
stuid.Text = user.userID;
userid.Text = user.ID_CARD;
if (user.Sex == 1)
{
Radio1.Checked = true;
}
else
{
Radio2.Checked = true;
}
Card.Text = user.card;
classname.Text = user.s_class;
tele.Text = user.phone_number;
phone.Text = user.Phone;
workNo.Text = user.WorkNo;
OldID.Text = user.OldCardID;
pname.Text = user.p_name;
}
else
{
Literal.Text = "没有相关信息学生";
}这个是要查询出来的信息 要显示在页面上 要即时的 给个 参考例子就可以了 !
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货