Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   SelectedIndexChanged event does not fire (http://www.velocityreviews.com/forums/t775570-selectedindexchanged-event-does-not-fire.html)

Jim 03-08-2005 02:48 AM

SelectedIndexChanged event does not fire
 
Hi All,



Can someone tell me why the SelectedIndexChanged event does not fire?



<form id="Form1" method="post" runat="server">

<asp:Table id="Table1" runat="server" Width="455px" Height="61px">

<asp:TableRow>

<asp:TableCell>

<asp:DropDownList id="DropDownList1" runat="server" Width="263px"
AutoPostBack="True">

<asp:ListItem Value="bef">bef</asp:ListItem>

<asp:ListItem Value="kut">kut</asp:ListItem>

</asp:DropDownList>

</asp:TableCell>

</asp:TableRow>

</asp:Table>

</form>






private void DropDownList1_SelectedIndexChanged(object sender,
System.EventArgs e)

{

Response.Write("it works!"); //no way!!



}



ch Jim




Jim 03-08-2005 05:57 AM

Re: SelectedIndexChanged event does not fire
 
nevermind i got it
"Jim" <jimmy1234@hotmail.com> schreef in bericht
news:OsFOYl4IFHA.2728@TK2MSFTNGP09.phx.gbl...
> Hi All,
>
>
>
> Can someone tell me why the SelectedIndexChanged event does not fire?
>
>
>
> <form id="Form1" method="post" runat="server">
>
> <asp:Table id="Table1" runat="server" Width="455px" Height="61px">
>
> <asp:TableRow>
>
> <asp:TableCell>
>
> <asp:DropDownList id="DropDownList1" runat="server" Width="263px"
> AutoPostBack="True">
>
> <asp:ListItem Value="bef">bef</asp:ListItem>
>
> <asp:ListItem Value="kut">kut</asp:ListItem>
>
> </asp:DropDownList>
>
> </asp:TableCell>
>
> </asp:TableRow>
>
> </asp:Table>
>
> </form>
>
>
>
>
>
>
> private void DropDownList1_SelectedIndexChanged(object sender,
> System.EventArgs e)
>
> {
>
> Response.Write("it works!"); //no way!!
>
>
>
> }
>
>
>
> ch Jim
>
>
>




Sundararajan 03-08-2005 09:09 AM

Re: SelectedIndexChanged event does not fire
 
Hi Jim,

I am facing the same problem in my application. can u please tell me how
to go about it ASAP

regards,
sundararajan.S

"Jim" wrote:

> nevermind i got it
> "Jim" <jimmy1234@hotmail.com> schreef in bericht
> news:OsFOYl4IFHA.2728@TK2MSFTNGP09.phx.gbl...
> > Hi All,
> >
> >
> >
> > Can someone tell me why the SelectedIndexChanged event does not fire?
> >
> >
> >
> > <form id="Form1" method="post" runat="server">
> >
> > <asp:Table id="Table1" runat="server" Width="455px" Height="61px">
> >
> > <asp:TableRow>
> >
> > <asp:TableCell>
> >
> > <asp:DropDownList id="DropDownList1" runat="server" Width="263px"
> > AutoPostBack="True">
> >
> > <asp:ListItem Value="bef">bef</asp:ListItem>
> >
> > <asp:ListItem Value="kut">kut</asp:ListItem>
> >
> > </asp:DropDownList>
> >
> > </asp:TableCell>
> >
> > </asp:TableRow>
> >
> > </asp:Table>
> >
> > </form>
> >
> >
> >
> >
> >
> >
> > private void DropDownList1_SelectedIndexChanged(object sender,
> > System.EventArgs e)
> >
> > {
> >
> > Response.Write("it works!"); //no way!!
> >
> >
> >
> > }
> >
> >
> >
> > ch Jim
> >
> >
> >

>
>
>


steve-o 03-08-2005 07:18 PM

Re: SelectedIndexChanged event does not fire
 
"Sundararajan" <sundararajan@discussions.microsoft.com> wrote in message
news:9E792ABE-E906-4AC6-AD05-7750C188B4E7@microsoft.com...
> Hi Jim,
>
> I am facing the same problem in my application. can u please tell me

how
> to go about it ASAP
>
> regards,
> sundararajan.S
>

*Check that the AutoPostBack Property is set to true for your dropdownlist.
*Check your InitializeComponent() method and make sure your dropdownlist
control is wired to the correct event:
this.DropDownList1.SelectedIndexChanged += new
System.EventHandler(this.DropDownList1_SelectedInd exChanged);

Hope this helps,
Steve-O




All times are GMT. The time now is 04:41 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.