0

i am using umbraco with MVC and trying to use asp.net userControl as datatype by following a post Click here for post i followed but in my case onchange event of radio buttons are not called might be the situation is that i am using umbraco mvc so it did not support postback events. if my above reason is correct then what is the other way to create same functionality datatype in my case. i have binged and googled it but still no useful hint.

i want ui of my field like that at one time just one control should be visible either file loader or textbox(multiline). i can achieve this hide and visible by jquery but unable to get values of controls on it. enter image description here

any help please ......

syed Ahsan Jaffri
  • 1,160
  • 2
  • 14
  • 34

1 Answers1

2

Judging on your screenshot you are still using umbraco 4 or 6.

What you are trying to archive, should be no problem at all. It has nothing to do with the MVC part of the front end.

The reason why the buttons are not triggering "onchange" is probably because you are missing a "autopostback" on the radio button.

<asp:RadioButton ID="RadioButton1"  
  runat="server"  
  Text="radio button 1"  
  GroupName="group1"  
  AutoPostBack="True"
  Checked="True" />   
dampee
  • 3,392
  • 1
  • 21
  • 37