I am getting error on the below code.
void Page_Load()
{
lblOperDesc.Text = '" + Session["gUserID"] + "'";
}
The error is given below,
Compiler Error Message: CS1010: Newline in constant
Line 17: void Page_Load()
Line 18: {
Line 19: lblOperDesc.Text = '" + Session["gUserID"] + "'";
Line 20: }
Line 21:
Source File: c:\inetpub\ Line: 19
I don't know what is causing that problem.
Please help me out.
Thanks in Advance,
Laks
void Page_Load()
{
lblOperDesc.Text = '" + Session["gUserID"] + "'";
}
The error is given below,
Compiler Error Message: CS1010: Newline in constant
Line 17: void Page_Load()
Line 18: {
Line 19: lblOperDesc.Text = '" + Session["gUserID"] + "'";
Line 20: }
Line 21:
Source File: c:\inetpub\ Line: 19
I don't know what is causing that problem.
Please help me out.
Thanks in Advance,
Laks