razor - Creating and Simple Class and Calling a Method from a cshtml File -


Can anyone give a simple example of simple method and a simple example of how to call method from cshtml file in WebMetrics is?

I am trying to figure out that Webmatrix can be used in an object-oriented manner, allowing me to take advantage of Razor Citex, which is a visual engine option of MVC framework As a web application, at the end of the web application, I can use the combination of the power and productivity of webforms and the pages facing the public. And will be really good.

I have limited knowledge of asp.net, but webmattics intrigues me but I do not think

One in App_Code with just a few types. Insert cc file ...

  Public square some {public zero doIt () {}}  

Then just call a .cshtml file in .. .

  var something = new (); Something.DoIt ();  

You can only make it stable and make some calls. Straighten it.

Hope that helps.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -