How to insert values using SQLDataSource code behinde instead of markup language

Harreni
Harreni used Ask the Experts™
on
Hi All,

I need the whole code that explaining how to insert values using code behinde instead of markup language way:

This the sqlDatasource event that I'm looking for:

private void On_Inserted(Object sender, SqlDataSourceStatusEventArgs e) 
{

}

Open in new window


Thanks a lot..
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Are you looking for something like that:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.sqldatasourceview.oninserted%28v=VS.90%29.aspx ?

Or are you looking for communicating with the database without the SqlDatasource stuff?
You might want to take a look into the enterprise-library: http://entlib.codeplex.com/
That lib will encapsulate most of the Database stuff for you
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial