The Classic ASP Finishing

Source: Internet
Author: User
1, close the window in the picture of the connection to write Javascript:window.close ();


submit a picture connection to write Javascript:document. Form1.submit ();

Confirmation dialog box before
Delete:


<a href= "Del.asp?id=<%=rs (" rowID ")%>" onclick= "Javascript:return confirm (' Really want to delete data? ') ' > Delete </a>


2, pop-up the balloon in VBScript and jump to the specified page


<%


Response.Write "<script language= ' JavaScript ' >alert (" submitted successfully! "); location.href= "" addbook.asp "";</script> "


%>


3, the page is picked up to wait .... Script Description:


the following code into the <head> area


<script language= "JavaScript" >


document.write ("<font size=6 color=blue face= ' italics _gb2312 ' ><B> is loading into the home of the creek station, please wait a moment." </B></font> ");


window.clear;


window.location.href= "Http://yzty.europe.webmatrixhosting.net";


</SCRIPT>


4, in the text directly modify the record, and then point to modify the Save record


<%count=0


Do as 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= "><input name=" a "type=" text "id=" a "value=" <%=rs ("Memgroupname")%> "size=" 20 " Maxlength= ">
"

</td>


<td height= "><input name=" C "type=" text "id=" C "value=" <%=rs ("remark")%> "size=" "maxlength=" "></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:


<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 net </option>


<option value= "4" > Tencent </option>


</SELECT>








Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.