ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 19th, 2003, 11:06 AM
rosenzl rosenzl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 12 rosenzl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How to specify that database records have been deleted?

I have a web application that simply has 2 text boxes with a start and end date. I have a submit button which triggers the delete from an access database. I use vb.net and asp.net with an access database.

I either don't display "record deleted" or always display "record deleted". I tried the textboxchanged, but that doesn't trigger until I hit the submit button. I tried response.redirect, response.write and even tried using a label with the message. Can anyone tell me how to stop the "recode deleted" upon clicking on the textbox or clicking anywhere on the form.

Thanks

Reply With Quote
  #2  
Old July 20th, 2003, 09:37 PM
unatratnag unatratnag is offline
Average Intelligence
Dev Shed Novice (500 - 999 posts)
 
Join Date: Apr 2003
Location: Ohio/Chicago
Posts: 678 unatratnag User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 22 sec
Reputation Power: 6
Send a message via AIM to unatratnag
This is a little confusing

How are you writing the "record deleted" to the screen?

User selects either show deleted or not, and then after they select show deleted it continues to show deleted after they go back to do not show? Please clarify or just show some code, this doesn't exactly sound like sensitive information so i wouldn't obscure the problem......

Reply With Quote
  #3  
Old July 21st, 2003, 04:29 AM
rosenzl rosenzl is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 12 rosenzl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
All the user does is enter 2 dates and clicks the submit button. All the database records in that date range are deleted. I first used the response.write statement. But the problem is that the message I display stays on the form because I have no other button to stop it from displaying. I want the message to be gone once the first date is entered again.

Here's the code:

____________________________________________
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
SetFocus("Txtstartdate")
end sub
___________________________________________
Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
'Response.Write("In button1")
With cmddelete
.Parameters(0).Value = Txtstartdate.Text.ToString
.Parameters(1).Value = txtenddate.Text.ToString
End With

OleDbConnection1.Open()
cmddelete.ExecuteNonQuery()
OleDbConnection1.Close()
Response.Write("Record(s) deleted")
end sub

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > How to specify that database records have been deleted?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway