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: CS0029: Cannot implicitly convert type 'int' to 'string'

Source Error:


Line 160:            blStudReg.Blood_Group = string.IsNullOrEmpty(DropDownList2.SelectedItem.Text.Trim()) ? "" : DropDownList2.SelectedItem.Text.Trim();
Line 161:            blStudReg.Gender = Convert.ToInt32(ddlGender.SelectedValue);
Line 162:            blStudReg.PassingYr_High = Convert.ToInt32(string.IsNullOrEmpty(txtYearHS.Text.Trim()) ? "0" : txtYearHS.Text.Trim());
Line 163:            blStudReg.Board_High = txtBoardHS.Text.Trim();
Line 164:            blStudReg.Subject_High = txtSubjectsHS.Text.Trim();

Source File: c:\inetpub\vhosts\uplabourhelp.in\shdcstp.org\Online_Application.aspx.cs    Line: 162






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