Helping ordinary people create extraordinary websites!

Go Back   Web Development Forum > Website Programming > Server-Side Scripting
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2008, 11:47 AM
Junior Member
 
Join Date: Dec 2007
Posts: 24
Default how can i link my button to the list box

hi,
i can someone help me because i am struggling to link my button to the list box, so when the user clicks the button the list box will appear underneath it and when someone clicks another button the list box will move and appear the second button clicked. the following is the code i have so far, iam using visual web developer
thanks for any help
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<!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 runat="server">
<title>Untitled Page</title>

</head>
<body>
<form id="form1" runat="server">
<div>

<asp:Button ID="Button1" runat="server" BackColor="#99CCFF"
BorderColor="#99CCFF" ForeColor="Black" Height="26px" Text="Number"
Width="52px" />
<asp:Button ID="Button2" runat="server" BackColor="#99CCFF"
BorderColor="#99CCFF" Height="26px" Text="2" Width="52px" />
</div>
<asp:ListBox ID="ListBox1" runat="server">
<asp:ListItem>1</asp:ListItem>
<asp:ListItem>2</asp:ListItem>
</asp:ListBox>
</form>
</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:58 AM.


Website Design by Ducani Media Group
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.