PDA

View Full Version : [CLOSED] Passing function result as value of a parameter



RCN
Mar 12, 2012, 9:06 PM
Hi Folks, id like to know whether its possible to pass the result of a function as the value of a parameter



var getID = function()
{
return 10;
}



<ext:Button ID="btnDelete" runat="server" Text="Delete" Icon="Cross">
<DirectEvents>
<Click
Url="/Data/DeleteCustomer"
CleanRequest="true"
Method="POST"
<Confirmation ConfirmRequest="true" Title="Alert" Message="Delete Record?" />
<ExtraParams>
<ext:Parameter Name="id" Value="getID();" Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>

Vladimir
Mar 12, 2012, 9:25 PM
Just remove semicolumn


Value="getID()"

RCN
Mar 13, 2012, 12:43 PM
Thank you Vladimir