, so, took a little time to upload the image of its function has been rewritten, nonsense less said, directly on the codeThe image upload function is called: upload_json.ashx
The code is as follows
Copy Code
Using System;
The code is as follows:Copy code /// /// Compress the image/// /// Public string ResizePic (){# Region compression image startBool IsImgFile = true; // determines whether it is an image file.String filePathName = "123"; // file storage path
Character truncation function The code is as follows:Copy code /// /// Cut the specified string by the specified length,/// /// string to be truncated /// maximum length of a string /// suffix that exceeds the length /// If the length is
'Read custom attributes The code is as follows:Copy code Dim Properties = SourceDoc. CustomDocumentPropertiesDim PropertyType As Type = Properties. GetTypeTryDim Authorprop = PropertyType. InvokeMember ("Item", Reflection. BindingFlags. Default
Programming "~"(1) if the control on the server side (the control using runat = "server") automatically changes "~" For conversion, if you want to convert HTML controls or code, you can use static methods in the VirtualPathUtility class to convert
The code is as follows:Copy code Using System;Using System. Collections. Generic;Using System. Linq;Using System. Windows. Forms;Using System. Diagnostics;Using System. Management;External calls are not allowed for namespace{Static class
Jquery. getjson details and getjson and asp tutorials. net instancesJquery. getjson (url, [data], [callback]) loads json data across domains.Url: the address where the request is sentData: (optional) key/value parameter to be sentCallback: (optional)
Asp tutorial. net cookie operationsCookie limit to a folder or applicationHttpcookie appcookie = new httpcookie ("appcookie ");Appcookie. value = "written" + datetime. now. tostring ();Appcookie. expires = datetime. now. adddays (1 );Appcookie. path
Asp tutorial. net how to implement asynchronous programmingFor many people, asynchronization is to use background threads to run time-consuming operations. Sometimes this is true, but not in most of our daily scenarios.For example, we have the
I. Abstract class:Abstract classes are special classes, but they cannot be instantiated. In addition, they have other characteristics of the class. It is important that abstract classes can include abstract methods, which are not supported by common
How can I use ASP to create a page similar to the installation wizard?What are the main problems:1. The interface is exactly the same as a Windows Wizard, with the Next and Back buttons2. You can use the Back button to return to any previous step
'Call method: Function Safe (str) 'this Function is used to determine whether the passed variable contains special characters. TRUE is not returned.Dim s_BadStr, n, IS_BadStr = "'& <>? % ,;:()'~! @ # $ ^ * {} [] |/+-= "& Chr (34) & Chr (9) & Chr (32)
CookiesSet the cookie value in the cookie set. If the specified cookie does not exist, create it. If yes, a new value is set and the old value is deleted.Syntax Response. Cookies (Cookies) [(key) |. attribute] = value ParametersCookieThe name of the
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