|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to modify for saving data to database from flash page
Hello, friends. I have in the flash page, the variable for width, height, rotation for the ladybug. I want to save the infos in the database by using asp file. But there is error message for my asp file which said : Type mismatch: 'Server.URLEncode'
I wonder how to modify the file so that the data can be sent. Thanks very much in advance! I have in the flash page, action for the movie clip like: onClipEvent(data) { this.mv = width; this.mh = Height; this.mr= rotation; this.strPosition = "Record " add String(CurrentRecord+1) add " of " add String(TotalRecords); } onClipEvent(load) { CurrentRecord = 0; loadVariables ("getdetails.asp?Record=0", this); } For the getdetail.asp, the code like <% Set conn=Server.createObject("ADODB.Connection") conn.open "Project" Set rs= Server.CreateObject("ADODB.Recordset") sql = "Select * From Contacts" rs.Open sql, conn Response.write "Width=" & Server.URLEncode(rs("Width")) & "&" Response.write "Height=" & Server.URLEncode(rs("Height")) & "&" Response.write "Rotation=" & Server.URLEncode(rs("Rotation")) & "&" Response.write "TotalRecords=" & rs.RecordCount rs.Close conn.Close %> Regards! |
|
#2
|
|||
|
|||
|
Do you have nulls in your data?
|
|
#3
|
|||
|
|||
|
No, I don't have
hello, I have all my fields not null. So I don't know what is wrong. I want to save those infos in the database. Then do you have any idea how should I write the code? Thanks!
|
|
#4
|
|||
|
|||
|
Sorry, I don't know then. I was able to run your code on my server no problem. I would suggest taking out the "Server.URLEncode"s temporarily and look at your string and see if you can get any ideas from that.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > how to modify for saving data to database from flash page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|