First, determine the cause of the error:
Let ie display detailed error information:Menu -- tool -- Internet option -- Advanced -- display friendly HTTP Error information. Remove this option, which is very helpful for you to confirm the error!
'Remove the consecutive carriage return and space at the beginning and end of the string.
Function trimvbcrlf (STR)
Trimvbcrlf = rtrimvbcrlf (ltrimvbcrlf (STR ))
End Function
'Remove the consecutive carriage returns and spaces starting with a
Its principle is: when the Asp.net page is submitted, the validatoronsubmit method (built-in) is called. We use the coverage feature of the js method to replace the built-in validatoronsubmit of the system with our version, then, when
'Filename must be input
If request ("FILENAME") = "" then
Response. Write " error: filename is empty! "
Else
Call downloadfile (replace (Request ("FILENAME "),"\",""),"/",""))
Function downloadfile (strfile)'Make sure you are on the latest MDAC
Memory is currently very cheap-therefore, the entire application is intelligently deployed
Program To achieve high performance. Caching can mask many errors. caching is a way to achieve "good enough" performance without having to spend a lot of
The storage process is completed using the select top plus not in method, and the speed is quite fast. I tested a million-level data volume and generally queried it in 1 second. I will post it for your discussion, check whether there are any good
1. Create a page for download processing, such as download. aspx. There is nothing in it.
2. Add a downloadhandler class that inherits from the ihttphandler interface and can be used to customize HTTP processing.
Program Process HTTP requests
Using system;
Using system. configuration;
Using system. Data;
Using system. Data. sqlclient;
Using system. collections;
Namespace mycorporation. Department. Database
{
///
/// General database
///
Public class database
{
Private string connstr =
The test syntax is as follows: powered by jb51.net
Exec getrecordfrompage news, newsid, 10, 100000
News is the table name and newsid is the key field. Create an index for newsid before use.
CopyCode The Code is as follows :/*
Function Name:
Open the solution,
Find the filebrowser/fileworkerbase. CS File
CopyCode The Code is as follows: response. write (@ "(function () {var d = document. domain; while (true) {try {var a000000000000top.opener.doc ument. domain; break;} catch (e) {}; d =
Functional requirements: Disable the application by using the imagebutton control in the framework.ProgramAsk "Confirm Exit" and use JavaScript to Disable IE in The onclick event (C #) of imagebutton.
Problem proposal: When the dialog box is
Default.html
Test2
Value = " "/> Value = ">"/>
Order ID
/
Customer ID
Employee ID
/
Order Date
/
Date of shipment
/
Owner name
/
Cargo owner address
/
Cargo owner City
/
More information
Loading ....
Handler.
Large File Upload control (including progress bar)
The usage instructions are as follows:
Upload progress bar Control
Web. config Configuration
ASPX page
// Top
// In form
cancel
CS corresponding to aspx
Code
When the address bar does not contain the parameter "ID:
CopyCodeThe Code is as follows: request. querystring ["ID"] = NULL
Convert. tostring (request. querystring ["ID"]) = NULL
Note that this will cause an error:Request. querystring ["ID"].
CopyCodeThe Code is as follows: TD = Date ()
'The current date is set this time, mainly for debugging convenience. In actual applications, the current date can be used ..
STR = "August 5, 1234"
'Generate a string specific to the day of the week.
'******************************
'Function: checkchinese (strng)
'Parameter: strng, character to be verified
'Description: checks whether it is a Chinese character. The return value is true if it is a Chinese character. Otherwise, the return value
Next, we will introduce how to download files from the server to the client through Web Services and upload files from the client to the server through Web Services.
1. Display and download files through Web Services
The Web Services created here
I. Introduction
A batch of new powerful view controls, such as Gridview, FormView, and DetailsView, were introduced from ASP. NET 2.0. Through simple integration with data source controls, in many cases, you can develop powerful applications by
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