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: CS0266: Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)
Source Error:
Line 43:
Line 44: string sessionId = Request.Params["HealthPlanID"];
Line 45: TextBox1.Text = Session["HealthPlanID"];
Line 46:
Line 47: }
Source File: f:\Documents and Settings\mshields\My Documents\desktop\Verify_PA\Verify_PA\Default1.aspx Line: 45
is the proper way to deal with: "Cannot implicitly convert type 'object' to 'string'. An explicit conversion exists (are you missing a cast?)." I should point out, however, that if the "thing" being stored in the "HealthPlanID" is actuall a null reference, then you are going to get an exception when the runtime tries to execute ToString. Be sure to add error checking to that bit of code.
I can't see in your ASP code anything about assigning a value for your HealthPlanID session variable... first of all, if you are not passing values from ASP to ASPX and vice versa, why do you send both codes?
I can't see the relationship... where do you set the HealthPlanID value?