帮我看看了,报36行错误.看看了!急呀,特急!
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: There is no row at position 0.
Source Error:
Line 34: SqlDataAdapter ma = new SqlDataAdapter(sql,myconn);
Line 35: ma.Fill(ds,"ZH_HR_INFO");
Line 36: s1=ds.Tables["ZH_HR_INFO"].Rows[0]["CName"].ToString(); //姓名
Line 37: s2=ds.Tables["ZH_HR_INFO"].Rows[0]["EName"].ToString(); //英文名