Web Connection
Inputting a number with step
Gravatar is a globally recognized avatar based on your email address. Inputting a number with step
  Jim Day
  All
  Apr 19, 2026 @ 11:10am
<%= HtmlTextBox("txtFixed",this.page.oRounds.oData.Score01,[type="Number" step="1"]) %>

Should this work? I get a syntax error

THIS.CTL0134.EvalExpression = [ HtmlTextBox("txtFixed",this.page.oRounds.oData.Score01,[type="Number" step="1"]) ]

Is there another way to use arrows to increment and decrement singlel digit number?

THanks

Gravatar is a globally recognized avatar based on your email address. re: Inputting a number with step
  Rick Strahl
  Jim Day
  Apr 19, 2026 @ 11:54am

Use Single quotes on the attributes definition. The problem is that the expression is generated with [ and ] delimiters and the nested brackets break that string.

<%= HtmlTextBox("txtFixed",this.page.oRounds.oData.Score01,'type="Number" step="1"') %>

+++ Rick ---

© 1996-2026