Insert data into sql server [Resolved]

Posted by Hueikar under WCF on 5/31/2012 | Points: 10 | Views : 2603 | Status : [Member] | Replies : 1
I am trying to insert data from window phone into sql server using WCF.

But the data does not insert into database, any wrong with my coding?

private void button1_Click(object sender, RoutedEventArgs e)
{
string empid = textBox1.Text;
string fname = textBox2.Text;
string lname = textBox3.Text;
Service1Client proxy = new Service1Client();
proxy.AddEmployeeCompleted += new EventHandler<AddEmployeeCompletedEventArgs>(proxy_AddEmployeeCompleted);
proxy.AddEmployeeAsync(empid, fname, lname);
}

private void proxy_AddEmployeeCompleted(object sender, AddEmployeeCompletedEventArgs e)
{
bool bb = Convert.ToBoolean(e.Result);
}





Responses

Posted by: Kavi.Sirius on: 5/31/2012 [Member] Starter | Points: 50

Up
0
Down

Resolved
hi

Refer this link
how to insert data in database using WCF

http://nareshkamuni.blogspot.in/2012/04/inserting-and-retrieving-data-from.html

Regards
Kavi.n

Hueikar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response