Calling a new page from datalist with hyperink.http://forums.asp.net/t/301538.aspx/1?Calling+a+new+page+from+datalist+with+hyperink+Thu, 07 Aug 2003 12:03:22 -0400301538301538http://forums.asp.net/p/301538/301538.aspx/1?Calling+a+new+page+from+datalist+with+hyperink+Calling a new page from datalist with hyperink. All: I have a req to call a new page (like a popup) from hyperlink on a datalist. the new window would not display the IE toolbars and the address bar and should except a the image name passed from the hyperlink. Background: I have a datalist. This datalist is repeated horizontally 5 times. It dispays the thumbnail images like a photo Gallery. This Image has an hyperlink associated with the thumbnail . On Clicking the hyperlink I would like to pop up a window (IE or Netscape) with no toolbar and addressbar. It should except the parameter passed from the hyperlink and Display the single image if possible it should size itself to the window. Appreciate if someone can help me call the javascript from aspx page (from the hyperlink in the datalist) 2003-08-06T15:44:34-04:00301723http://forums.asp.net/p/301538/301723.aspx/1?Re+Calling+a+new+page+from+datalist+with+hyperink+Re: Calling a new page from datalist with hyperink. Here is an example. Make your hyperlink: <pre class="prettyprint">here</pre> And then have this function somewhere included on the page: <pre class="prettyprint"> &lt;script language="javascript"&gt; function popUp(URL) { window.open(URL, '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=400'); } &lt;/script&gt; </pre> Hope this helps! Charley. 2003-08-06T17:55:52-04:00302463http://forums.asp.net/p/301538/302463.aspx/1?Re+Calling+a+new+page+from+datalist+with+hyperink+Re: Calling a new page from datalist with hyperink. Charley: It did not work. I have to pass parameters to this window to be popped up and I could not get the right syntax for it. a href=&quot;javascript:popUp('disp.aspx?disp= Iamge URL is a public function and it too had similar probelms. Appreciate your help. 2003-08-07T11:50:05-04:00