XModPro

Add onclick at RadioButtonList in a form

Alaa Alaa posted May 11, 2015
Active May 19 · Viewed 2736 times

I add new form include RadioButtonList 

ho to add 

onclick="UpdateRecord(this.value)" to each option at the radio botton

the form code is 

<AddForm>

<SubmitCommand CommandText="INSERT INTO [Lists] ([ListName], [Text], [Text], [ListName]) VALUES(@ListName, @Text, @Text, @ListName) " />

<div>

<div><Label CssClass="xmp-form-label" For="Lanuage">RadioButtonList</Label>

<RadioButtonList Id="Lanuage" DataField="ListName" RepeatLayout="Table" SelectedItemsSeparator="|" DataType="string">

<ListItem Value="1">English</ListItem><ListItem Value="2">Spanish</ListItem><ListItem Value="3">French</ListItem></RadioButtonList></div>

<div id="Lang1" style="display: none;"><Label CssClass="xmp-form-label" For="NameEn">What is your name</Label><TextBox Id="NameEn" DataField="Text" DataType="string"></TextBox></div>

<div id="Lang2" style="display: none;"><Label CssClass="xmp-form-label" For="NameSp">Cuál es tu nombre</Label><TextBox Id="NameSp" DataField="Text" DataType="string"></TextBox></div>

<div id="Lang3" style="display: none;"><Label CssClass="xmp-form-label" For="NameFr">Quel est votre nom</Label><TextBox Id="NameFr" DataField="ListName" DataType="string"></TextBox></div>

<div><Label> </Label><AddButton Text="Add"></AddButton><CancelButton Text="Cancel" style="margin-left: 12px;" Visible="true"></CancelButton></div>

</div></AddForm>


6 Replies

Loading replies...