Solved

Call Javascript function in datagrid's hyperlink column

Posted on 2004-08-11
4
714 Views
Last Modified: 2008-01-16
I want to use Javascript to open a page in a new, sized, window. I have a hyperlink column in my datagrid to do this, and basically want to call a Javascript function EditPage with the ID column as the parameter:

    EditPage({0})

How do I set this up in the Property Builder of Visual Studio .Net?
0
Comment
Question by:crescendo
4 Comments
 
LVL 4

Expert Comment

by:marko020397
Comment Utility
I think you will have to use TemplateColumn. For hyperlink in column use <%# DataBinder.Eval (container.DataItem, "ID") %> or something like this.
0
 
LVL 9

Author Comment

by:crescendo
Comment Utility
I solved it. I can use Javascript, but my error was to put a space after "Javascript:". The correct URL is:

   Javascript:EditPage({0})

0
 

Accepted Solution

by:
RomMod earned 0 total points
Comment Utility
The question has been PAQ'd and the 250 points have been refunded.
RomMod
Community Support Moderator
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now