472,110 Members | 2,061 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,110 software developers and data experts.

how to create selection list with event onselectedindexchange dynamically

hello friends i am trying to find solution for this problem if u know something then please tell

i am creating web application that runs on black berry.

here i need to create selection list which has three radio buttons in it.

but these are created dynamically. and i want to add event "onselectedindexchanged" for this list.

so how can i add this event when i am creating it dynamically.

for static creation the code is of this kind
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestSelectionEvent.aspx.cs" Inherits="TestSelectionEvent" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls" Assembly="System.Web.Mobile" %>

<html >
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"/>
<meta name="CODE_LANGUAGE" content="C#"/>
<script runat="server">

void mycall(Object sender, EventArgs e)

<mobile:Form id="Form1" runat="server">
<mobile:Panel ID="p1" Runat="server">
<mobile:DeviceSpecific ID="DeviceSpecific1" Runat="server">
<Choice Filter="supportsJavaScript">
<asp:RadioButtonList ID="SelectionList1" runat="server" OnSelectedIndexChanged="SelectionList1_SelectedInd exChanged" AutoPostBack="true" >

<Choice Filter="supportsJavaScript">
<mobile:SelectionList ID="SelectionList1" Runat="server" OnSelectedIndexChanged="SelectionList1_SelectedInd exChanged">
<Item Text="Yes" Value="Yes" />
<Item Text="No" Value="No" />


here selection list is created in design view i.e. statically.

but how can i do same when selection list is created dynamically

if any one know please help me........
thank you.
Sep 11 '08 #1
0 2570

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Mark Goldin | last post: by
3 posts views Thread by RSB | last post: by
1 post views Thread by tshad | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.