hi
I use the below code
it will replace "," with "" and save into database
now I want it replaces below character : . /\ with ""and save into database
_cmd.Parameters.AddWithValue("@Price", Txtvadie.Text.Replace(",", ""));
best regards
Neda
nedash says: _cmd.Parameters.AddWithValue("@Price", Txtvadie.Text.Replace(",", ""));
Replace above with below.
_cmd.Parameters.AddWithValue("@Price", Txtvadie.Text.Replace(":", "").Replace(".", "").Replace("/\\", ""));
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.