In the previous article, we introduced the use of ASP.net mvc and Bootstrap rapid build responsive personal blog station (i). Next to introduce if you do a little praise Plug-ins, together through this article to learn!
1. Why do you want to do
This example for you to share the ASP.net radio, check box control of the specific implementation code for your reference, the specific contents are as follows
It is also a good choice to encapsulate the common jquery plug-ins into controls.
First
This article is designed to give you a way to develop a custom control (combined with JS), a simple example that may not be done in a real project.First look at the effect:
1. Develop the desired effect on the static page
Jquery.extend
1.MS SCRIPT ENCODE
Basically no use, a section of JS can be cracked
2. Encapsulated as DLL
A more feasible method, there is a VB encapsulated into a DLL example, and no need to change a lot of code, easy to modify, the call is also very simple.
Check.asp
Copy Code code as follows:
''''''''''''''''''''''''''''''''''''
Function ReplaceText (FSTRING,PATRN,REPLSTR)
Set regEx = New RegExp ' establishes a regular expression.
Regex.pattern = Patrn ' Set mode.
Regex.ignorecase =
To share with you. A little modification will enable you to achieve more powerful functions.
Use the following code can be a simple bulk export Picasa album outside the chain.
Copy Code code as follows:
Dim xmlget,xmlhttp,email,paswd
ASP time addition and subtraction operation and transformation problem
A=2007-07-24 2:23:15
B=2005-06-25 2:23:15
Question 1
How to convert a to 2007-07-24 to date format do not character format!
Question 2
How to convert a to 2007 to date format do
In this configuration we want to implement keyword case-insensitive search and highlight to use the ASP's regular processing, see the following code:
Copy Code code as follows:
Function Takeout (patrn,string1,colors)
' Extract search
MSSQL each varchar, text fields are automatically inserted a section of JS code, even if the deletion of this code, if not resolved from the source, a few minutes later, the JS code will be automatically inserted into the database.
After drifting
' Shield attacks through address bar
Url=request.servervariables ("Query_string")
If InStr (URL, ";") >=1 Then
Url=replace (URL, ";", ";"): Response.Redirect ("?" & URL)
End If
' Masks are attacked by forms
For each item in
Copy Code code as follows:
'==============================
' Feature Description: Remove HTML tags with regular
' Cannot keep and so on and user-defined
'==============================
Function Removehtmltag (fstring)
Dim RE
Set re =
This article describes a two-dimensional code that asp.net (C #) uses QRCode to generate a logo or image in the center of a picture. Share to everyone for your reference, specific as follows:
using System;
Using System.Web;
Using ThoughtWorks.
Friends who have used the software know that the progress bar is an important part of a good software.
Its existence enables the user to master the program's running progress in time, and confirms that the application is working properly. But the
The method of realizing transaction processing by using ASP Select the Blog from Applebbs
The method of using ASP to implement transaction processing for keywords
Source
When developing Web applications, there is no exception to the need to access
As we all know, Asp+access's biggest security risk is that Access databases can be
Downloads, and many of the ASP spaces now available are only supported in Access databases, so
Asp+access's security problem is very prominent.
Storage pitfalls in 1.
General verification code generation methods are the same, the main step is two steps
The first step : Random out of a system verification code numbers or letters, and randomly generated numbers or letters to write cookies or session.
Step two :
The following are examples of the ASP.net development website.
1, SQL injection vulnerability.
WORKAROUND: Use stored procedures, and do not use string concatenation of parameters. Simple ways to improve: using SqlHelper and Oledbhelper
2.
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