Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0103: The name 'cmd' does not exist in the current context

Source Error:


Line 29:                SqlCommand cmd1 = new SqlCommand("select * from KRUBPED21072016 where STUDREGNO =@htno", con);
Line 30:                cmd1.Parameters.Add("@htno", SqlDbType.VarChar, 20).Value = htno;
Line 31:                 SqlDataReader dr = cmd.ExecuteReader();
Line 32:                 if (dr.HasRows)
Line 33:                 {

Source File: c:\Websites\vidyavision.com\Results\krubped1stsemresults21072016.aspx.cs    Line: 31






Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0