We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Creating a Numeric TextBox

Thread ID:





95315 Jul 1,2010 07:39 AM UTC Jul 1,2010 04:07 PM UTC ASP.NET MVC (Classic) 1
Tags: Tools
Dennis Morales
Asked On July 1, 2010 07:39 AM UTC


I am creating a numeric textbox model and i cannot assign the model i created in the controller to the Html.NumericTextBox Helper class. It just created a numeric textbox but does not implement the assigned model properties.

I am currently using version.


Prem Kumar D [Syncfusion]
Replied On July 1, 2010 04:07 PM UTC

Hi Dennis,

Thanks for using Syncfusion products

With regard to your query, you can follow the code below to set the properties

public ActionResult Index()
NumericTextBoxModel myModel = new NumericTextBoxModel();
myModel.MinValue = 10;
myModel.MaxValue = 20;

ViewData["myNumeric"] = myModel;
return View();


Note:The id of the Numeric textbox should match with the ViewData key

Please get back to us for any further queries

Premkumar D


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon