Wrox Programmer Forums
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 19th, 2009, 02:05 AM
Authorized User
Join Date: Apr 2007
Posts: 61
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stop popu window

Hello Friends,
I've a DataList in this DataList i've a Div onclick this Div a popup window opens. And also this div holds some Labelsto display the data and a Button onclick this button a Image Ur is displayed.
But the problem is as i click on this Button, Image Url is displayed but a popup windowis also opened. But i want if i click on Button only ImageUrl is to be displayed otherwise popup window should be opened

Here is my code

<ItemTemplate><divid="myDiv"runat="server"class="ARough"onclick="window.open('Admin/Default.aspx','myWindow','width=200,height=200');" >
<asp:LabelID="lblID"runat="server"Text='<%#Eval("ID") %>'></asp:Label>
<asp:LabelID="lblAlternateText"runat="server"Text='<%#Eval("AlternateText") %>'></asp:Label>
<asp:ButtonID="cmdShow"CommandName="Show"runat="server"Text="Show Image Url"/>
<asp:LabelID="lblImageUrl"Visible="false"runat="server"Text='<%#Eval("ImageUrl") %>'></asp:Label>

Last edited by Manoj Bisht; June 19th, 2009 at 03:46 AM..

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop Tomcat Service "Command Window" steveAR BOOK: Professional Apache Tomcat 1 June 9th, 2008 12:16 PM
Stop button won't stop loop JDShaffer Visual Basic 2008 Essentials 3 May 23rd, 2008 03:22 PM
Centering Popup window & Blur Parent window jkusmanto Javascript How-To 0 May 25th, 2007 03:19 AM
closed parent window when opened child window jaiwin Javascript How-To 0 October 8th, 2006 12:54 PM
Stop VBE Window Showing Skunk Excel VBA 0 December 31st, 2004 05:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.