Rolando Puno

Rolando Puno

  • 1.4k
  • 203
  • 4.7k

Error passing HTML to controller

Jun 1 2023 7:46 AM

Hello I need your..i am new in web: i have HTML
 <form class="form-horizontal" name="HnForm" novalidate>
        <h1>Hostname:</h1>
        <p   id="hostname"></p>
        <script src="~/Scripts/admin/HostName.js"></script>
    </form>

this is my Controller :

             string hn;
            hn = Content($"{account.HostName}").ToString();

now when debug hn is null. no value pass by html


Answers (3)