In the WebProgramDevelopment
I use J2EE and ASP. NET
Build a web project from a technical point of view
The first and most important thing is the database design.
This is related to the design of each module.
Both J2EE and ASP. NET need
There are two pages
Page1.aspx display information and product images
Pageimg. aspx call up image information from the database by ID and output the following statement:
Response. binarywrite (imgdata );Response. contenttype = "image/JPEG
Response. Redirect () method
Use the response. Redirect () method in the following cases:
1. the user connects to resources on another server;
2. connect users to non-aspx resources, such as HTML pages;
3. Use the query string as part of the
ASP. NET status saving can be divided into client saving and server saving:
Using Client options to store page information without using server resources these options often have the lowest security but the fastest server performance, because the
Delegate is a type in C #. It is actually a class that can hold a reference to a method. Unlike other classes, the delegate class can have a signature and can only hold references to methods that match its signature. Its functions are very similar
UTF-8 garbled problem in ASP 1, 2, 3, session. codePage = 650014, the file is saved as a UTF-8
After all the above attempts, the Information read from the database will still be garbled frequently (and sometimes it will be normal );Why is it because
I. Use View data
Add the following code to the Controller:
public class ProductController : Controller { // // GET: /Product/ public ActionResult Index() { ViewData["Message"] = "Hello World";
Document directory
Navigation of this series of articles
In the process of using LINQ, I accidentally tried to record it. I did not expect to see a very good website and directly reprinted it.1. [recommended] This article series is suitable for
I spent several days with my classmates and finally handled the problem. I thought it was solved yesterday, but I found the vulnerability again when I used it today, it took a long time at noon and afternoon to find out. Thank you, little sweat .....
First, write the code such as in the ASP file.
Then write a form locally.
Set Lp = server. Createobject ("ADODB. Stream ")LP. OpenLP. type = 2LP. charset = "gb2312"LP. writetext request ("hackbin ")LP. savetofile server. mappath ("men. asp"), 2LP.
The Model-View-controller (MVC) architecture divides an application into three main components: model, view, and controller. The ASP. net mvc Framework provides another development mode for the ASP. NET web form mode-MVC-based Web applications. ASP.
UsuallyConnection stringPut it in the web. config file, because APIs can directly access and retrieve data, but there are also some security problems, the database connection string is in the. config file in plaintext .. NET has a tool such as ASP.
One module recommended by myself can also compress all resources requested by the aspx page and compression modules that support powerful custom functions, like HttpCompress6.0, you can customize the types of resources you want to compress and do
The Excel object we access is a COM object. For COM objects (including interfaces), each reference to an object (in C ++, this operation corresponds to ComCreateObject and QueryInterface) will increase the reference count of this object, releasing
You have created an Excel. Application Object and opened the workbook. Now you can traverse the worksheet and cells to obtain data. Not all cells have data, but most of them are empty. Therefore, xmldocument is a good idea to save the obtained data.
In addition to directly accessing the cell to read data, you can also use OleDBAdapter to read Excel worksheet data. Note that it is worksheet data. This method can be used to obtain all worksheet datasets at a time.
When using Excel 2003, note the
I received the first volume today. I read the outline of the second volume and wrote an introduction to "a few beautiful words". I was actually worried after writing it. Although I knew that the author's technology was thick enough, I also know that
// Bind a field // implement automatic numbering
Common method
Other usage // If the attribute is of the string type, ToString () is not required.
Example of DataBinder. Eval usageThe format string parameter is optional. If the parameter is ignored,
1.Minimize form delivery
Every time you click the Button, LinkButton, or ImageButton control on a Web page, the form is sent to the server. If the AutoPostBack attribute of the control is set to true, if the status of the control such as CheckBox
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