我想让我的应用在点击按钮的using (MySqlConnection myConnection = new MySqlConnection(constr))
{
string oString = "Select * from euser_student WHERE StudCourse=@StudCourse order by StudentFirstName ASC";
MySqlCommand oCmd = new MySqlCommand(oString, myConnection);
oCmd.Parameters.AddWithValue("@StudCourse", StudCourse);
myConnection.Open();
using (MySqlDataReader oReader = oCmd.ExecuteReader())
{
if (oReader == null || !oReader.HasRows)
{
ScriptManager.RegisterStartupScript(this, typeof(Page), "alert", "alert('No Student Found')", true);
}
else
{
while (oReader.Read())
{
}
}
myConnection.Close();
}
}
中播放视频。
按下按钮时,会出现一个新的dailog框,表示无法播放此视频
MainActivity
DialogBox