BTN pool address may
Publish: 2021-05-02 15:07:34
1. This is the postback code automatically generated by. Net development platform for server control
for example & lt; asp:Button ID=" btn_ 1" OnClick=" btn_ 1_ Click"& gt;& lt;/ asp:Button>
after the response event of the server control is triggered, a callback (postback) will be executed. Send the form back to the server for processing. Therefore, when the event of. Net server control is triggered, the whole page will be refreshed
this JS is to do (execute) postback (callback) the click event of the control with ID lbtnlogin
because the so-called server-side control is finally translated into HTML control and displayed on the page. So you have to use js to post actions to the server. Net automatically adds onclick response events to your button. So when you hover over a button, the browser will prompt you which address or method the button (usually a label) is going to connect to. This is the function of the browser. It has nothing to do with. Net development platform and JS code....
for example & lt; asp:Button ID=" btn_ 1" OnClick=" btn_ 1_ Click"& gt;& lt;/ asp:Button>
after the response event of the server control is triggered, a callback (postback) will be executed. Send the form back to the server for processing. Therefore, when the event of. Net server control is triggered, the whole page will be refreshed
this JS is to do (execute) postback (callback) the click event of the control with ID lbtnlogin
because the so-called server-side control is finally translated into HTML control and displayed on the page. So you have to use js to post actions to the server. Net automatically adds onclick response events to your button. So when you hover over a button, the browser will prompt you which address or method the button (usually a label) is going to connect to. This is the function of the browser. It has nothing to do with. Net development platform and JS code....
2. Build the local test environment of HTTPS and HTTPS. Asp.net combined with the code of HTTPS to realize the conversion from HTTP website to HTTPS website, and the problems encountered later<
one: what is HTTPS
SSL (security socket layer) is the full name of the encrypted socket protocol layer, which is located between the HTTP protocol layer and the TCP protocol layer. It is used to establish the encrypted communication between the user and the server to ensure the security of the information transmitted. At the same time, the SSL security mechanism relies on the digital certificate
SSL is based on public key and private key. Users use public key to encrypt data, but the corresponding private key must be used to decrypt data. The communication process using SSL security mechanism is as follows: after the user establishes a connection with the IIS
server, the server will send the digital certificate and the public key to the user, the client generates the session key, encrypts the session key with the public key, and then passes it to the server, and the server decrypts it with the private key
in this way, A secure channel is established between the client and server. Only users allowed by SSL can communicate with IIS server
tip: SSL website is different from the general web site, it uses the "HTTPS" protocol instead of the general "HTTP" protocol. Therefore, its URL (unified resource locator) format is "HTTPS: / / website domain name"<
2: building the local test environment of HTTPS
1: IIS7 / iis7.5 in win7 / Windows Server 2008R2 with the local test environment of HTTPS
2: iis6.0 in Windows Server 2003 with the local test environment of HTTPS
3: asp.net combined with the code implementation of HTTPS
HTTPS is a transport layer encryption realized by IIS and browser, No special coding is needed... Usually how to write code in asp.net, how to write
it is very likely to ask, why does my site still display clear text when using software such as firebug to view the value submission after using HTTPS? For example, the login interface of the blog park is submitted
http://passport.cnblogs.com/login.aspx
why can I still see the user name and password in clear text here
the reason is that: the encryption of HTTPS (SSL) occurs between the application layer and the transport layer, so the data seen in the transport layer is encrypted, while the HTTP post we captured is the data of the application layer, which has not been encrypted
encrypted data only client and server side can get plaintext client to server communication is secure
Alipay is also HTTPS, but at the same time he also added security controls to protect passwords, previously thought this is just used to prevent keyboard monitoring, in fact, Look at the password intercepted by HTTP post: this security control first encrypts the password given to the request, and then encrypts it with HTTPS. As expected, it deals with money, and the security level is much higher:)
Four: the problem encountered after the HTTP website is converted to an HTTPS website
does the whole website use HTTPS or indivial pages use HTTPS? Do you use relative paths to connect websites? Or absolute path
if the whole site is HTTPS, it will appear that the web page is a little slow. If the indivial page uses HTTPS, how to ensure the accuracy of the URL when converting from HTTPS to HTTP
for example, when we use HTTP, the head and bottom of the website all use the relative path. If your page is http://aa/index.aspx, how do you jump to https://aa/login.aspx? You can only write the hyperlink dead
login, but in this way, you jump to the past page, and all the relative paths start with HTTPS, which affects the efficiency of the website
although it can be solved by using absolute address, it is obviously not easy to transplant<
the following is to use the third-party components to solve the above problem
steps
first download the DLL file http://code.google.com/p/securityswitch/downloads/list, I choose the version of securityswitch v4.2.0.0 - binary.zip
1: let's take a look at the test project
admin folder, after logging in, To access. Login.aspx in admin can be accessed. The entire admin folder needs to be accessed through HTTPS:
contact.aspx needs to be accessed through HTTPS:
default.aspx and view.aspx use http:
we all use relative paths for links, and do not write them as http: ASPX// www.xx.com/a.aspx Or HTTPS:// www.xx.com/a.aspx
next, we will use securityswith to implement the above rules for accessing HTTPS and HTTP
2: on the project, add a reference to securityswitch.dll and add an intelligent prompt
in this way, you can only prompt
3: then we add settings in web.config. According to different IIS, there are also different configurations of IIS6 + IIS7. X (classic mode) and IIS7 (integrated mode). Here, we configure them according to IIS6 + IIS7. X (classic mode)
just look at the SSL configuration in it:
& lt;? xml version=" 1.0"?& gt;< br />< configuration>< br /><!-- SSL configuration 1 starts -- & gt< br />< configSections>< br />< section name=" securitySwitch" type=" SecuritySwitch.Configuration.Settings, SecuritySwitch" /& gt;< br /></ configSections>< br />< securitySwitch baseInsecureUri=" http://webjoeyssl" < br />baseSecureUri=" https://webjoeyssl" xmlns=" http://SecuritySwitch-v4.xsd" < br />mode=" On"& gt;< br /><!-- If there is only one s difference between HTTP and HTTPS, then the two URLs of base here can not be written. Why do you want to write these two URLs? Because, for example,
what is your basesecureuri http://www.qq.com
and your basesecureuri is https://safe.qq.com
then at this time, you visit a page that needs HTTPS, if it is login. ASPX? Return = Joey
if you are through http://www.qq.com/login.aspx?return=joey Visited, Then the
page will jump to http://safe.qq.com/login.aspx?return=joey
-->< br />< paths>< br />< add path="~/ contact.aspx"/& gt;< br />< add path="~/ admin/login.aspx"/& gt;< br />< add path="~/ admin" /& gt;< br /><!-- Here, admin is not only the admin folder, but also contains a similar adminnews.aspx adminqq.aspx page & quot--& gt;< br /><!-- But if it is ~ / admin /, it means the admin folder -- & gt< br /></ paths>< br /></ securitySwitch>< br /><!-- SSL configuration 1 end - & gt< br />< appSettings />< br />< system.web>< br />< compilation debug=" true"& gt;< br /></ compilation>< br /><!-- Built in bill authentication start -- & gt< br />< authentication mode=" Forms"& gt;< br />< forms name=" mycook" loginUrl=" admin/login.aspx" protection=" All" path="/& quot; /& gt;< br /></ authentication>< br /><!-- SSL configuration 2 if IIS & lt= 6. X, IIS 7. X + classic mode -- & gt< br />< httpMoles>< br />< add name=" SecuritySwitch" type=" SecuritySwitch.SecuritySwitchMole, SecuritySwitch" /& gt;< br /></ httpMoles>< br /><!-- End of SSL configuration 2 -- & gt< br /></ system.web>< br /><!-- If SSL configuration 2 is in IIS7. X + integrated mode -- & gt< br /><!--& lt; system.webServer>< br />< validation =" false" /& gt;< br />< moles>< br />-->& lt;!-- For IIS 7. X + integration mode -- & gt& lt;!--< br />< add name=" SecuritySwitch" type=" SecuritySwitch.SecuritySwitchMole, SecuritySwitch" /& gt;< br /></ moles>< br /></ system.webServer>--& gt;< br /><!-- If it is IIS7. X + integrated mode, SSL configuration 2 ends - & gt< br /></ configuration>
4: e to the use of built-in bill authentication, the following code should be added to global.asax:
protected void application_ AuthenticateRequest(object SENDER, EventArgs e)
{
if (HttpContext.Current.User != null)
{
if (HttpContext.Current.User.Identity.IsAuthenticated)
{
if (HttpContext.Current.User.Identity is FormsIdentity)
{
FormsIdentity id = (FormsIdentity)HttpContext.Current.User.Identity;< br />FormsAuthenticationTicket tiecket = id.Ticket;< br />string userData = tiecket.UserData;< br />string[] roles = userData.Split(', 39;);< br />HttpContext.Current.User = new System.Security.Principal.GenericPrincipal(id, roles);
}
}
}
}
5: background login interface admin / login.aspx:
& lt;%@ Page Language=" C#" AutoEventWireup=" true" CodeBehind=" login.aspx.cs" Inherits=" web.admin.login" %& gt;< br />
<! DOCTYPE html PUBLIC "-// W3C//DTD XHTML 1.0 Transitional//EN" & quot; http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"& gt;< br />< html xmlns=" http://www.w3.org/1999/xhtml"& gt;< br />< head runat=" server"& gt;< br />< title>& lt;/ title>< br /></ head>< br />< body>< br />< form id=" form1" runat=" server"& gt;
User Name: & lt; asp:TextBox ID=" txtUser" runat=" server"& gt;& lt;/ asp:TextBox>& lt; br />
password: & lt; asp:TextBox ID=" txtPass" runat=" server"& gt;& lt;/ asp:TextBox>& lt; br />
remember the user name: & lt; asp:CheckBox ID=" chkUsername" runat=" server" Checked=" true"/& gt;< br />< br />< br />< asp:Literal ID=" litResult" runat=" server"& gt;& lt;/ asp:Literal> < br />< br />< br />< asp:Button ID=" btnSubmit" runat=" server" Text=" Submit & quot; onclick=" btnSubmit_ Click" /& gt;< br /></ form>< br /></ body>< br /></ html>
background login interface CS admin / login. ASPX. CS:
using system< br />using System.Collections.Generic;< br />using System.Web;< br />using System.Web.UI;< br />using System.Web.UI.WebControls;< br />using System.Web.Security;< br />namespace web.admin
{
public partial class login : System.Web.UI.Page
{
protected void Page_ Load(object sender, EventArgs e)
{
}
protected void btnSubmit_ Click(object sender, EventArgs e)
{
string username = txtUser.Text;< br />string pass = txtPass.Text;< br />bool ischeck=chkUsername.Checked;< br />if (username==" admin" && pass==" admin")< br />{
SaveLogin(username, ischeck);< br />}
}
private void SaveLogin(string username, bool ischeck)
{
HttpCookie cook;< br />string strReturnURL;< br />string roles
one: what is HTTPS
SSL (security socket layer) is the full name of the encrypted socket protocol layer, which is located between the HTTP protocol layer and the TCP protocol layer. It is used to establish the encrypted communication between the user and the server to ensure the security of the information transmitted. At the same time, the SSL security mechanism relies on the digital certificate
SSL is based on public key and private key. Users use public key to encrypt data, but the corresponding private key must be used to decrypt data. The communication process using SSL security mechanism is as follows: after the user establishes a connection with the IIS
server, the server will send the digital certificate and the public key to the user, the client generates the session key, encrypts the session key with the public key, and then passes it to the server, and the server decrypts it with the private key
in this way, A secure channel is established between the client and server. Only users allowed by SSL can communicate with IIS server
tip: SSL website is different from the general web site, it uses the "HTTPS" protocol instead of the general "HTTP" protocol. Therefore, its URL (unified resource locator) format is "HTTPS: / / website domain name"<
2: building the local test environment of HTTPS
1: IIS7 / iis7.5 in win7 / Windows Server 2008R2 with the local test environment of HTTPS
2: iis6.0 in Windows Server 2003 with the local test environment of HTTPS
3: asp.net combined with the code implementation of HTTPS
HTTPS is a transport layer encryption realized by IIS and browser, No special coding is needed... Usually how to write code in asp.net, how to write
it is very likely to ask, why does my site still display clear text when using software such as firebug to view the value submission after using HTTPS? For example, the login interface of the blog park is submitted
http://passport.cnblogs.com/login.aspx
why can I still see the user name and password in clear text here
the reason is that: the encryption of HTTPS (SSL) occurs between the application layer and the transport layer, so the data seen in the transport layer is encrypted, while the HTTP post we captured is the data of the application layer, which has not been encrypted
encrypted data only client and server side can get plaintext client to server communication is secure
Alipay is also HTTPS, but at the same time he also added security controls to protect passwords, previously thought this is just used to prevent keyboard monitoring, in fact, Look at the password intercepted by HTTP post: this security control first encrypts the password given to the request, and then encrypts it with HTTPS. As expected, it deals with money, and the security level is much higher:)
Four: the problem encountered after the HTTP website is converted to an HTTPS website
does the whole website use HTTPS or indivial pages use HTTPS? Do you use relative paths to connect websites? Or absolute path
if the whole site is HTTPS, it will appear that the web page is a little slow. If the indivial page uses HTTPS, how to ensure the accuracy of the URL when converting from HTTPS to HTTP
for example, when we use HTTP, the head and bottom of the website all use the relative path. If your page is http://aa/index.aspx, how do you jump to https://aa/login.aspx? You can only write the hyperlink dead
login, but in this way, you jump to the past page, and all the relative paths start with HTTPS, which affects the efficiency of the website
although it can be solved by using absolute address, it is obviously not easy to transplant<
the following is to use the third-party components to solve the above problem
steps
first download the DLL file http://code.google.com/p/securityswitch/downloads/list, I choose the version of securityswitch v4.2.0.0 - binary.zip
1: let's take a look at the test project
admin folder, after logging in, To access. Login.aspx in admin can be accessed. The entire admin folder needs to be accessed through HTTPS:
contact.aspx needs to be accessed through HTTPS:
default.aspx and view.aspx use http:
we all use relative paths for links, and do not write them as http: ASPX// www.xx.com/a.aspx Or HTTPS:// www.xx.com/a.aspx
next, we will use securityswith to implement the above rules for accessing HTTPS and HTTP
2: on the project, add a reference to securityswitch.dll and add an intelligent prompt
in this way, you can only prompt
3: then we add settings in web.config. According to different IIS, there are also different configurations of IIS6 + IIS7. X (classic mode) and IIS7 (integrated mode). Here, we configure them according to IIS6 + IIS7. X (classic mode)
just look at the SSL configuration in it:
& lt;? xml version=" 1.0"?& gt;< br />< configuration>< br /><!-- SSL configuration 1 starts -- & gt< br />< configSections>< br />< section name=" securitySwitch" type=" SecuritySwitch.Configuration.Settings, SecuritySwitch" /& gt;< br /></ configSections>< br />< securitySwitch baseInsecureUri=" http://webjoeyssl" < br />baseSecureUri=" https://webjoeyssl" xmlns=" http://SecuritySwitch-v4.xsd" < br />mode=" On"& gt;< br /><!-- If there is only one s difference between HTTP and HTTPS, then the two URLs of base here can not be written. Why do you want to write these two URLs? Because, for example,
what is your basesecureuri http://www.qq.com
and your basesecureuri is https://safe.qq.com
then at this time, you visit a page that needs HTTPS, if it is login. ASPX? Return = Joey
if you are through http://www.qq.com/login.aspx?return=joey Visited, Then the
page will jump to http://safe.qq.com/login.aspx?return=joey
-->< br />< paths>< br />< add path="~/ contact.aspx"/& gt;< br />< add path="~/ admin/login.aspx"/& gt;< br />< add path="~/ admin" /& gt;< br /><!-- Here, admin is not only the admin folder, but also contains a similar adminnews.aspx adminqq.aspx page & quot--& gt;< br /><!-- But if it is ~ / admin /, it means the admin folder -- & gt< br /></ paths>< br /></ securitySwitch>< br /><!-- SSL configuration 1 end - & gt< br />< appSettings />< br />< system.web>< br />< compilation debug=" true"& gt;< br /></ compilation>< br /><!-- Built in bill authentication start -- & gt< br />< authentication mode=" Forms"& gt;< br />< forms name=" mycook" loginUrl=" admin/login.aspx" protection=" All" path="/& quot; /& gt;< br /></ authentication>< br /><!-- SSL configuration 2 if IIS & lt= 6. X, IIS 7. X + classic mode -- & gt< br />< httpMoles>< br />< add name=" SecuritySwitch" type=" SecuritySwitch.SecuritySwitchMole, SecuritySwitch" /& gt;< br /></ httpMoles>< br /><!-- End of SSL configuration 2 -- & gt< br /></ system.web>< br /><!-- If SSL configuration 2 is in IIS7. X + integrated mode -- & gt< br /><!--& lt; system.webServer>< br />< validation =" false" /& gt;< br />< moles>< br />-->& lt;!-- For IIS 7. X + integration mode -- & gt& lt;!--< br />< add name=" SecuritySwitch" type=" SecuritySwitch.SecuritySwitchMole, SecuritySwitch" /& gt;< br /></ moles>< br /></ system.webServer>--& gt;< br /><!-- If it is IIS7. X + integrated mode, SSL configuration 2 ends - & gt< br /></ configuration>
4: e to the use of built-in bill authentication, the following code should be added to global.asax:
protected void application_ AuthenticateRequest(object SENDER, EventArgs e)
{
if (HttpContext.Current.User != null)
{
if (HttpContext.Current.User.Identity.IsAuthenticated)
{
if (HttpContext.Current.User.Identity is FormsIdentity)
{
FormsIdentity id = (FormsIdentity)HttpContext.Current.User.Identity;< br />FormsAuthenticationTicket tiecket = id.Ticket;< br />string userData = tiecket.UserData;< br />string[] roles = userData.Split(', 39;);< br />HttpContext.Current.User = new System.Security.Principal.GenericPrincipal(id, roles);
}
}
}
}
5: background login interface admin / login.aspx:
& lt;%@ Page Language=" C#" AutoEventWireup=" true" CodeBehind=" login.aspx.cs" Inherits=" web.admin.login" %& gt;< br />
<! DOCTYPE html PUBLIC "-// W3C//DTD XHTML 1.0 Transitional//EN" & quot; http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"& gt;< br />< html xmlns=" http://www.w3.org/1999/xhtml"& gt;< br />< head runat=" server"& gt;< br />< title>& lt;/ title>< br /></ head>< br />< body>< br />< form id=" form1" runat=" server"& gt;
User Name: & lt; asp:TextBox ID=" txtUser" runat=" server"& gt;& lt;/ asp:TextBox>& lt; br />
password: & lt; asp:TextBox ID=" txtPass" runat=" server"& gt;& lt;/ asp:TextBox>& lt; br />
remember the user name: & lt; asp:CheckBox ID=" chkUsername" runat=" server" Checked=" true"/& gt;< br />< br />< br />< asp:Literal ID=" litResult" runat=" server"& gt;& lt;/ asp:Literal> < br />< br />< br />< asp:Button ID=" btnSubmit" runat=" server" Text=" Submit & quot; onclick=" btnSubmit_ Click" /& gt;< br /></ form>< br /></ body>< br /></ html>
background login interface CS admin / login. ASPX. CS:
using system< br />using System.Collections.Generic;< br />using System.Web;< br />using System.Web.UI;< br />using System.Web.UI.WebControls;< br />using System.Web.Security;< br />namespace web.admin
{
public partial class login : System.Web.UI.Page
{
protected void Page_ Load(object sender, EventArgs e)
{
}
protected void btnSubmit_ Click(object sender, EventArgs e)
{
string username = txtUser.Text;< br />string pass = txtPass.Text;< br />bool ischeck=chkUsername.Checked;< br />if (username==" admin" && pass==" admin")< br />{
SaveLogin(username, ischeck);< br />}
}
private void SaveLogin(string username, bool ischeck)
{
HttpCookie cook;< br />string strReturnURL;< br />string roles
3. It means:
when you click "more", you will jump to the specified address
when you click "more", you will jump to the specified address
4. Game.of.Thrones.S2E00.You.Win.or.You.Die.720p.WEB-DL.H264-BTN种子下载地址:
5. onclick=" btnTest()"
Hello, according to your description, onclick literally means "when you click", triggering btntest() function, and btntest() function will be defined in JS
if you are satisfied, please accept it, thank you!
Hello, according to your description, onclick literally means "when you click", triggering btntest() function, and btntest() function will be defined in JS
if you are satisfied, please accept it, thank you!
6. 银饰.rmvb
7. 99999999999999999999999999999999999999999920202020999999999999999999490;, 22768;, br />
br />1.22768;"URL"26367;"25442;" 38142;"25509Q;" http://www.helpexamples.com/flash/sound/song1.mp3" (GROANS) " quot;)* br />*/
play btn.addEventListener(MouseEvent.CLICK, fl ClickToPlayStopSound);< br />var fl SC:SoundChannel;< br />//27492;- 21464;- 36319;- 36394;- 23545;- 22768;- 36827;- 25773;- 25918;- 36824;- 20572;- 27490var fl ToP lay:Boolean = true; br />function fl ClickToPlayStopSound( evt:MouseEvent ):void
{
if(fl ToPlay)
{
var s:Sound = new Sound(new URLRequest(" http://www.helpexamples.com/flash/sound/song1.mp3" );< br /> fl SC = s.play();< br />}
else
{
fl SC.stop();< br />}
fl ToPlay =! ToPlay;< br />}
br />1.22768;"URL"26367;"25442;" 38142;"25509Q;" http://www.helpexamples.com/flash/sound/song1.mp3" (GROANS) " quot;)* br />*/
play btn.addEventListener(MouseEvent.CLICK, fl ClickToPlayStopSound);< br />var fl SC:SoundChannel;< br />//27492;- 21464;- 36319;- 36394;- 23545;- 22768;- 36827;- 25773;- 25918;- 36824;- 20572;- 27490var fl ToP lay:Boolean = true; br />function fl ClickToPlayStopSound( evt:MouseEvent ):void
{
if(fl ToPlay)
{
var s:Sound = new Sound(new URLRequest(" http://www.helpexamples.com/flash/sound/song1.mp3" );< br /> fl SC = s.play();< br />}
else
{
fl SC.stop();< br />}
fl ToPlay =! ToPlay;< br />}
8. What does this mean by a special effect that requires a click of a button?
9. Unknown_Error
Hot content