View Single Post
  #2 (permalink)  
Old Jan 4th, 2008, 10:05
alexgeek's Avatar
alexgeek alexgeek is offline
Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,769
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: drop down menu using asp.net and vb

HTML: Select all
  <select name="list" id="list">
    <option value="1">Selection1</option>
    <option value="2">Selection2</option>
    <option value="...">...</option>
  </select>
That is how you produce drop down boxes with HTML.

To open a file, you can upload it to your servver via a HTML form and then manipulate the handling of the file with ASP.NET.
E.G. UploadForm.aspx has a form, you browse to the text file you want to upload you submit this form to Upload.aspx.
Upload.aspx takes the file and moves it somewhere for safe keeping, and then you can do whatever you want with the file.

Copy and Paste? You don't need anything to copy and paste (ctrl +c = copy; ctrl + v= paste) but if you want to have a button which the user clicks to paste their clipboard into a textbox or something I found this javascript:

Code: Select all
<script>  
 
function a2kpaste() {  
     var rng = document.selection.createRange();  
     rng.execCommand("paste");  
}  
</script>
Reply With Quote