<%@ Page language="c#" Codebehind="DbClickListBox.aspx.cs" AutoEventWireup="false" Inherits="ListBoxdbclick.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>WebForm1</title>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<TABLE height="366" cellSpacing="0" cellPadding="0" width="288" border="0" ms_2d_layout="TRUE">
			<TR>
				<TD width="0" height="0"></TD>
				<TD width="10" height="0"></TD>
				<TD width="278" height="0"></TD>
			</TR>
			<TR vAlign="top">
				<TD width="0" height="15"></TD>
				<TD colSpan="2" rowSpan="2">
					<form id="Form1" method="post" runat="server">
						<TABLE height="271" cellSpacing="0" cellPadding="0" width="354" border="0" ms_2d_layout="TRUE">
							<TR vAlign="top">
								<TD width="10" height="16"></TD>
								<TD width="238"></TD>
								<TD width="106"></TD>
							</TR>
							<TR vAlign="top">
								<TD height="128"></TD>
								<TD colSpan="2"><input id="Dbclickflag" type="hidden" value="false" name="Dbclickflag" runat="server"></TD>
							</TR>
							<TR vAlign="top">
								<TD colSpan="2" height="56"></TD>
								<TD><asp:label id="Label1" runat="server"></asp:label></TD>
							</TR>
							<TR vAlign="top">
								<TD colSpan="2" height="71"></TD>
								<TD><asp:listbox id="ListBox1" runat="server" Width="104px">
										<asp:ListItem Value="4">1</asp:ListItem>
										<asp:ListItem Value="3">2</asp:ListItem>
										<asp:ListItem Value="2">3</asp:ListItem>
										<asp:ListItem Value="1">4</asp:ListItem>
									</asp:listbox></TD>
							</TR>
						</TABLE>
					</form>
				</TD>
			</TR>
			<TR vAlign="top">
				<TD width="0" height="351"></TD>
				<TD>
					<script language="vbscript">
			option explicit			
			sub ListBox1_ondblclick()
				Form1.Dbclickflag.value="true"
				Form1.submit()
			end sub
					</script>
				</TD>
			</TR>
		</TABLE>
	</body>
</HTML>
