using delegate how to insert data into table

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

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




Responses

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

Up
0
Down
Hi,

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
http://fieredotnet.wordpress.com/

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

Login to post response