Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." 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 Basics 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
  #1 (permalink)  
Old August 11th, 2003, 07:38 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataNavigateUrlFormatString

Does anyone know if you can pass multiple column parameters in the
DataNavigateUrlFormatString for grids?

My current code is like this and works for a single parameter:

<asp:HyperLinkColumn
                                            DataTextField="DTOG1"
                                            DataNavigateURLField="DTOG1"
                                            DataNavigateUrlFormatString="javascript:var NewWin=window.open('digit_translation.aspx?DTOG1={ 0}',null,'width=800,height=200,top=100,left=100,sc rollbars=no,directories=no,status=no,toolbar=no,re sizable=no');"
                                            HeaderText="DTOG1" />


Any help would be much appreciated.


Cheers,

Mike



  #2 (permalink)  
Old August 12th, 2003, 06:26 AM
Registered User
 
Join Date: Aug 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've done a lot of searching on the internet and it doesn't seem possible to send more than 1 parameter this way. However, it is possible to send more than 1 parameter using a Template Column. But I can only figure out how to do this without including my javascript to open a new window.

Can anybody tell me how I can convert my HyperLink column code above into Template Column format?


Thanks,

Mike



  #3 (permalink)  
Old February 14th, 2005, 08:22 PM
Registered User
 
Join Date: Feb 2005
Location: Milpitas, CA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

see the following link for a detailed explanation on this topic

http://www.c-sharpcorner.com/Code/20...LinkColumn.asp
  #4 (permalink)  
Old July 18th, 2006, 10:44 AM
Friend of Wrox
 
Join Date: May 2006
Location: Northampton, United Kingdom.
Posts: 107
Thanks: 1
Thanked 8 Times in 7 Posts
Default

Also this link http://www.15seconds.com/issue/040630.htm

Specifically

<asp:HyperLinkField runat="server"
         DataTextField="CustomerName"
         DataNavigateUrlFields="CustomerID,City"
         DataNavigateUrlFormatString=
           "http://yoursite.com/showcustomer.aspx?id={0}&city={1}" />





Similar Threads
Thread Thread Starter Forum Replies Last Post
DataNavigateUrlFormatString lroyce ASP.NET 1.0 and 1.1 Basics 3 June 8th, 2006 05:47 PM
Setting DataNavigateURLFormatString in datagrid Renu ASP.NET 1.0 and 1.1 Basics 1 December 9th, 2004 01:32 AM





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