I have several textBoxes in a template edit form that I need to validate. The value could be null (no input) otherwise a number with max value 100. Moreover, I need to show/format the number with % but, being the db column an int, I do not have to write the % but only show it in the text box. How can I do the above?
Thanks,
Felice
Thanks,
Felice
<
EditFormSettings
EditFormType
=
"Template"
>
<
EditColumn
UniqueName
=
"EditCommandColumn1"
FilterControlAltText
=
"Filter EditCommandColumn1 column"
> </
EditColumn
>
<
FormTemplate
>
<
table
>
<
tr
>
<
td
> </
td
>
<
td
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
Text
=
"Margins:"
></
asp:Label
>
</
td
>
<
td
>
<
asp:TextBox
ID
=
"TextBox1"
runat
=
"server"
Text='<%# Bind( "margins" ) %>'></
asp:TextBox
>