p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 19th, 2009, 03:05 AM
Authorized User
Points: 373, Level: 6
Points: 373, Level: 6 Points: 373, Level: 6 Points: 373, Level: 6
Activity: 2%
Activity: 2% Activity: 2% Activity: 2%
 
Join Date: Apr 2007
Location: Delhi, Delhi, India.
Posts: 57
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

<asp:DataListID="DataList1"runat="server"onitemcommand="DataList1_ItemCommand">
<ItemTemplate><divid="myDiv"runat="server"class="ARough"onclick="window.open('Admin/Default.aspx','myWindow','width=200,height=200');" >
<tableborder="1"cellpadding="0"cellspacing="0"width="100%">
<tr>
<tdstyle="width:200px">
<asp:LabelID="lblID"runat="server"Text='<%#Eval("ID") %>'></asp:Label>
</td>
<tdstyle="width:200px">
<asp:LabelID="lblAlternateText"runat="server"Text='<%#Eval("AlternateText") %>'></asp:Label>
</td>
<td>
<asp:ButtonID="cmdShow"CommandName="Show"runat="server"Text="Show Image Url"/>
<asp:LabelID="lblImageUrl"Visible="false"runat="server"Text='<%#Eval("ImageUrl") %>'></asp:Label>
</td>
</tr>
</table></div>
</ItemTemplate>
</asp:DataList>

Last edited by Manoj Bisht : June 19th, 2009 at 04:46 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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



All times are GMT -4. The time now is 01:23 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc