Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7512923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:01:08+00:00 2026-05-30T00:01:08+00:00

How do you write fractions in mvc3?!? I know in php its ½ I

  • 0

How do you write fractions in mvc3?!?

I know in php its ½

I tried that and it didn’t work.

General gist of what I am doing is just a simple site to list my movie collections, and one movie is titled The Lion King 1 1/2 while another one is Alien 2 which I also want to render as ² in mvc3 but it doesn’t handle these.

I am also making this site with WebMatrix.

Code:

@{
var mId = UrlData[0].AsInt();    
var db = Database.Open("PhotoGallery");
var movie = db.QuerySingle(@"SELECT * FROM Movies WHERE Id = @0", mId);
}
<h2 class="title">@movie.Title (@movie.Year)</h2>

Output:

The Lion King 1&frac12;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:01:10+00:00Added an answer on May 30, 2026 at 12:01 am

    How are you trying to write them out? If using @Model.Field try @Html.Raw(Model.Field) instead.

    I wound recommend using the antixss libraries sanitizer first though before storing that data in the database to remove potentially malicious javasrcript

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to write a program that modifies fractions and I need to make
Background: I'm trying to write a shell script using php that will automatically checkout
Trying to write a couple of functions that will encrypt or decrypt a file
Using standard mysql functions is there a way to write a query that will
I have a PHP-script that outputs: ((5^2x^2)^2+3)/(sqrt(sqrt(81))) I want it to be formatted properly
I am tyring to write some Java code that basically just plays a short
I'm trying to write functions that will allow me to marshal/unmarshal simple structs into
Named function parameters can be emulated in PHP if I write functions like this
Specifically Spidermonkey . I know you write functions and attach them to events to
I'm starting to work with the android system and Java in general. I'm coming

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.