Server Error in '/' Application.

Conversion failed when converting the varchar value 'Enal Razvi, Select Biosciences - <a href='../admin/AddTutor.aspx?Conf=5c563b13-ddea-410c-a89a-bf0f3b2cb7a1&mconf=&speaker=57265&talk='>Select</a><br/>' to data type int.

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.Data.SqlClient.SqlException: Conversion failed when converting the varchar value 'Enal Razvi, Select Biosciences - <a href='../admin/AddTutor.aspx?Conf=5c563b13-ddea-410c-a89a-bf0f3b2cb7a1&mconf=&speaker=57265&talk='>Select</a><br/>' to data type int.

Source Error:


Line 234:            SelBioconn.Open()
Line 235:            dr = mycommand.ExecuteReader()
Line 236:            While dr.Read
Line 237:                
Line 238:                Tutors &= "<a href='../trainingCoursesIDTutor.aspx?tc=" & Request.QueryString("tc") & "'><img style='border-radius:3px;' src='" & dr("Image") & "' alt='" & dr("firstname") & " " & dr("lastname") & "' class='tcID' width='100px' height='130px' /></a><p class='CNFID'><a href='../trainingCoursesIDTutor.aspx?tc=" & Request.QueryString("tc") & "'><u>" & dr("firstname") & " " & dr("lastname") & "</u></a>, " & dr("position") & ", " & dr("company") & "</p><br/>"

Source File: C:\Websites\selectbiosciences2.0\wwwroot\trainingCoursesID.aspx    Line: 236

Stack Trace:


[SqlException (0x80131904): Conversion failed when converting the varchar value 'Enal Razvi, Select Biosciences - <a href='../admin/AddTutor.aspx?Conf=5c563b13-ddea-410c-a89a-bf0f3b2cb7a1&mconf=&speaker=57265&talk='>Select</a><br/>' to data type int.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2843
   System.Data.SqlClient.SqlDataReader.HasMoreRows() +266
   System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +278
   ASP.trainingcoursesid_aspx.page_load() in C:\Websites\selectbiosciences2.0\wwwroot\trainingCoursesID.aspx:236
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +12
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +11138094
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8974; ASP.NET Version:2.0.50727.8974