但为什么我在内容页里面添加一个按钮,并对其编程,但点击它却没有反应不执行呢,请大家帮助,谢谢!
代码绝对无误,我用了段点,根本就没有执行
protected void btn_JiSuan_Click(object sender, EventArgs e)
{
double WeiDu = BaseP.Cdouble(txt_WeiDu.Text.Trim());
double JingDu = BaseP.Cdouble(txt_JingDu.Text.Trim());
string DateTimeDay = txt_DayTime.Text.Trim();
string DateTimeHour = txt_DayTime.Text.Trim();
double ChiWei = dqwdd.ChiWei(DateTimeDay);//赤纬
double ho = dqwdd.ho(WeiDu, JingDu, ChiWei, DateTimeHour);//太阳高度角
StringBuilder sb = new StringBuilder();
sb.Append(" 大气稳定度分类计算结果\n");
sb.Append(" 输入参数:\n");
sb.Append(" 观测点纬度:" + BaseP.Cstr(WeiDu) + "°\n");
sb.Append(" 观测点经度:" + BaseP.Cstr(JingDu) + "°\n");
sb.Append(" 观测日期时间:" + DateTimeDay + "\n");
sb.Append("\n");
sb.Append(" 计算结果:\n");
sb.Append(" 赤纬(太阳倾角):" + BaseP.Cstr(ChiWei) + "°\n");
sb.Append(" 太阳高度角:" + BaseP.Cstr(ho) + "°\n");
txt_Result.Text = sb.ToString();
txt_WeiDu.Text = "ss";
}
[此贴子已经被作者于2007-11-20 22:28:47编辑过]