Insert data into sql server [Resolved]

Posted by Hueikar under WCF on 5/31/2012 | Points: 10 | Views : 2326 | Status : [Member] | Replies : 4
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

Posted by: Sakthi.Singaravel on: 5/31/2012 [Member] Silver | Points: 50

Up
0
Down

Resolved
it may be use for u..

http://www.codeproject.com/Articles/37522/7-Simple-Steps-to-Connect-SQL-Server-using-WCF-fro

Regards,
Singaravel M

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

Posted by: Sakthi.Singaravel on: 5/31/2012 [Member] Silver | Points: 25

Up
0
Down
r u refered my suggestion?

Regards,
Singaravel M

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

Posted by: Sakthi.Singaravel on: 5/31/2012 [Member] Silver | Points: 25

Up
0
Down
if u got solution, mark as answer which one is correct..

Regards,
Singaravel M

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

Login to post response