I'm trying to get a value from a textbox then save it to the database as a hex number. Here's what I have so far, but its totally wrong.. it converts the value I enter in the textbox to a hex number, but i want it to submit the exact value that's in the textbox.
Expand|Select|Wrap|Line Numbers
- DAL.CashTrack.Terminals addTerm = new DAL.CashTrack.Terminals();
- addTerm.FkTerminalKey = Convert.ToInt64(txtTermKey.Text, 16);
- .
- .
- .
- addTerm.MarkNew();
- addTerm.Save();
Oh and by the way.. the value has to start with 0x