I encountered a very strange problem during interface connection today. I was puzzled and asked my colleagues and experts. They both said they had never met this problem, I don't know how to solve this problem on Baidu either. Now I will give a general description of this problem and hope to see myArticleCould you give me some advice. Learning and progress together!
The problem is that my technical platform ASP. NET, a previous interface page, usedCodeAll are written in. CS files, so the front-end code is saved in the originalProgramAutomatically generated code:
<% @ Page Language = " C # " Autoeventwireup = " True " Codefile = " Unioncompanyinterface. aspx. CS " Inherits = " Unioncompany_unioncompanyinterface " %>
<! Doctype HTML public " -// W3C // dtd xhtml 1.0 transitional // en " " Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
<HTML xmlns = " Http://www.w3.org/1999/xhtml " >
<Head id = " Head1 " Runat = " Server " >
<Title> No title page </title>
</Head>
<Body>
<Form ID = " Form1 " Runat = " Server " >
<Div>
</Div>
</Form>
</Body>
</Html>
Because the value of the background code needs to be displayed, response is used directly. when write () comes out, I think the code is redundant, So I delete all the unnecessary code, and the rest of the code is in. on the ASPX page:
<% @ Page Language ="C #"Autoeventwireup ="True"Codefile ="Unioncompanyinterface. aspx. CS"Inherits ="Unioncompany_unioncompanyinterface"%>
Then, the point is, I copied the original interface address:
Http://www.xxx.com/UnionCompanyInterface.aspx? User = % E6 % B5 % 8B % E8 % af % 95 & cid = t123
Paste it into the browser and press Enter! The value of "t123" after codeid is automatically changed to the lower-case "t123"
I am wondering, what is this? I checked the background code and did not convert the lower-case statements. Besides, it is impossible to convert the lower-case code to the URL automatically.
Then, on the address bar after I press enter, manually change the lower-case T to the upper-case T, and press Enter! The interface is displayed normally !! CID is equal to t123 again. I really cannot figure it out...
Finally, I thought about whether the deleted code is a ghost. So I restored the file and pasted the interface address to the address bar. Press enter to display the interface normally! The Cid value will not be t123 in lower case. Oh !! Finally, I found out what really happened. It turned out to be a ghost of them.
I have Baidu's information (which can be omitted ):
<! Doctype HTML public " -// W3C // dtd xhtml 1.0 transitional // en " HTTP: // Www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd>
Declared that the root element of the document is HTML, which is defined " -// W3C // dtd xhtml 1.0 transitional // en " . The browser will understand how to find a DTD that matches this public identifier. If not, the browser uses the URL following the public identifier as the location for searching for the DTD.
Doctype is short for document type. It is used to describe the XHTML or html version you use in web design.
To create a standard web page, the doctype Declaration is an essential part. Your logo and CSS will not take effect unless your XHTML determines a correct doctype.
Doctype is short for document type. It is used to describe the XHTML or html version you are using.
The DTD (such as the xhtml1-transitional.dtd in the above example) is called the document type definition, which contains the document rules, the browser according to your definition of the DTD to explain your page identity and display. To create a standard web page, the doctype Declaration is an essential part. Your logo and CSS will not take effect unless your XHTML determines a correct doctype.
XHTML1.0 Three types of DTD statements are available:
* Transitional: a very loose DTD that allows you to continue using the html4.01 identifier (but in line with XHTML). The complete code is as follows:
<! Doctype HTML public " -// W3C // dtd xhtml 1.0 transitional // en " " Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
* Strict: a strict DTD. You cannot use any identifier or attribute of the performance layer, for example, <br>. The complete code is as follows:
<! Doctype HTML public " -// W3C // dtd xhtml 1.0 strict // en " " Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd " >
* Framework: a dtd designed specifically for the Framework page. If your page contains a framework, you need to use this DTD. The complete code is as follows:
<! Doctype HTML public " -// W3C // dtd xhtml 1.0 frameset // en " " Http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd " >
After checking the above information, I think the problem with me is not very relevant. Maybe I have not found the core of the problem. I am still wondering, but I still cannot find a proper answer yet. I hope the person who has read my article can help me solve this problem that has plagued me. As a beginner, I am willing to accept answers and help from everyone. I am also grateful to all those who have helped me!