[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

How to handle OnSelectedIndexChanged ?

Søren M. Olesen

2/9/2004 3:00:00 PM


Hi

I have an asp:listbox on a aspx page, which is set to runat="server"
however, I'd like to handle the OnSelectedIndexChanged in client-side code,
but I get an error on load of the page each time I try to setup an
eventhandler.....what am I doing wrong? Or is it just not possible?

TIA

Søren

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="dppSearch.aspx.vb" Inherits="DPP.dppSearch"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>dppSearch</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense...
name="vs_targetSchema">
<script language="javascript" src="dxp_script/functions.js"
type="text/javascript"></script>
<script language="JavaScript">
function clkOpenPrice() {
alert("SMO");
}
</script>
</HEAD>
<body bgColor="#003399" MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:listbox id="lbResult" style="Z-INDEX: 103; LEFT: 88px; POSITION:
absolute; TOP: 48px" Width="640px" Height="128px" Runat="server"
AutoPostBack="False" OnSelectedIndexChanged="clkOpenPrice();">
</asp:listbox></form>
</body>
</HTML>