Posted on: 1/28/2014 12:31:03 PM | Views : 595

Hello Gurus,
I am trying to call javascript with parameter from the htmlbutton like this. (I am passing the parameter directly in onclick event,but window is not opening, if i remove the parameter like this , ShowWindow() then it working fine) Where am i missing,Help me with this. 
(Note : i dont want do it from code behind,) Below is the code ------------------------- <script type="text/javascript"> function ShowWindow(ID) { var oWnd = window.radopen('Dialog1.aspx?Id='+ID, 'window1'); //Opens the window oWnd.add_close(OnClientClose); //set a function to be called when RadWindow is closed }
</script>
<input type="button" runat="server" id="Button2" value="Test" onclick="ShowWindow('<%#Eval("ID")%>')" />

Go to the complete details ...