Solved

Call Javascript function in datagrid's hyperlink column

Posted on 2004-08-11
4
746 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 4

Expert Comment

by:marko020397
ID: 11777713
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
ID: 11796941
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
ID: 11826582
The question has been PAQ'd and the 250 points have been refunded.
RomMod
Community Support Moderator
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

705 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