Click here to Skip to main content
15,886,963 members
Home / Discussions / Web Development
   

Web Development

 
QuestionImageButton makes a postBack instead of executing command method Pin
subai16-Apr-07 19:07
subai16-Apr-07 19:07 
AnswerRe: ImageButton makes a postBack instead of executing command method Pin
kubben17-Apr-07 2:34
kubben17-Apr-07 2:34 
GeneralRe: ImageButton makes a postBack instead of executing command method Pin
subai21-Apr-07 3:51
subai21-Apr-07 3:51 
QuestionASP checkbox within a checkbox Pin
.NET4Ever16-Apr-07 13:25
.NET4Ever16-Apr-07 13:25 
QuestionASP or PHP files without a server Pin
haggenx16-Apr-07 11:59
haggenx16-Apr-07 11:59 
AnswerRe: ASP or PHP files without a server Pin
Dmitry Khudorozhkov16-Apr-07 12:35
Dmitry Khudorozhkov16-Apr-07 12:35 
GeneralRe: ASP or PHP files without a server Pin
haggenx17-Apr-07 7:35
haggenx17-Apr-07 7:35 
Questionupdate database field from asp form Pin
alxtech16-Apr-07 9:36
alxtech16-Apr-07 9:36 
I am trying to update a field in a sql database from an asp form but i am getting the following error message when submiting update:
Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E37)
Invalid object name 'request.form'.


this is the code:

'COMMENT: THIS SUB DISPLAYS THE FORM WITH THE VALUES FROM 'DATABASE ALL FIELD IN THE TABLE DISPLAY, 2 FIELDS.

Sub EditItem()

Response.write ("
Edit Record
")

which=request("which")


MySQL="SELECT * FROM Table Where categoryNum = " & which

Set MyRs=MyConn.Execute(MySQL)

Response.write ("")
Response.write ("")
Response.write ("")

howmanyfields=MyRs.fields.count -1

for i=0 to howmanyfields

if Not MyRs(i).name = "ID" then
ThisRecord = MyRs(i)
ThisRecordName = MyRs(i).name
If IsNull(ThisRecord) or ThisRecord = "" Then
ThisRecord = " "
end if
Response.write ("")
Response.write ("")
Response.write ("")
Response.write ("")
end if
next

Response.write ("")
Response.write ("")
Response.write ("")
Response.write ("")
Response.write ("
" & ThisRecordName & ":
")
Response.write ("")


MyRs.close
Set MyRs= Nothing

End Sub


'COMMENT: THIS SUB GETS EXCECUTED AFTER PREVIOUS CALLS IT. IT UPDATES THE VALUE TO THE DATABASE, REQUEST.FORM(CATEGORY) VALUE.

Sub EditItemAction()

which = Request(strKey)
'which = query string passed as category number
MySQL="SELECT * FROM table Where category = " & which

Set MyRs=MyConn.Execute(MySQL)


MySQL1="UPDATE " & strTable & " SET categoryName = request.form(categoryName) Where " & strKey & " = " & which


Set MyRs1=MyConn.Execute(MySQL1)

MyConn.Close
set MyConn=nothing


End Sub
AnswerRe: update database field from asp form Pin
Steve Echols16-Apr-07 17:42
Steve Echols16-Apr-07 17:42 
GeneralRe: update database field from asp form Pin
alxtech20-Apr-07 5:27
alxtech20-Apr-07 5:27 
Questionhow to retrive data from access databse table to excel sheet Pin
JanapatiBalu16-Apr-07 0:43
JanapatiBalu16-Apr-07 0:43 
AnswerRe: how to retrive data from access databse table to excel sheet Pin
Paddy Boyd16-Apr-07 0:46
Paddy Boyd16-Apr-07 0:46 
GeneralRe: how to retrive data from access databse table to excel sheet Pin
JanapatiBalu16-Apr-07 1:01
JanapatiBalu16-Apr-07 1:01 
GeneralRe: how to retrive data from access databse table to excel sheet Pin
Bradml16-Apr-07 3:34
Bradml16-Apr-07 3:34 
QuestionDesigning .ASPX PAGE Pin
BINOVAR16-Apr-07 0:21
BINOVAR16-Apr-07 0:21 
AnswerRe: Designing .ASPX PAGE Pin
badgrs16-Apr-07 1:00
badgrs16-Apr-07 1:00 
AnswerRe: Designing .ASPX PAGE Pin
Bradml16-Apr-07 2:52
Bradml16-Apr-07 2:52 
GeneralRe: Designing .ASPX PAGE Pin
BINOVAR16-Apr-07 17:56
BINOVAR16-Apr-07 17:56 
GeneralRe: Designing .ASPX PAGE Pin
Guffa16-Apr-07 22:20
Guffa16-Apr-07 22:20 
QuestionJavascript Detection Pin
L Viljoen15-Apr-07 23:44
professionalL Viljoen15-Apr-07 23:44 
AnswerRe: Javascript Detection Pin
badgrs16-Apr-07 1:07
badgrs16-Apr-07 1:07 
AnswerRe: Javascript Detection Pin
Guffa16-Apr-07 6:49
Guffa16-Apr-07 6:49 
GeneralRe: Javascript Detection Pin
Gavin Roberts17-Apr-07 1:36
Gavin Roberts17-Apr-07 1:36 
GeneralRe: Javascript Detection Pin
Guffa17-Apr-07 1:42
Guffa17-Apr-07 1:42 
QuestionSince there is a hidden java forum in CP... Pin
tatchung15-Apr-07 23:32
tatchung15-Apr-07 23:32 

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.