Recommended: ASP development experience talks about 10 experiences in ASP development After half a year, I completed the management information system of a bureau-level unit alone, and released a total of 29 BETA versions and 3 official versions. ASP ORACLE environment, 285 ASP files, functions involve data entry, modification, fuzzy query, automatic statistics, data analysis and reporting.
1. Close the window and write on the connection of the picture
javascript:window.close();
Submitted pictures to write
javascript:document.Form1.submit();
The confirmation dialog box appears before deletion:
| The following is the quoted content: <a href=del.asp?id=<%=rs(rowid)%> ONCLICK=javascript:return confirm('Do you really want to delete data?')>Delete</a> |
2. Use VBScript to pop up the prompt box and jump to the specified page
| The following is the quoted content: <% Response.Write <script language='javascript'>alert(submit successfully!);location.href=AddBook.asp;</script> %> |
3. Page extraction and waiting. . . . Script Description:
Add the following code to the <head> area
| The following is the quoted content: <SCRIPT LANGUAGE=JavaScript> document.write(<font size=6 color=blue face='KaiTi_GB2312'><B>Loading into the homepage of Xixi Station, please wait...</B></font>); window.clear; window.location.href=; </SCRIPT> |
4. Modify the record directly in Text, and then click Modify to save the record
| The following is the quoted content: <%count=0 do while not (rs.eof or rs.bof) and count<rs.PageSize %> <form action=webGroupEdit.asp method=post name=GroupEdit onSubmit=return Checkedit()> <tr bgcolor=E9F3FF> <td> <%=rs(id)%> <input name=b type=hidden id=b value=<%=rs(id)%>> <input name=currpage type=hidden id=currpage value=<%=page%>></td> <td height=18><input name=a type=text id=a value=<%=rs(MemGroupName)%> size=20 maxlength=50> </td> <td height=18><input name=c type=text id=c value=<%=rs(Remark)%> size=25 maxlength=30></td> <td><input type=submit name=Submit value= Modify></td> <td><div align=center><a href=webGroupDel.asp?id=<%=rs(id)%>&page=<%=page%> onClick=return check()>Delete</a></div></td> </tr> </form> <% count=count 1 rs.movenext loop %> |
5. Automatic calculation problem:
| The following is the quoted content: <input type=hidden name=selvalue> <SELECT NAME=select1 onChage=javascript:document.form1.selvalue.value=this.options[this.options.selectedIndex].text> <option value=1>Sina</option> <option value=2>Baidu</option> <option value=3>China.com</option> <option value=4>Tencent</option> </SELECT> |
Share: Asp program error detailed description example table The solution to errors when writing programs is not complete, but the general problem should be ActiveServerPages, ASP0126(0x80004005)-->The file containing cannot be found Microsoft OLEDB Provider for ODBCDrivers(0x80040E21)-->sql