Click here to Skip to main content
15,899,026 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
can anyone explain how dynamicpopulate Extender works with example.
Posted

1 solution

 
Share this answer
 
Comments
Member 11686116 10-Jun-15 6:47am    
I tried this but am getting error like Cant Find ID.
Please update your question giving more information on your code and where you are getting issue exactly. Currently, it is telling us nothing.
Member 11686116 10-Jun-15 7:35am    
<script type="text/javascript">
function updateDateKey(value) {
var behavior = $find('dp1');
if (behavior) {
behavior.populate(value);
}
}
Sys.Application.add_load(function () { updateDateKey('Alik Levin'); });
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ToolkitScriptManager ID="ScriptManager1" runat="server">
<div>
<asp:DynamicPopulateExtender ID="DynamicPopulateExtender1" runat="server" BehaviorID="dp1" TargetControlID="form1$Label1" ClearContentsDuringUpdate="true"
ServiceMethod="GetHtml">

<input type="radio"
name="rbFormat"
id="r0"
value='alik'
/>click to set 'alik'<br/>
<input type="radio"
name="rbFormat"
id="Radio1"
/>click to set 'levin'<br />
<asp:Label ID="Label1" runat="server" ForeColor="Red" Text="Label">
</div>
</form>

This is my source code once i run this form it is showing error like "An unhandled exception was generated during the execution of the current web request"
You have to debug and check where exactly it is throwing this exception.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900