Recently in the press release system, the use of the two-level linkage, I put the use of methods recorded, so that in the future to check and help novice friends. Here is the effect chart:
Here's how to implement it:
1. In the. aspx page, drag
DropDownList and ListBox to achieve two-level linkage, they can be selected from the background database of the information to bind, here to achieve the function is to select the "Province" in the DropDownList, and then let the listbox automatically
This article describes the asp.net simple way to achieve a page skin. Share to everyone for your reference, specific as follows:
Here to implement the page skin effect, you can add the corresponding style code to the HTML form as follows:
This paper illustrates two methods of asp.net to realize the output of binary stream. Share to everyone for your reference, specific as follows:
Method One:
System.IO.MemoryStream ms = new System.IO.MemoryStream ();
System.IO.Stream str = new
This article gives an example of how ASP.net realizes the weather forecast according to the city. Share to everyone for your reference, specific as follows:
public void Getwetheaerbycity (string cityname) {
string city = CityName;
String
The example in this article describes the ASP.net implementation method that cancels the enter response of the text input box in the page form. Share to everyone for your reference, specific as follows:
A long time ago when you developed a asp.net
The example in this article tells you about ASP.net's Ajax-based enter key submission. Share to everyone for your reference, specific as follows:
Recently encountered a enter key problem, summed up:
1. First review the HTML form of the response to
Because of the need to upload the image function, so spent some time online to find relevant information finally finished, the effect of the figure is as follows:
The following is a screenshot of the solution and upload pictures:
Here's the
FSO to generate static HTML files when the replacement template label has been a very troublesome problem, at least I think so, but also to do a template, trouble! , I saw a way to solve the problem today.
such as a normal index.asp page, and the
Code that randomly takes records in a recordset
' Moving to random record-steven Jones ' Extension
If not (recordset name. BOF and recordset name. EOF) Then
' Reset the cursor to the beginning
If (recordset name.) CursorType > 0) Then
The recordset
A function that calculates a two time lag
'******************************
'|| Function Timediff (Sbegin, SEnd)
'|| This function calculates the difference of two times and can be used without changing the
'|| Author: Machinecat 2001/10/26
'*********
Some ASP techniques and practical solutions
Random number:
The record keywords that are obtained when querying data are displayed in red:
" & searchname & "")%>
Using ASP to check whether the visitor used the agent
"" Then
Response.Write "
Copy Code code as follows:
new Page 1
Dim rs
Dim sql
Dim count
Set Rs=server.createobject ("Adodb.recordset")
sql = "SELECT * from Shiinfo ORDER by ID ASC"
Rs.Open sql,conn,1,1
%>
Province sql = "SELECT * FROM
Copy Code code as follows:
function GFV (str)
GFV = Request.Form (str)
End Function
Sub ExecuteSQL
Dim content:content = GFV ("content")
On Error Resume Next
Conn.begintrans
Conn.execute (content)
If Err.Number <> 0 Then
Err.Clear
' Several ways to calculate pagination
'//iRecordCount The total number of pages to be calculated
'//iRecordCount is the number of recordsets
'//ipagesize number of records per page
'//One:
If irecordcount Mod ipagesize = 0 Then
Ipagecount = Int
Copy Code code as follows:
' Function: To complete another string before and after a string
' Source: http://jorkin.reallydo.com/article.asp?id=452
Public Function Fill (ByVal sstring, ByVal sStr)
Fill = Rfill (Lfill (sstring,
A= "Japan is a province of China | Our beautiful china Zhangjiajie!" "
B= "China, we, Zhangjiajie, Japan, USA, Apple"
B=split (b, ",")
A=split (A, "|")
For K=0 to UBound (a)
S= ""
N= ""
For i=0 to UBound (b)
If InStr (A (k), B (i)) >0 then
S=s &
The first method: Response.Redirect This jump page method jump speed is not fast, because it will take 2 back (2 times postback), but it can jump to any page, no Site page restrictions (that is, can be jumped from Yahoo to Sina), while not skip
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.