TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Manoj Bisht
NA
145
0
Stop Popup window
Jun 19 2009 3:47 AM
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
Labels
to 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 window
is 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
:
DataList
ID
="DataList1"
runat
="server"
onitemcommand
="DataList1_ItemCommand">
<
ItemTemplate
>
<
div
id
="myDiv"
runat
="server"
class
="ARough"
onclick
="window.open('Admin/Default.aspx','myWindow','width=200,height=200');">
<
table
border
="1"
cellpadding
="0"
cellspacing
="0"
width
="100%">
<
tr
>
<
td
style
="
width
:
200px">
<
asp
:
Label
ID
="lblID"
runat
="server"
Text
='
<%#Eval("ID") %>
'></
asp
:
Label
>
</
td
>
<
td
style
="
width
:
200px">
<
asp
:
Label
ID
="lblAlternateText"
runat
="server"
Text
='
<%#Eval("AlternateText") %>
'></
asp
:
Label
>
</
td
>
<
td
>
<
asp
:
Button
ID
="cmdShow"
CommandName
="Show"
runat
="server"
Text
="Show Image Url"
/>
<
asp
:
Label
ID
="lblImageUrl"
Visible
="false"
runat
="server"
Text
='
<%#Eval("ImageUrl") %>
'></
asp
:
Label
>
</
td
>
</
tr
>
</
table
>
</
div
>
</
ItemTemplate
>
</
asp
:
DataList
>
Reply
Answers (
0
)
problem sending Email message includes a picture
Do I need .NET or SQL License?