First, write An ASPX page for generating JSON data from the database. It is called getdata. aspx.
Protected void btntojsonstring_click (Object sender, eventargs E){Sqlconnection con = new sqlconnection ();Con. connectionstring = "Data Source =.;
// Click the event of the secure exit button
Protected void button#click (Object sender, eventargs E)
{
Session. Abandon (); // cancel the current session
Session. Clear (); // clear all sessions of the current browser Process
Response. Write ("
The main technical points for customizing error pages in Asp.net mvc3 are. add the following nodes in config (specify the page to which an error is redirected), and create the corresponding action in the corresponding controller to point to the
1. Execute the command in cmd when aspx is not supported in IIS
Run cd c: \ WINDOWS \ Microsoft. NET \ framework \ V2.0. 50727 press ENTERAspnet_regiis-I press ENTER
II,IIS does not support ASP solution
1-1In. IIS, right-click active pever
The basic concept of bubblesort is to compare two adjacent numbers in sequence, put decimal places in front, and put large numbers in the back. That is, first compare the numbers of 1st and 2nd, and put the decimal places before and after the large
Use ASP to call the COM + component written by C #
1. Create a class library mytestdll.
2. Right-click the project "mytestdll"-"properties-" generate-"and select" register for com"
3. Open the assemblyinfo. CS file, modify [Assembly:
1. use ajaxif you are not interested in using the ASP. net Ajax library offered for ASP. net, but wowould like to feature small amounts of Ajax functionality on your pages, you can do this easily with some JavaScript and a valid tive page.
1. ludico
Ludico is a portal/CMS system written by C # in ASP. NET 2.0. Its modular design allows you to use or develop it according to your desired needs.WebsiteFunction. It provides advanced user management, a WYSIWYG editor, and so on.
:
there are certain things you shoshould take into account when you are developing your applications. over the last 12 years or so of working with ASP and Asp.net, I have learned to avoid and do certain things that increase your application
1: Server Error in '/'application.
Validation of viewstate Mac failed. If this application is hosted by a Web farm or cluster, ensure that Configuration specifies the same validationkey and validation algorithm. autogenerate cannot be used
1: Maintain database integrity and consistency. Do you like to use triggers or write business logic? Why?A: Use constraints (including check, primary key, unique key, foreign key, and non-empty fields) as much as possible. This approach is most
Original article: http://huerreson.cn/post/aspdotnet-multi-languages-solution.aspx
App_globalresources in Asp.net 2.0 can be used to solve the localization problem,ProgramThe localization interface is automatically displayed based on the
Call the user control textbox for dynamic verification on different pages:
Define a Textbox Control on the ascx page. When calling different aspx pages, some of them need to verify that they are not empty and some do not need to verify that they
1. After submitting the page, keep the position of the scroll barYou can add the maintainscrollpositiononpostback command to the page command.
Reference content is as follows:
2. After loading the page, move the focus to
The topics in this article are as follows:
Problem description
Importance of details
Problem description
First, describe the background of the story: (hope you can read the story patiently)
On the website, the page control in the webpage
First Post:
In the template page, select the page above and the background of the current page is displayed in blue.
Template page content:
CSSCSS
Code highlighting produced by Actipro CodeHighlighter
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