Straight into the subject:
Open the Visual Studio 2010 program development Software
Click the file in the menu bar and select the new-> Web site->asp. NET empty site, where we choose the empty site, for the future DIY their own website, what is
Asp. NET technology to implement a page with the extension. Aspx,aspx is a very popular Dynamic Web page format. Dynamic Web page is a feature of information interaction, update timely, less paging file, the development of fast. But it's a serious
Error One: IIS was unable to recognize the ASP.net and reported the following error:
The name begins with an invalid character. Error processing resource ' http://localhost/likong/'. 1th Line, Location: 2
Workaround:
To run in a command window:
The following is an illustrated way to introduce you to the method of asp.net in bulk export of Access table contents to Word documents, as detailed below:
First, the demand:
You need to export some content from each record in a table to a Word
In recent times, Microsoft has made a big splash, with the IDE releasing a new Visual Studio 2015 Preview In addition to the VIAUSL Studio 2013 Community Edition.
ASP.NET5, the user's authentication and authorization provides a very rich function,
Here is a real case:
A project has a requirement that needs to be timed to invoke the WebService of a web system in another company to import the data from their systems into our system. Because it is a call to the Web interface, it cannot be
Talk about the idea of paging
Here the paging used a component AspNetPage.dll, this component can be downloaded to the Internet, I do not provide a
Add the most recent to the toolbox so we can drag and drop the same as other controls
As Figure
?
$ASPservername: This variable must have IP in
/etc/hosts in the file.
$ASPport: ASP file Server port number.
$ASPpath: The ASP file path on the server side.
$ASPfile: ASP file name
$ASPurlredirect: $ASP file parameters.
Setting
Code in the Default.aspx.cs
protected int pageIndex = 1;
protected int pageSize = ten;
protected int pagecount = m;
Protected string name = String. Empty;
protected void Page_Load (object sender, EventArgs e)
{
int. TryParse
Scenario Description: A company has multiple departments and departments have a child department, a drop-down box to select multiple departments, but if a department of the child departments are all selected, only the department, and ignore the
Brief introduction:
Do webfrom development of students know backstage receive parameters very troublesome
Although the form can be directly converted to set in MVC, the form is not supported to list such a collection
Use of a single object:
Form:
ASP. NET Implementation page automatically jump (tested, in the VS2008 C # environment can be passed)
; script type= "Text/javascript" > var i = 5;
Gets the logon event and handles the automatic jump
Recently on the platform of some third party, often call the third party interface to implement some specific functions
In the implementation of the same time basically need local data through the server in the request to the third party server
The example in this article describes how asp.net dynamically loads a custom control. Share to everyone for your reference. The implementation methods are as follows:
Copy Code code as follows:
UserControl. Indexoper for custom controls
See the teachers in a new virtual machine migration of a asp.net and Oracle program, has been oci.dll unable to load problems, with regsvr32 registration, prompted:
Copy Code code as follows:
Oci.dll is loaded,but The DllRegisterServer
The example in this article describes the display method of the picture in asp.net. Share to everyone for your reference. Specifically as follows:
GENIMAGE.ASHX:
Copy Code code as follows:
Genimage.ashx.cs:
Copyright (C) 200
The example of this article describes the method of ASP.net acquiring real IP. Share to everyone for your reference. Specifically as follows:
public string GetIP ()
{
string result =
The example in this article describes the method of ASP.net dynamically adding user controls. Share to everyone for your reference. The implementation methods are as follows:
In order for the user control to dynamically add ASP.net page, first
The example of this article describes the ASP.net implementation of the push file to the browser method. Share to everyone for your reference. The specific analysis is as follows:
Here the main implementation from the server to the browser, push
C # has the mechanism to automatically reclaim memory, but sometimes there is a lag in automatic recycling, need to quickly recycle after variable use, save memory, here to introduce a simple method.
1. Assign null to object first;
2. Use of
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.