Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: cyp7
Forum: ASP.NET 2.0 Professional November 8th, 2006, 04:07 PM
Replies: 0
Views: 2,135
Posted By cyp7
SqlDataSource On Inserting Event

protected void MySqlDataSource_Inserting(object sender, SqlDataSourceCommandEventArgs e)
{
e.Command.Parameters["@ID"].Value = 0;
}

Call SqlDataSource.Insert() and then do whatever additions...
Forum: ASP.NET 2.0 Basics November 8th, 2006, 12:42 PM
Replies: 1
Views: 1,086
Posted By cyp7
protected void IWSSqlDataSource_Deleting(object...

protected void IWSSqlDataSource_Deleting(object sender, SqlDataSourceCommandEventArgs e)
{
e.Command.CommandText = "DELETE FROM [IWSMessages]";
}

Call SqlDataSource.Delete and add the event...
Forum: ASP.NET 2.0 Basics November 3rd, 2006, 12:42 PM
Replies: 1
Views: 1,086
Posted By cyp7
SqlDataSource Deleting

I'm trying to delete each row in the database using the Deleting event. I have the following code, which is only deleting the first row. Any suggestions?

Thanks,
Carolyn

protected void...
Forum: ASP.NET 2.0 Basics November 3rd, 2006, 11:53 AM
Replies: 16
Views: 24,614
Posted By cyp7
I'm trying to delete each row in the database...

I'm trying to delete each row in the database using the Deleting event. I have the following code, which is only deleting the first row. Any suggestions?

Thanks,
Carolyn

protected void...
Forum: ASP.NET 2.0 Basics November 3rd, 2006, 10:22 AM
Replies: 5
Views: 4,769
Posted By cyp7
Here's the rest of the solution. ...

Here's the rest of the solution.

e.Command.Parameters["@ID"].Value = 2;

Where @ID is the name of your column in your
SQL table in the db.

Hope this works for you!

Carolyn
Showing results 1 to 5 of 5

 


All times are GMT -4. The time now is 05:14 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.