open popup window with click on image and datalist in popup window

 I have a picture,i want to when i click on it a popup window open,in that pop up window i want to have a data list that in every field of it be a link and a picture,when user click on a link with a url go to another website in that pop up window,how can I do this senario?

10/21/2008 3:57:59 PM 24353 articles. 2 followers. Follow

4 Replies

Similar Articles

[PageSpeed] 24
Get it on Google Play
Get it on Apple App Store

Where are you having a problem? We can't build the thing for you. Post the code that you have so far.



10/21/2008 4:37:47 PM

 I want when I click on a picture a popup window open

10/21/2008 5:35:54 PM

Like this?

<img src="yourImageFile.jpg" onclick="'Page2.aspx');" />

See for more information on


10/21/2008 6:19:46 PM


try this example as i save image URL in database and upload image in Car_Image folder in my website

if you want to show image in Datalist or Gridview

<asp:TemplateField HeaderText="Image">


<a href="javascript:Openpopup('Image_Detail.aspx?PId=<%# Eval("Id") %>')"><asp:Image ID="Image1" runat="server" Height="72px" ImageUrl='<%# Eval("Image", "Car_Image/{0}") %>'

Width="91px" /></a>


<HeaderStyle HorizontalAlign="Center" />


and for Javascript to open popup window

<script language="javascript" type="text/javascript">function Openpopup(popurl)


winpops =,
"","width=340, height=300, left=45, top=15, scrollbars=yes, menubar=no,resizable=no,directories=no,location=no")



Good Luck

10/23/2008 7:30:59 AM

Similar Artilces:

superreview requested: [Bug 263960] popup blocker fails to stop synthetic click popup in single window mode : [Attachment 161999] abort tab opening if window is a disallowed popup
Dan M <> has asked Peter Van der Beken <> for superreview: Bug 263960: popup blocker fails to stop synthetic click popup in single window mode Attachment 161999: abort tab opening if window is a disallowed popup ...

superreview granted: [Bug 263960] popup blocker fails to stop synthetic click popup in single window mode : [Attachment 161999] abort tab opening if window is a disallowed popup
Johnny Stenback <> has granted Dan M <>'s request for superreview: Bug 263960: popup blocker fails to stop synthetic click popup in single window mode Attachment 161999: abort tab opening if window is a disallowed popup ------- Additional Comments from Johnny Stenback <> sr=jst too! ...

superreview granted: [Bug 263844] Javascript window.close() on popup not working when popup is opened in tab : [Attachment 162257] set opener on opened windows diverted into tabs
Boris Zbarsky <> has granted Boris Zbarsky <>'s request for superreview: Bug 263844: Javascript window.close() on popup not working when popup is opened in tab Attachment 162257: set opener on opened windows diverted into tabs ------- Additional Comments from Boris Zbarsky <> r+sr=bzbarsky. Dan, thanks for doing this! I really wish we could factor some of this code that's being copied f...

Open Popup Window and Close the window that Opened it
I'm using some code that I found on this site to open a Popup window with a Button Click for a Crystal Report: Dim PopUpScript As String = "<script language='javascript'>" + "" & Chr(39) & strExportFile & Chr(39) & ");</script>" Page.ClientScript.RegisterStartupScript(Me.GetType(), "PopUpWindow", PopUpScript, False) After the Popup Window shows the Report I would like to close the window that opened this popup window.  Thanks, Mark just add window.close(); in Dim PopUpScript As String ...

