Hi
I have Repeater . In Dropdown it has 2 values . I want if Dropdown value in Database is 1 then Yes should be selected else No.
Thanks
Ramco RamcoPosted Oct 21, 2022, 7:26 AM
Hi Jignesh
Thanks
Jignesh KumarPosted Oct 21, 2022, 7:17 AM
Hello Ramco,
Where is your "hdfOnBresk" hidden field. I am not able to see that hiddenfield in your code. Please put debugger and check value for below line. What values are coming in below field.
Ramco RamcoPosted Oct 21, 2022, 6:22 AM
Hi
I am trying below code but not working
Thanks
Abhishek YadavPosted Oct 21, 2022, 1:43 AM
create a empty string and use if and else loop
ie(if ddl.selelected,value==1){val="yes"}
the insert this in your sql through query