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

  • Home
  • SEARCH
  • 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 7876455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:10:10+00:00 2026-06-03T03:10:10+00:00

I am simply devloping entry form using mvc 3. I have many text boxes,radio

  • 0

I am simply devloping entry form using mvc 3. I have many text boxes,radio button, lables. so while post back data from view to controller it loses entered data. how to retain this for all postbacks? is there any mvc mechanisam avialable by default? which means by enabling some properties do we command mvc to handle state by itself?

i am not interested to send viewdata object to view. except that what is default mechanism availble in mvc3?

Update:

@using (Html.BeginForm())
{
<table>
    <tr>
        <td>

            @Html.TextBox("txtTitle")
@Html.CheckBox("chkOption")
        </td>
        <td>               
            @Html.TextBox("txtDetails")
@Html.DropDownList("drpList")
        </td>
        <td>
            <input type="submit" value="Cancel" name="action" />
            <input type="submit" value="Create" name="action" />

        </td>
    </tr>
</table>
}

How to maintain state for entered and selected value for all post backs?

  • 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-03T03:10:11+00:00Added an answer on June 3, 2026 at 3:10 am

    It looks like you need to create a Model and use the @Html.TextBoxFor(), @Html.CheckBoxFor() and @Html.DropdownListFor() methods instead, on the properties of your model.

    You would then have a similarly named action method, decorated with a [HttpPost] attribute and the model as a parameter. You will then be able to perform validation on attempted form submissions and process the model if the form state is valid.

    I’d look into researching strongly typed views, models and maybe go through a few online tutorials.

    The link included below seems a good tutorial, it’s a few pages long, but should go through everything you need to get started.

    http://www.asp.net/mvc/tutorials/getting-started-with-aspnet-mvc3/cs/intro-to-aspnet-mvc-3

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

Sidebar

Related Questions

In an application I'm developing, I have a main form that simply sits there
I have started developing a new Rails app on my server using RVM, Rails
Good morning, I have found that many of my customers have MS Access already
I am developing an iOS app using XCode 4.2 I have a UIImage variable
While developing an ASP.NET MVC app, I'm finding a few places where my JsonResult
I have joined a team developing an ASP.NET MVC version 1 application. I run
While developing a game I have designed a class that in normal operation has
While i'm developing in C/C++ and Java, i simply make a compile.bat script that
I've been developing an Android application using version 2.3.3 (API 10). The application simply
We are developing automated regression tests using VMWare and NUnit. We have divided tests

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.