| Welcome to Webforumz.com. |
|
Jan 4th, 2008, 08:59
|
#1 (permalink)
|
|
Junior Member
Join Date: Dec 2007
Location: UK
Posts: 25
|
drop down menu using asp.net and vb
hi,
how do i create a drop down menu using asp.net with VB? for example, i want a file, edit etc kind of tool bar / drop down menu.
does anyone have any sugeestions or example code for this and maybe the functionality of such features like how to open a file, cut copy and paste.
thanks
|
|
|
Jan 4th, 2008, 10:05
|
#2 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
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>
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Jan 4th, 2008, 10:36
|
#3 (permalink)
|
|
Junior Member
Join Date: Dec 2007
Location: UK
Posts: 25
|
Re: drop down menu using asp.net and vb
thanks for ur advise alex,
i applied what you suggested
i want it to look like a toolbar like for example the one in microsft word, so when the user clicks file the menu then appears, have you got any ideas how to do this?
|
|
|
Jan 4th, 2008, 10:58
|
#4 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: drop down menu using asp.net and vb
Do you know any javascript?
You use a premade script like FCKeditor to do this.
Just google it 
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Jan 4th, 2008, 11:46
|
#5 (permalink)
|
|
Junior Member
Join Date: Dec 2007
Location: UK
Posts: 25
|
Re: drop down menu using asp.net and vb
thanks for that
i googled it, its what i need
|
|
|
Jan 4th, 2008, 11:58
|
#6 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: drop down menu using asp.net and vb
There's quite a few (they're called javascript WYSIWYG editors).
I think people like FCKeditor the most though.
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Jan 4th, 2008, 12:51
|
#7 (permalink)
|
|
Junior Member
Join Date: Dec 2007
Location: UK
Posts: 25
|
Re: drop down menu using asp.net and vb
iv just found another one on this website, http://www.karamasoft.com/
do u think that i can add my own functionality like when the user has clicked save i can detect this and print out some line saying 'yes thats correct'
|
|
|
Jan 4th, 2008, 15:53
|
#8 (permalink)
|
|
Administrator
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 4,102
|
Re: drop down menu using asp.net and vb
Yes you could.
You'll need to be quite experienced with JS though 
__________________
Languages: PHP, mySQL (queries), C#, (X)html, CSS, JS.
|
|
|
Jan 5th, 2008, 22:09
|
#9 (permalink)
|
|
Junior Member
Join Date: Nov 2007
Location: New Delhi
Posts: 10
|
Re: drop down menu using asp.net and vb
You can make a .net drop down menu by using the "Menu" control from the Toolbox. Just drag and drop it on your page. It will display a small arrow on the top of the control. Click it and you will have options to edit the menu items. Very simple and nice menu. You can also add css styling to change the appearance to your linking.
|
|
|
Jan 8th, 2008, 19:38
|
#10 (permalink)
|
|
Junior Member
Join Date: Dec 2007
Location: UK
Posts: 25
|
Re: drop down menu using asp.net and vb
thanks for ur advice, i have made use of this toolbar now 
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|