Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:744891
More Search Options
RSS Available
Matching Posts
Re: HyperLinkField's in GridView can't have javascript calls in the DataNavigateUrlFormatString property
I use: Eval( "Engineer" , "\" {0}\ "" ) To send the engineer's textual/string name to the JS function. The key is to add quotation marks around the value... hth Jack
Posted to
Data Presentation Controls
(Forum)
by
JHoxley
on 6/29/2007
Re: HyperLinkField's in GridView can't have javascript calls in the DataNavigateUrlFormatString property
Thanks for that link - I thought I'd run a good enough search of this forum but that thread was just what I needed I've now solved my problem: < asp:HyperLinkField DataNavigateUrlFields= "Longitude,Latitude" DataNavigateUrlFormatString= "javascript:ShowMapLocation({0},{1})" DataTextField= "Tracking" DataTextFormatString= "{0}" HeaderText= "Tracking" ShowHeader= "False" Target= "_blank" > < ItemStyle HorizontalAlign
Posted to
Data Presentation Controls
(Forum)
by
JHoxley
on 6/27/2007
HyperLinkField's in GridView can't have javascript calls in the DataNavigateUrlFormatString property
Hello all, In a nutshell: If I put "javascript:ShowMapLocation({0},{1};" in the DataNavigateUrlFormatString it silently fails and generates *no* clickable link. If I remove the ":" from the string then it generates a clickable link but is, obviously, unusable. How can I get the ASP.NET's GridView control to generate a link pointing to a javascript function? I've successfully got a SQL Server 2005 query filling an ASP.NET GridView control working how I want. Part of the
Posted to
Data Presentation Controls
(Forum)
by
JHoxley
on 6/27/2007
Page 1 of 1 (3 items)
TechNet Edge:
TechNet Radio: Community Corner with John Weston (Episode 1)
TechNet Edge:
Windows Firestarter Events (Part 3 of 5): IE8 - Browse the Web in Style!
WindowsClient:
The year ahead, 2010.
TechNet Edge:
FOPE Policies Deep Dive Interview
Silverlight:
Silverlight HVP Design Update
WindowsClient:
Windows Client Developer Roundup for 12/28/2009
WindowsClient:
Snoop with 64 bit support
ASP.NET:
jQuery Hide/Close Link
ASP.NET:
Merry Christmas
TechNet Edge:
FPE Customer Story
Silverlight:
Being a writer, and having an editor. A Short Rant.
Channel 9:
Channel 9 Live at PDC09: Dr Brian Brooks (3M)
Channel 9:
C9 Lectures: Dr. Erik Meijer - Functional Programming Fundamentals Chapter 13 of 13
Silverlight:
Information for Silverlight HVP Developers…
WindowsClient:
Custom Content Loaders in Silverlight 4.0
WindowsClient:
MVVM Links\Info
TechNet Edge:
Check out how Dolly Parton uses IE8 and Web slices!!!
Silverlight:
A Silverlight HVP Update
Channel 9:
Channel 9 Live at PDC09: This Week on Channel 9 - PDC09 Daily Show Edition Day 1
Channel 9:
Maria Klawe: Scholar, Scientist and Microsoft Board Member
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online