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: CS1061: 'System.Web.UI.WebControls.TextBox' does not contain a definition for 'SelectedValue' and no extension method 'SelectedValue' accepting a first argument of type 'System.Web.UI.WebControls.TextBox' could be found (are you missing a using directive or an assembly reference?)

Source Error:


Line 45:             sb.Append("Alternate Mobile Number:" + txtAlternate.Text + "\r\n");
Line 46:             sb.Append("Business:" + txtBusiness.Text + "\r\n");
Line 47:             sb.Append("City :" + txtcity.SelectedValue.ToString());
Line 48:             sb.Append("Service :" + txtServises.Text + "\r\n");
Line 49:             sb.Append("Address :" + txtaddress.Text + "\r\n");

Source File: d:\inetpub\vhosts\oneclicknow.in\dialhome.in\become-service-partner.aspx.cs    Line: 47






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