ASP tutorial. NET C # date common operation functions and usage
DateTime dt = DateTime.Now;Dt.tostring ()//2005-11-5 13:21:25Dt.tofiletime (). ToString ();//127756416859912816DT.TOFILETIMEUTC (). ToString ();//127756704859912816Dt.tolocaltime ().
First define the swap method to use in the sort process to exchange values for two integers:
Swap values for two integers Number 1 Number 2private static void swap (ref int AA,REF int BB){int temp;temp = BB;bb = AA;AA = temp;}
Bubble
Today I saw the internet about how to use the Debugging ASP program under Windows 2003 common Errors and Solutions (a), look good! I also write programs, all kinds of programs have written, C + +, VB recently used in the development of Delphi, I am
Yesterday tried to write ASP.net program, which passed parameters with get method, such as: http://127.0.0.1/showerror,asp?ErrorMessage= database error
In the program I use:
String errormessage=request.querystring["ErrorMessage"];
Response.Write
You often use the JMail component in your Web site to send mail. Simply put the commonly used functions as a module for easy invocation.
Put the program in a file and then include the call. (JMAIL4.3)
Sub W_msg (Message,w_to,w_link)
' Message is the
Set Mrs=server. CreateObject ("Adodb.recordset")
Mrs. activeconnection= "Dsn=testsys"
If Request.ServerVariables ("http_method") = "POST" Then
' Write the students ' answers to the database
Mrs. Source= "SELECT * from Tbanswer"
Mrs. open,,1,3
Mrs.
' Framepage.asp
' 05/02/98
' Added The following features:
' Page expiry time
'-the page would expire when downloaded by browser so this user is insured to all data
' would be current.
Response.Expires = 0
%>
QS = Request.QueryString
If QS <> ""
If Request.QueryString ("act") = "Add" Then
' If the request joins the question content, the Form1 submits the page to taddquestion.asp
Response.Write ""
Else
' If you ask to modify the content of the question, the page submitted by Form1 is
' The calculation of the exam has been over time
Gotime=hour (now ()) *60+minute (now ())-hour (Session ("StartTime")) *60-minute (Session ("StartTime"))
' Calculate the remaining time of the test
Lefttime=session ("Testtime")-gotime
%>
exam
' After submitting the answer, first of all, the answer to the statistics, how many questions
' How many points should you get, and then write the statistics to table score (stid,score,teachid,sub),
' Then delete the corresponding field in the table
ASP. NET ViewStateSusan WarrenMicrosoft CorporationNovember 27, 2001When talking to developers who are new to ASP. NET pages, they usually ask me the first question: "What is the ViewState ?" What they feel in their tone is like what I feel when I
ASP determines the image formatFile upload is the format of the file to be obtained. In asp, there is a function substr ($ str, Rev ($ str ,". ") + 1) so you have to get the file extension,The following is a simple example:Dim file_extFile_ext =
The Split function returns an index.DescriptionReturns a one-dimensional array with a subscript starting from zero. It contains a specified number of substrings.SyntaxSplit (expression [, delimiter [, count [, compare])The Split function syntax
SolutionThe FSO component and the method of deleting or renaming are not described too much. There are many articles on this solution network.There is also a solution for the FSO component vulnerability of ASP, that is, setting permissions based on
1. Required verification control requiredfieldvalidatorSyntax rules: Id = "identifier"Runat = "server"Controltovalidate = "control identifier to be verified"Errormessage = "error message">This control often verifies textbox, and is blank in response.
In ASP. NET applications, there are multiple ways to navigate between Web forms: using hyperlink, using Response. Redirect, using Server. Transfer, or using Server. Execute. This article analyzes the similarities and differences between the four
Recently, I was processing a website with two versions: Simplified Chinese and Traditional Chinese. I wanted to handle the traditional version separately (a little different from the simplified version), my machine and. NET is a simplified Chinese
Basic knowledgeGUID indicates a globally unique identifier. As the name indicates, these numbers are statistically unique, meaning that there will not be two identical GUIDs in the world. Why?A guid is a 128-bit number, usually expressed in a 32-bit
1. DateTime numeric typeSystem. DateTime currentTime = new System. DateTime ();1.1 take the current year, month, day, hour, minute, secondCurrentTime = System. DateTime. Now;1.2 get current yearInt Year = currentTime. Year;1.3 take the current
Abstract: learn how to use SQL Server 2000 and Visual Studio. NET 2003 to create a data storage layer for the DotNetKB ASP. NET solution. Security issues related to SQL Server, IIS, and ASP. NET are also discussed.IntroductionIn ASP. NET application
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.