|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Help with vb.net Maths syntax in asp.netHi,
I am trying to get my web app to do some maths... The user enters a number in a textbox, then i want the app to deduct 2 from every multiple of 12. ie 12 =10 24 =20 36 =30 48 =40 and so on Any one got any ideas on how i can do this? Thanks in advance Jamie On 25 Oct, 09:45, "Jamie Sutherland"
<ja...@n0spam.sutherlandwest.plus.com> wrote: Show quoteHide quote > Hi, Hi Jamie> I am trying to get my web app to do some maths... > The user enters a number in a textbox, then i want the app to deduct 2 from > every multiple of 12. > ie > 12 =10 > 24 =20 > 36 =30 > 48 =40 > > and so on > > Any one got any ideas on how i can do this? > > Thanks in advance > Jamie How about: Dim x as integer = ATextBox.text if (x mod 12) = 0 then x -= 2 HTH
PostBackTrigger for Ajax cannot find FormView Button
BulletedList Control unhandled exception in custom web control (PS:PSGridView) Position of a dynamic table DropDownList in a GridView RequiredFieldvalidator displays error too early How to make to RadioButtonList on the same group Editing/Deleting/Inserting Records using ASPxGridView Menu Control used on a MasterPage VWD2005: SQLCommand can't be added to page, why? |
|||||||||||||||||||||||