Click here to Skip to main content
16,019,018 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
<asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return oepnwindow('<%= Eval(ID)%>')" > LinkButton

Here new window is opened, but not getting ID in the page.
what's wrong, I am newbee to this stuff.
You can also give advice for next time. Thanks in Advance.
Posted
Updated 15-Jul-14 7:19am
v3

Hi Chirag, following is a perfect solution for your query
try this,
<asp:linkbutton id="LinkButton1" runat="server" onclientclick="<%#"return oepnwindow("+Eval("ID")+")"%>" xmlns:asp="#unknown">

hope will be helpfull
 
Share this answer
 
v2
Comments
Chirag Kumar 16-Jul-14 13:39pm    
Thanks man :)
remember the onClientclick attribute is enclosed in single quotation not double,like

onclientclick='<%#"return oepnwindow("+Eval("ID")+")"%>'
thanks
 
Share this answer
 
Comments
Chirag Kumar 16-Jul-14 13:39pm    
Really thank u for the solution and explanation. Working fine.

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