upload asp.net ajax

  public void ProcessRequest(HttpContext context) { try { context.Response.ContentType = "text/plain"; string dirFullPath = HttpContext.Current.Server.MapPath("~/Upload/"); string[] files; int numFiles; files = System.IO.Directory.GetFiles(dirFullPath); numFiles = files.Length; numFiles = numFiles + 1; string str_image = ""; foreach (string s in context.Request.Files) { HttpPostedFile file = context.Request.Files[s]; string fileName = file.FileName; string fileExtension = file.ContentType; if (!string.IsNullOrEmpty(fileName)) { … Đọc tiếp upload asp.net ajax

Upload Files to Google Drive with Google Apps Script

Google Forms do not offer the file uploads feature but you can use Google Apps Script and let anyone upload files to Google Drivethrough an HTML web form. For instance, you can share the form with your class, or with your clients, and they can directly upload school assignments, photographs, and other documents to a specific folder in your … Đọc tiếp Upload Files to Google Drive with Google Apps Script

PHP Url File Remote Uploader No Size Limit [Script]

PHP Url File Remote Uploader No Size Limit [Script]   Here is the simple PHP url uploader working fine with no setups.An ultimate solution to upload much faster. Just browse, select and upload : Here is the screenshot of uploading page : URL UPLOADINGFirst download this php script. Simply upload the file to your web host … Đọc tiếp PHP Url File Remote Uploader No Size Limit [Script]

Một số điều kiện bên trong jQuery Validation

Một số điều kiện bên trong jQuery Validation required Không được bỏ trống remote Gửi yêu cầu về Web Server để xác thực minlength Độ dài tối thiểu maxlength Độ dài tối đa rangelength Độ dài tối thiểu từ x tới y min Số tối thiểu max Số tối đa range Số tối thiểu từ … Đọc tiếp Một số điều kiện bên trong jQuery Validation

Using SqlHelper class in ASP.Net Tutorial with examples in C# and VB.Net

In this article I will share a tutorial that explains the SqlHelper class of Microsoft Data Access Application Block in ASP.Net with examples in C# and VB.Net. SqlHelper class can be downloaded by downloading the Microsoft Data Access Application Block and it is a great utility that helps us to reduce ADO.Net code used in day to day programming. … Đọc tiếp Using SqlHelper class in ASP.Net Tutorial with examples in C# and VB.Net

HTML5 Datalist Element

Give your text inputs a boost with a <datalist>. A little bit like a blend of <input> and <select>: <label>Your favorite band? <input list="heavy-bands" name="band-choice"></label> <datalist id="heavy-bands"> <option value="Metallica" /> <option value="Iron Maiden" /> <option value="Slayer" /> <option value="Motörhead" /> <option value="Megadeth" /> <option value="Black Sabbath" /> </datalist>

Functions in JavaScript with ES6 / ES2015

Generator Functions in JavaScript with ES6 / ES2015 With generator functions in ES2015 (ES6), we're now able to define functions that can return multiple values with the help of the yield keyword. Here's an example of a simple generator function: function* someGenerator(){ yield 'Cats'; yield 'Dogs'; yield 'Birds'; } Notice the use of the * … Đọc tiếp Functions in JavaScript with ES6 / ES2015

Exploring the JavaScript Date Object

Exploring the JavaScript Date Object There are some great libraries out there to deal with dates in JavaScript, with Moment.js and date-fns being perhaps the two most popular. It’s very common however to have just some basic needs for playing with dates and using a library instead of the native JavaScript date object would be … Đọc tiếp Exploring the JavaScript Date Object