473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 2666

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

Similar topics

by: Adam Sanders via .NET 247 | last post by:
(Type your message here) -------------------------------- From: Adam Sanders Hi guyz, got held up with the 'onselectedindexchange' event of MS TreeView Control it's not working when i'm...
by: Galina | last post by:
Hello I have 6 dependent list boxes on my ASP page:  Faculty;  Lecturer;  Course;  Course occurrence;  Group;  Week commencing date. When faculty is selected, lists of lecturers and...
by: Mark Goldin | last post by:
I am assigning a client event handler like this: this.Treeview.Attributes.Add("onselectedindexchange", "executeClick()"); Can specify parameters for it? LIke this: ...
by: RSB | last post by:
Hi Every one Having tuff time creating web controls Dynamically. All i am trying to do is read a table and generate a list of ASP TEXT Box. So how do i create this Control dynamically and where...
by: slitchfield | last post by:
Sorry if this is real beginner's stuff, but I'm an old-school HTML guy and this is all another world to me. Is there an easy way to get the user to specify a number from 1 to 5 (in a pick list...
by: tshad | last post by:
I have a listbox that I fill and can't select the 1st item until I select another item first. I have the onselectedindexchange set to a function and autopostback set to true. The only problem...
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
by: SM | last post by:
Hello I'm trying to create a multi dimensional array in JavaScript, but after some reading i still can't figure out how to apply it to my model. Here it is: I have a list A and for each item...
by: robtyketto | last post by:
Greetings, I'm slowly building up code to do the following:- Display TWO selection option boxes (cascading). If the FIRST selection option box changes then reload the jsp using onchange...
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.