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 8205587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:18:14+00:00 2026-06-07T08:18:14+00:00

My MVC view has a table with an editable field as follows. <td> <div

  • 0

My MVC view has a table with an editable field as follows.

  <td>
     <div class="view">
         <%= Model.device_Url%>
         </div>
         <div class="edit">
         <input type="text" name="deviceurl" id = "deviceurl" value="<%= Model.device_Url%>" />   

      </div>
 </td>

The user has the option to edit then save the value entered in the above text box field.

 <td class="options">
    <div class="view">
        <a href="#" class="switchToEdit">Edit</a>
    </div>
     <div class="edit">
      <a href="/Live/Update?streamurl=deviceurl class="save refresh">Save</a>
      <a href="#" class="cancel">Cancel</a>  
        </div>
    </td>

I would like to call my controller /Live/Update and pass in the value changed in the text box in the URL.

How would I get the value entered inthe text box.

Do I need java script to do this?

  • 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-06-07T08:18:17+00:00Added an answer on June 7, 2026 at 8:18 am

    You will need javascript unless you want to use a traditional submit.

    The easiest approach would be to use jQuery and get the value with a line of code similar to this:

    $("#deviceurl").val()
    

    I would then make an ajax call to submit the value back to your controller’s action. You also probably want to use the Url.Action helper to build the Url:

    $.ajax(
            url: '<%=Url.Action("Update")%>,
            data : {deviceUrl :  $("#deviceurl").val()},
            success : function (result){
               // handle logic when the update succeeds
            }
          );
    

    Hope this helps

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

Sidebar

Related Questions

i have a strongly typed asp.net-mvc view and the Model has a . Links
I have two classes (MVC view model) which inherits from one abstract base class.
ASP.NET MVC 2 has powerful features for generating the model-dependent content of the Edit
Part of my MVC 3 VB.NET has a view that uses a list(of model)
I have a partial view that uses a Telerik MVC Grid, and it has
I am using MVC-View Model, EF Model first I am having problems with two
I have a MVC project that has a Linq to SQL dbml class. It
In a MVC project am trying to create a view which has the Title
The below table code in razor in a MVC View, generates a standard table
In my MVC program, once the user has submitted an edit form, those values

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.