milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home
  3. ASP.NET
  4. MVC 3

Adding controller

Details
Written by: Stanko Milosev
Category: MVC 3
Published: 23 May 2012
Last Updated: 31 May 2012
Hits: 3706

When you do any change in your model then you have to rebuild solution.

My Web.config connection string looks like:
 
    

 

Tutorial for getting started with ASP.NET MVC 3 you can find here.

Publish application on windows azure (free)

Details
Written by: Stanko Milosev
Category: MVC 3
Published: 30 November -0001
Last Updated: 30 November -0001
Hits: 526

DateTime localization

Details
Written by: Stanko Milosev
Category: Razor
Published: 22 October 2013
Last Updated: 30 November -0001
Hits: 3751

Use something like:

@DateTime.Now.Localize(new CultureInfo(

Special characters

Details
Written by: Stanko Milosev
Category: Razor
Published: 10 September 2013
Last Updated: 10 September 2013
Hits: 3616

If your model returns something like:

'message'

Then apply Raw, something like:

@{
  string myModel = "";
  myModel = Model.XmlRuleObject.Alerts[0].Property.ToString()
  @Html.Raw(@myModel);
}
alert("'@myModel'");
  1. Special character in Razor

Subcategories

Razor

Page 5 of 6

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6