4
Answers

send textbox contain int to database

mali

mali

16y
3.2k
1

hi to all,

my question is how can I send textBox that contain int to sql? in my case  "this.txtCommission.text".

ws.wupdate(this.txtEmail.Text, this.txtPassword.Text, this.txtCommission.text);

thank's  in advance

Answers (4)
0
mali

mali

NA 85 0 16y

everything ok;

my answer to my question work fine.

if you still want me to send you the webmathod just say or post

0
Ryan Alford

Ryan Alford

NA 2.3k 891.7k 16y
could you post the webmethod code?
0
mali

mali

NA 85 0 16y

the Idea is to update the data via textBox, and after a few experiments this is what I find:

ws.wupdate(this.txtEmail.Text, this.txtPassword.Text, (int)int.parse(this.txtCommission.text);

because I have more error I can't say for sure if its work, but for now I at least can compile

 

0
Niradhip Chakraborty

Niradhip Chakraborty

NA 6.5k 527k 16y
Can you please explain it further?