[Asp.net] core code of the network extraction Function

Source: Internet
Author: User
1. Write to the registry:
Registry File: myreg. Reg
Content:
Regedit4

[HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ menuext]

[HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ menuext \ add to my network Abstract]
@ = "Http: // localhost/paper/rightclick. aspx"
Ii. Delete the above operations:
File Name: removemylreg. Reg
Content:
Regedit4

[-HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ menuext \ add to my network Abstract]
3. html view on the rightclick. ASPX pageCode(The VB code is empty)

<Script language = "JavaScript">

If (external. menuarguments ){
VaR parentwin = External. menuarguments;
If (parentwin.doc ument. Selection ){
VaR sel = parentwin.doc ument. selection. createRange (). text;
}

If (! Sel ){
VaR sel = '';
}

VaR url = parentwin. Location. href;
VaR Title = parentwin.doc ument. title;

If (parentwin. event. srcelement. tagname = ""){
Url = parentwin. event. srcelement. getattribute ("href ");
Title = parentwin. event. srcelement. innertext;
}
Void (window. Open ('HTTP: // localhost/paper/index. aspx? T = '+ escape (title) +' & U = '+ escape (URL) +' & C = '+ escape (SEL),' _ blank ', 'rollbars = No, width = 475, Height = 575, Left = 75, Top = 20, status = No, resizable = yes '))
} Else {
History. Go (-1 );
}
</SCRIPT>
Use request. Receiving parameters T, U, and C in index. aspx and add them to the database.
For example, textbox1.text = request. querystring ("T ")
Textbox2.text = request. querystring ("U ")
Textbox3.text = request. querystring ("C ")
Perform other data processing.

Note: For HTML in index. aspx, the page must be added with the validaterequest = false attribute.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.