vendredi 14 mars 2014

Cannot apply indexing with [] to an expression type of 'method group' in Visual Studio


Vote count:

0




I am using Visual Studio 2013 for Web Development. But I am getting an error. The error has been described in Title:



Cannot apply indexing with [] to an expression of type 'method group'



The code I am using is:



var page_title = Request.Unvalidated["page_title"];
var page_content = Request.Unvalidated["page_content"];


The image of the page is as under! You can see the lines with the:



Request.Unvalidated[];


part underlined.


enter image description here


In WebMatrix it worked perfect! But as I moved onto Visual Studio, this line that executed perfectly in WebMatrix, is giving me error and I cannot execute the code in Browser to get it to run.


Is it a bug or am I lacking something here?



asked 2 mins ago






Aucun commentaire:

Enregistrer un commentaire