For example, the actual address of this page is:
/news/?type=public&feed=on&page=23
Next is the result returned using different parameters:
Method Return result
GetUrl("") /news/?type=public&feed=on&page=23
GetUrl(0) /news/
GetUrl(1) /news/?type=public&feed=on&page=23
GetUrl("page") /news/?page=23
GetUrl("-page") /news/?type=public&feed=on
GetUrl(":") /news/?type=public&feed=on&page=23
GetUrl(":-feed,-page") /news/?type=public
No need for more explanation, haha. There are many places in this class that flexibly use common parameters, which is also a major feature of EasyASP. Please read the manual for yourself.
3. Methods and properties overview:
(1) Database operations:
property:
(Read and write) Set and get the current database connection object
(Read-only) Query the currently used database type
(Read and write) Set and query error debug switch
(Read-only) Query error message
method:
Establish database connection object based on template
Establish database connection object based on custom string
Get automatic numbering based on table name
Get record set according to conditions
Output SQL statement to get record set
Get record set based on custom SQL statement
Get detailed information about a record
Add a new record
Output SQL statement to add new records
Update records according to conditions
Output SQL statement for update record
Delete records according to conditions
Output SQL statement to delete records
Get the specified field data according to the conditions
Generate Json format data from record set
Call a stored procedure and return multiple data
Generate a random number without duplication
Generate a random string that is not repeated
Close the record set and free the resource
(2) String processing:
Output string
Output string and an HTML line break ("<br/>")
Output string and terminate program
Determine whether the string is empty
Output JavaScript code
Pop up the js message box and return to the previous page
Pop up the js message box and jump to a new page
Convert strings to safe JavaScript strings
Intercept the string and replace the intercepted part with a custom symbol
HTML coded function
HTML decoding function
Filter HTML tags
Generate a random string of specified length
Get the Request value and convert it to SQL safe string
Safely get the Request value and pop up the js message box when error is wrong
Verify data legitimacy based on regular expressions
(3) Time and date processing:
Format time date
Returns the number of hours that a date and time variable differs from the present
Returns the number of days that the date and time variable differs from the present
Returns the script execution time exactly to milliseconds based on the timestamp
(4) Digital processing:
Generate a random number
Convert numbers to the format of the specified decimal places
Convert numbers to currency format
Convert numbers to percentage format
(5) Cookie and Application Processing:
Set a Cookies value
Get a Cookies value
Delete a Cookies value
Set an Application value
Get an Application value
Delete an Application value
(6) Others:
Judge ternary expressions
Server-side jump page
Get the URI address of the current page
Get the visitor's IP
Set page not cached
Close the object and release the resource
Server-side form verification illegally pops up js message box
Verify the source of the submitted data
Verify that the data source is illegal, the js message box pops up
Strong verification against SQL injection
Anti-SQL injection strong verification is not legal, the js message box pops up
Download addresshttps:///codes/