c# nullable twine error


private string? typeofcontract
{
{ relapse (string?)viewstate["typeofcontract"]; }
set { viewstate["typeofcontract"] = value; }
}


later formula i this:



typeofcontract = request.querystring["type"];


i am removing following blunder during chapter typeofcontract line stating:




the form 'string' contingency non-nullable value form method use
parameter 't' general form method
'system.nullable<t>'




any ideas? basically, i wish certain "type" exists querystring before behaving an action.



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?