using delegate how to insert data into table

Posted by Ramakrishna188 under ASP.NET on 3/12/2012 | Points: 10 | Views : 1042 | Status : [Member] | Replies : 1
hi all

please send me any one how to insert data into table using delegate using c#


Posted by: Hmanjarawala on: 3/12/2012 [Member] Bronze | Points: 25


Try this,

public int InsertData()
//Your code for inserting data is over here

protected void btnInsert_Click(object sender, EventArgs e)
Func<int> insertDelegate = new Func<int>(InsertData);
int i = insertDelegate();

Mark this as answer, if it helps you.......

Himanshu Manjarawala
Sr. Software Engineer@AutomationAnywhere

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

Login to post response