======== get the URL with port, recommend to use ================
Function Get_scriptnameurl ()
If Request.ServerVariables ("server_port") = "Then"
Get_scriptnameurl= "http://" & Request.ServerVariables ("SERVER_NAME") &lcase
If you need to have a custom space for a asp.net application to leave a user with, such as a user's own style sheet or title for the page, use the following method to dynamically specify:
First modify the page titles and style sheets in in the ASPX
Front Code
Copy Code code as follows:
:
User Information Operation
Background code:
Copy Code code as follows:
Using System;
Using System.Data;
Using System.Configuration;
Using
ajax Static Paging Demo:http://www.jb51.netAjax implementation of Static paging Author: 11 Wolf Contact: 275915854 (QQ) 112183883@163.com (email) Download: http://www.jb51.net
Current 1/2 page
12 Next read the full text
Asp. NET in the IFRAME frame click on the left page link, the right side shows the link page content, the specific implementation of the following content
First look at the effect chart:
First is the homepage main.aspx
Admin
1,
SELECT Top PAGESIZE Newstitle
FORM Newsinfo WHERE NEWSID not in
(SELECT Top (PAGE-1) * PAGESIZE NEWSID from Newsinfo
WHERE auditing=1 and newsbreed= ' Enterprise News ' ORDER by NEWSID DESC)
and Auditing=1 and newsbreed= ' Enterprise News '
To use Accessprovider words trouble will be more, the first thing to do is to go to the MSDN download Ms release of the
Sample Access Providers, of course, you can also take a look at the description page http://
Previously, the data returned by the server was passed to the client in XML, but the XML passed a class object with a long, large flow of data, so now it's all about using JSON to pass data, complex data with JSON, simple data with string. All of
ASP Built-in components
In the first three, we mainly introduce the four built-in objects provided by ASP:
L Response object: Sends information to the browser.
L Request object: Access to information sent from the browser to the server, such as
This version is some time away from the last version, and lately there have been so many things that I've just had my free time to get down
To view the previous version please click here
The JavaScript embedded in the aspx/html page is also
Used to be a Web project to develop the Web site, in a number of places to use pagemethods, can be said to be familiar. This time I would like to try the Web site method, because the code changes do not compile, refresh the page will be able to see
Copy Code code as follows:
private int Geturlerror (string curl)
{
int num = 200;
if (this.method==1)
{
HttpWebRequest request= (HttpWebRequest) webrequest.create (new Uri (curl));
Servicepointmanager.expect100continue=false;
Try
{
Now there is an XML that has the following format:
Copy Code code as follows:
1
ABC
2
CDE
3
EFG
I use ASP query id=2, enter the value of the corresponding name, how can I write?
Here's the menu.asp code
Program code
'---------------------------------------
' Author: Weeds
' Date: April 24, 2006
' Q q:94440079
'---------------------------------------
' Read XML file functions
Function Ycms_menu ()
Dim menu_temp,m
Set
General Write ASP PHP code friends are estimated to use the direct operation of the SQL Bar ~
Look at the following code
Dim conn,rs
Set Conn=createobject ("Adodb.connection")
Conn.Open .....
Set Rs=conn.execute ("SELECT * from News");
...
Traverse
Copy Code code as follows:
str = Request ("str")
reg = Request ("Reg")
Set regex = new REGEXP
With regex
. Pattern = Reg
. IgnoreCase = False
. Global = True
End With
Set match = regex. Execute (str)
If match. Count > 0 Then
For
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