Click here to Skip to main content
15,921,884 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Question"Page cannot be displayed" message Pin
greekius14-Aug-07 22:49
greekius14-Aug-07 22:49 
AnswerRe: "Page cannot be displayed" message Pin
kubben15-Aug-07 1:40
kubben15-Aug-07 1:40 
GeneralSOLUTION OF Re: "Page cannot be displayed" message Pin
greekius15-Aug-07 2:21
greekius15-Aug-07 2:21 
QuestionDataTable Pin
ejaz_pk14-Aug-07 22:20
ejaz_pk14-Aug-07 22:20 
AnswerRe: DataTable Pin
Christian Graus15-Aug-07 0:33
protectorChristian Graus15-Aug-07 0:33 
QuestionApplication_End or Session_End Pin
OlaMohammed14-Aug-07 22:20
OlaMohammed14-Aug-07 22:20 
AnswerRe: Application_End or Session_End Pin
John-ph14-Aug-07 23:07
John-ph14-Aug-07 23:07 
Questiondeleting a product in ASP Pin
surfer.chic.robbie14-Aug-07 21:56
surfer.chic.robbie14-Aug-07 21:56 
can someone please help me. I've gotten all my code to work but my actual delete part. I've tried to fix it but i can't seem to fix the problem what i do just doesn't make any difference.

the code is:

<%
dim strSQL
if request.QueryString("ProductID")="" then
dim rs

set rs=server.CreateObject("ADODB.Recordset")
strSQL="SELECT * FROM Products"

rs.Open strSQL, oConn
response.Write("")
while not rs.EOF
response.Write("")
response.Write("")
response.Write("")
rs.MoveNext
response.Write("")
wend
response.Write("
" & rs("ProductID") & "" & rs("ProductName") & "" & rs("SupplierID") & "" & formatcurrency(rs("UnitPrice"),2) & "Delete
")
rs.Close

else
//the problem is below somewhere Confused | :confused:

strSQL="DELETE FROM Products WHERE ProductID=" & request.QueryString("ProductID")
oconn.execute strSQL //the error message says this part
response.Redirect("DeleteProduct.asp")
end if
oconn.close

%>

thanks Smile | :)
Robbie
AnswerRe: deleting a product in ASP Pin
Fred_Smith14-Aug-07 22:12
Fred_Smith14-Aug-07 22:12 
AnswerRe: deleting a product in ASP Pin
Christian Graus15-Aug-07 0:34
protectorChristian Graus15-Aug-07 0:34 
AnswerRe: deleting a product in ASP Pin
Paddy Boyd15-Aug-07 0:41
Paddy Boyd15-Aug-07 0:41 
QuestionProblem in handling SelectedIndexChanged event of a dynamically created drop down Pin
ridda78614-Aug-07 21:49
ridda78614-Aug-07 21:49 
AnswerRe: Problem in handling SelectedIndexChanged event of a dynamically created drop down Pin
Christian Graus15-Aug-07 0:36
protectorChristian Graus15-Aug-07 0:36 
QuestionCache problem Pin
devboycpp14-Aug-07 21:18
devboycpp14-Aug-07 21:18 
AnswerRe: Cache problem Pin
Amit Kumar G15-Aug-07 0:15
Amit Kumar G15-Aug-07 0:15 
AnswerRe: Cache problem Pin
kubben15-Aug-07 1:42
kubben15-Aug-07 1:42 
GeneralRe: Cache problem Pin
devboycpp15-Aug-07 2:50
devboycpp15-Aug-07 2:50 
GeneralRe: Cache problem Pin
kubben15-Aug-07 3:07
kubben15-Aug-07 3:07 
Questionhow to add user control dynamically Pin
Mairy14-Aug-07 20:30
Mairy14-Aug-07 20:30 
AnswerRe: how to add user control dynamically Pin
John-ph15-Aug-07 0:20
John-ph15-Aug-07 0:20 
AnswerRe: how to add user control dynamically Pin
Christian Graus15-Aug-07 0:37
protectorChristian Graus15-Aug-07 0:37 
QuestionFileUpload Control Pin
weic_tsubusa14-Aug-07 20:06
weic_tsubusa14-Aug-07 20:06 
AnswerRe: FileUpload Control Pin
kubben15-Aug-07 1:44
kubben15-Aug-07 1:44 
AnswerRe: FileUpload Control Pin
koolprasad200315-Aug-07 21:13
professionalkoolprasad200315-Aug-07 21:13 
GeneralRe: FileUpload Control Pin
weic_tsubusa15-Aug-07 22:52
weic_tsubusa15-Aug-07 22:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.