Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional 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 April 5th, 2004, 03:31 AM
Authorized User
 
Join Date: Apr 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default HyperLinkColumn

Hi.

I need to open a new window from a Datagrid column, so I use:

<asp:HyperLinkColumn Text="Editar" DataNavigateUrlField="idclient" DataNavigateUrlFormatString="client.aspx?IdClient= {0}" Target="_blank" ItemStyle-HorizontalAlign="Center"/>

The problem is that I can't configurate the new window I open as I could do with "window.open" in JavaScript. I need to set the width, height, hide bars, etc, of the new window.

Any ideas?

Thanks.

 
Old April 5th, 2004, 06:58 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You can't do this with target="_blank". You'll have to use the old method. Take a look at this thread for how to build a hyperlink in a template column. Using this you can use the window.open method in the href.
 
Old April 5th, 2004, 08:35 AM
Authorized User
 
Join Date: Apr 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much.

EDIT: .NET has to improve a lot of things in the forthcoming version.






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to design a HyperLinkColumn in Datagrid? taoree ASP.NET 1.0 and 1.1 Basics 12 May 30th, 2007 10:37 AM
Passing value from HyperLinkColumn to UserControl 62vette ASP.NET 1.0 and 1.1 Basics 0 April 19th, 2006 06:16 AM
HyperLinkColumn amantona ASP.NET Espanol 0 April 5th, 2004 03:35 AM
<asp:HyperLinkColumn > aadz5 ASP.NET 1.0 and 1.1 Basics 0 October 27th, 2003 04:56 PM





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