<script language="javascript">
var selectStudentPage="<%=SelectStudentPage%>"
var split="<%=this.SplitStr%>";
function SetStudent(idAndName)
{
if(idAndName==null || idAndName=="")
{
return ;
}
var options=idAndName.split(split);
document.all.studentName.value=options[1];
document.all.txtStudentID.value=options[0];
}
document.all.btnSelectStudent.onclick=function()
{
var id=ShowModalDialog(selectStudentPage,400,600,"","SetStudent","");
if(id!=null)
{
__doPostBack('btnSelectStudent','')
return false;
//return true;
}
else
{
return false;
}
}
</script>
private void btnSelectStudent_Click(object sender, System.EventArgs e)
{
this.studentID = int.Parse(this.txtStudentID.Value);
BindStudentInfo(studentID);
}
