function tijiao1()
{
var str3 = parseInt(document.getElementById("<%=this.DropDownList5.ClientID%>").value);
if(str3!="")
{
if(document.getElementById("<%=this.RadioButton10.ClientID%>").checked)
{
parent.bottomFrame.location='baobiao/baobiao12.aspx';
}
if(document.getElementById("<%=this.RadioButton12.ClientID%>").checked)
{
parent.bottomFrame.location='baobiao/baobiao13.aspx';
}
}
else
{
alert('对不起,您输入的查询条件不能为空!');
}
}
现在 STR3里有没有值 都直接走!else里没有起作用 这个是因为什么呀
{
var str3 = parseInt(document.getElementById("<%=this.DropDownList5.ClientID%>").value);
if(str3!="")
{
if(document.getElementById("<%=this.RadioButton10.ClientID%>").checked)
{
parent.bottomFrame.location='baobiao/baobiao12.aspx';
}
if(document.getElementById("<%=this.RadioButton12.ClientID%>").checked)
{
parent.bottomFrame.location='baobiao/baobiao13.aspx';
}
}
else
{
alert('对不起,您输入的查询条件不能为空!');
}
}
现在 STR3里有没有值 都直接走!else里没有起作用 这个是因为什么呀
{
var str3 = parseInt(document.getElementById(" <%=this.DropDownList5.ClientID%>").value);
alert(str3);//打印出结果看看便知!
if(str3!="")
{
if(document.getElementById(" <%=this.RadioButton10.ClientID%>").checked)
{
parent.bottomFrame.location='baobiao/baobiao12.aspx';
}
if(document.getElementById(" <%=this.RadioButton12.ClientID%>").checked)
{
parent.bottomFrame.location='baobiao/baobiao13.aspx';
}
}
else
{
alert('对不起,您输入的查询条件不能为空!');
}
}
{
var str3 = parseInt(document.getElementById(" <%=this.DropDownList5.ClientID%>").value);
alert(str3);//打印出结果看看便知!
if(str3!="")
{
if(document.getElementById(" <%=this.RadioButton10.ClientID%>").checked)
{
parent.bottomFrame.location='baobiao/baobiao12.aspx';
}
if(document.getElementById(" <%=this.RadioButton12.ClientID%>").checked)
{
parent.bottomFrame.location='baobiao/baobiao13.aspx';
}
}
else
{
alert('对不起,您输入的查询条件不能为空!');
}
} [/code]
中间有空格,无法转换成Int