how to open popup window through javascript in code behind( popup window should be aligned center)
I want to use javascript in code behind to open popup window. I have Datalist inside which there is linkbutton. On click of linkbutton open popup window through javascript & that pop up window should be aligned centraly.Regards,Mahesh--------------------click "Mark as Answer" on the post that helps you. Friend, Try this sample . <html xmlns="" ><head runat="server">    <title>Untitled Page</title>        <style>    .blue{ bac...

Open Popup from a popup window
I have already opened a popup[1] with no toolbar ... From that popup I have to open another popup[2] window. But the new popup window opens in that popup[1] only instead of opening in popup[2]. Please suggest.  CSR~ Please Mark as Answer if it solves your query ~ Whenever you open a pop-up from a window then it treats that window as parent window. So whatever is happening in you case natural. If you want a seperate window then open it from the main window itself. target="_blank" for opening links in new windows Post the code that opens the popups. NC...  ...

Popup Window (window.opener)
Hi, I have an ASP.NET application. On one of my pages I have a link to a popup. This popup has a link. When the user clicks this link my popup closes and another Popup is displayed. In this second Popup I want to redirect the user to a fifferent page in my application when the popup closes. Is this possible as another popup opened this second popup so I cannot use 'window.opener'. Any advice is much appreciated. Thanks, C can you please explain a bit more clearly, what I got is that you hae total 4 windows isn't it? are you using hyperlink control or window.openfeed...

From popup window i want one more popup window
can anybody help me soon... i have 2 popup pages pop1 and pop2............when i click one likbutton i want to popup pop1.aspx page and when i click pop1.aspx link button i want pop2.aspx.based on my coding this is working in other machines...but from server machine pop2 is not coming...    master page link button coding ***************************************************************************************************************************  Page.ClientScript.RegisterStartupScript(Me.GetType(), "popup", "ShowDNNReportPopup('" & user4mapping &...

Can add a parameter to set up popup windows as a modal windows?
Can add a parameter to set up popup window as a modal window? I want to open modal popup window to display a image. Try this..  window.showModalDialog("http://localhost/Test.aspx", "center:yes;resizable:no;dialogHeight:300px");My Blog"Don't be afraid to be wrong; otherwise you'll never be right." Hi, Do you want to show images? try this alternative: Any doubt, post your comment.Segundo Serrano P.Ing. Sistemas  ...

Open a popup window from child window
Hello,  I have a gridcontrol in a child window, which in edit mode has one dropdownlist control, one textbox to enter amount and another textbox whose value will be selected from another popup window. The problem here I am facing is.. when I am opening the popup window from the child window, its replacing the child window and thereby not populating the textbox control in the grid as the child window is being lost. Can anyone please tell me how to retain the child window and open the popup in other separate window. Its quite urgent Thanks      Hi Nans,Are you...

Popup window being covered up by opener window
I have a web app that contains a button that opens up a small popup window when clicked.  In ASP.NET 1.x (using Studio 2003), the popup window appeared without any problem. But with ASP.NET 2.x (using Studio 2005), the popup window appears, but immediately goes behind the opener window. Here's the code: Dim script as String = ""Dim popUp as String = "myurl.aspx"script += "&lt;script language='Javascript' id='PrevOrders'&gt;"script += "var confirmWin = null;"script += "var screenX = window.screen.availWidth/2 - 400;"script += ...

Popup window from datalist itemcommand window
 Hi,I am using datalist. I have a linkbutton in the datalist. I want to open the popup window when user clicks on the linkbutton.I am using Ajax Controls And I have placed datalist inside the updatePanel.My issue is when user clicks on the linkbuttion popup-window opens. But page is posted back to the server.i do not want page to be posted back to the sever. My code is  1 protected void DataList1_ItemCommand(object source, DataListCommandEventArgs e) 2 { 3 DataList1.SelectedIndex = e.Item.ItemIndex; 4 LinkButton li = (LinkButton)D...

Open popup window on click of button event from code behind side
 Hi friends I have one button called Preview which is placed in upadate panel. Now I want to open popup window on click of that button. I can call javascript onclientclick event but before open popup window i want to get some values from current window.I dont want to pass that value in query string. Here is my code <pre> ClientScript.RegisterStartupScript(this.GetType(), "JS", "'PreviewPop.aspx?DesignID=" + txtImageHide.Value + "','MyTitle','height=250,width=505, top=100, left=100, scrollbars=yes, res...

Window script opens a popup window to display progress, user can't click cancel button on it!
This is a multi-part message in MIME format. --------------07CBE7064AC029132701AC30 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I have a sheet window of type main that opens a popup window at the beginning of a script which loops through records to process. The popup window is used to display process status and has a cancel button to allow the user to cancel the loop, but... the button cannot be clicked. Why not? I have implemented other cancel type options where the button resides on the same window where the looping script is called from, but n...

Web resources about - open popup window with click on image and datalist in popup window -

Email Domain Datalist Helper
What if someone signs up for your web app and they type in their email address as They don't notice, they never get their ...

South-west Marine Reserves Network - Resources
[toc on_off::hide=0 on_off::automatic=0 on_off::min_limit=5 box::title=Contents box::minlevel=2 box::maxlevel=2 box::hide_show=1 box::collapsed=1 ...

工作正在进行中:实例解决方案 返回 表的图例 & 说明: “不支持" - 意味着如果提供有建设性意义的变通方案仍不能被浏览器支持。 “部分支持” - 意味着建设性意义的变通方案在浏览器中提供一些无障碍支持。 “没实现” - 意味着新特性在浏览器中仍然没有实现。 “支持” - means ...

... 鏂扮櫧鍙戦瓟濂充紶 鏄庢湞澶╁惎鍥涘勾锛屽箍鍏冨湴鍖鸿繛骞撮ゥ鑽?.. 娓╁窞涓€瀹朵汉 銆婃俯宸炰竴瀹朵汉銆嬩互涓€鎴锋櫘閫氫汉瀹剁殑... 闃垮浣块亾浼?/a> 銆婇樋濞樹娇閬撲紶銆嬩互鏈濋矞鏃朵唬涓鸿儗鏅?.. 鐑棬瑙嗛 姝e湪鍔犺浇...璇风◢绛墌 ${++dataList_index} ...

Adactio: Journal
The thoughts and ramblings of Jeremy Keith, a web developer living in Brighton in southern England.

datalist experiment
demo implementation of datalist element

Issues for pfeldman - Code Review
Keyboard Shortcuts File u : up to issue m : publish + mail comments M : edit review message j / k : jump to file after / before current file ...

Google’s new Chrome Beta 24 is 26% faster than last year’s browser
... the Octane Javascript benchmark. For developers, there are tons of new features in Chrome Beta 24 including new un-prefixed APIs, MathML, datalist ...

Accessible Mozilla: Firefox 24
Alex's blog Wednesday, July 10, 2013 Here's a list of Firefox 24 (currently Aurora ) improvements for assistive technology. ARIA We supported ...

Google Chrome 24 Released, Claims 26% Speed Improvement
Google today released a new version of its browser. On the Octane benchmark, this version is claimed to have 26% speed improvement over the last ...

Resources last updated: 12/12/2015 12:41:12 AM