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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:40:01+00:00 2026-06-17T06:40:01+00:00

I have an extremely simple page. It has a few devexpress textboxs and a

  • 0

I have an extremely simple page. It has a few devexpress textboxs and a devexpress button.

These textboxs are bound to specific fields within my model.

Upon clicking the button it shoots over to my action, upon reviewing the model in my action my fields are empty. I initially had this working perfectly with @Html.TextBoxFors. Upon adding in the Devexpress textboxs and textboxfors nothing works.

I have reviewed stackoverflow and have found no solution, although I have found a similar question, essentially identical but if I need to start a bounty I would rather do it on my own question, as far as code is concerned mine is very very similar to the one below. :

MVC 3 DevExpress – Model Returned to Controller is Empty

I have also reviewed devexpress’s website and found this. :

http://www.devexpress.com/Support/Center/Example/Details/E2886

The above is essentially a demo of how to properly do this. My project and the other stackoverflow user’s code are pretty much exactly the same as this.

I am assuming others have had this issue. I have been attempting to get this to work for weeks now and still have had no luck. Any ideas are greatly appreciated.

Code

View

@inherits System.Web.Mvc.WebViewPage<MyModel>
@using DevExpress.Web.ASPxEditors;

@using (Html.BeginForm("MyModelSave", "Home", FormMethod.Post))
{
    <div>
        @Html.DevExpress().TextBox(settings =>
                   {
                       settings.Name = "txtId";
                       settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
                   }).Bind(Model.Id).GetHtml()
    </div>
    <div>
        @Html.DevExpress().TextBox(settings =>
                   {
                       settings.Name = "txtName";
                       settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
                   }).Bind(Model.Name).GetHtml()
    </div>
    <div>
        @Html.DevExpress().Button(s =>
                     {
                        s.Name = "btnSave";
                        s.Images.Image.Url = "~/Images/save.png";
                        s.Text = string.Empty;
                        s.ToolTip = "Save";
                            s.UseSubmitBehavior = true;
                        }).GetHtml()
    </div>
}   

Action

[HttpPost]
        public ActionResult MyModelSave([ModelBinder(typeof(DevExpressEditorsBinder))]MyModel modelTest)
        {
            if (!ModelState.IsValid)
            {
                return View();
            }
            else
            {
                //Work with model
                return View();
            }
        }
  • 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-17T06:40:02+00:00Added an answer on June 17, 2026 at 6:40 am

    For the model binding your html input (TextBox) names and your model property names should match.

    So your DevExpress().TextBoxs need to have the same settings.Names as your model properties:

    <div>
        @Html.DevExpress().TextBox(settings =>
               {
                   settings.Name = "Id";
                   settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
               }).Bind(Model.Id).GetHtml()
    </div>
    <div>
        @Html.DevExpress().TextBox(settings =>
               {
                   settings.Name = "Name";
                   settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
               }).Bind(Model.Name).GetHtml()
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this extremely simple splash page here: http://iph0wnz.com It has the main graphic
I have an extremely simple page that I'm trying to view in the Facebook
I have a problem with an extremely simple feature. It is a Next Page
I have an extremely simple page that isn't displaying properly in IE6. In this
I have an extremely simple web application running in Tomcat using Spring 3.0.2, Hibernate
I am currently learning F# and have tried (an extremely) simple example of FizzBuzz.
I have written a very simple page counter and a logging script that increments
I have an extremely simple JSON object that looks like the following: var data
I have an extremely simple horizontal menu. I wanted to font to become bold
I have two variations of an extremely simple piece of XAML. First here is

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.