Hi,
I need a GridView that when I click on a row or on a HyperLinkField a
javascript call raise .
It is possible?
The grid is in a window open from a parent window. Onclick in a row
selected, a field in a opener is fill with the data of the row selected.
Thanks 2 17443
Try something like:
<asp:HyperLinkF ield NavigateUrl="ja vascript:alert( 'hi there');"
Text="Hi There" />
SP wrote:
Hi,
I need a GridView that when I click on a row or on a HyperLinkField a
javascript call raise .
It is possible?
The grid is in a window open from a parent window. Onclick in a row
selected, a field in a opener is fill with the data of the row selected.
Thanks
KJ ha scritto:
Try something like:
<asp:HyperLinkF ield NavigateUrl="ja vascript:alert( 'hi there');"
Text="Hi There" />
SP wrote:
>Hi, I need a GridView that when I click on a row or on a HyperLinkField a javascript call raise . It is possible?
The grid is in a window open from a parent window. Onclick in a row selected, a field in a opener is fill with the data of the row selected.
Thanks
It seem not work, I have a link as :
<asp:HyperLinkF ield DataTextField=" Field1" HeaderText="ID"
SortExpression= "Field1"
NavigateUrl="ja vascript:return Data('{0}','{1} ');"
datanavigateurl fields="Field1, Field2" target="_top"/>
In a GridView,but result is a link to "Field1". This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: MC |
last post by:
Hi all,
Quick question for you.
I need to include a parameter into this asp:HyperLinkField of SchoolID. I
tried adding Request.QueryString("SchoolID") but it didnt work.
<asp:HyperLinkField DataNavigateUrlFields="ActionID"
DataNavigateUrlFormatString="AddSchool5.aspx?ActionID={0}"
DataTextField="Action" />
|
by: dm1608 |
last post by:
I have a GridView that is displaying a field as a hyperlink. I would like
to add an onclick event to open another browser window using javascript.
How can I accomplish this? I can do this successfully with just a simple
HyperLink control. The HyperlinkField for a GridView doesn't compile with
trying to set this attribute.
As always, any help would be greatly appreciated.
|
by: Richard |
last post by:
Hi there,
Can somebody point me to the right direction please?
I want to edit fields in sql, but instead of using:
<asp:CommandField ShowHeader="true" HeaderText="Edit"
ShowEditButton="true" />
i want to edit this data in DialogBox, so i think it should go like
this:
<asp:HyperLinkField NavigateUrl="javascript:myJavaScriptFunction()"
DataNavigateUrlFields="Field1">
but i don't know how to parse a parameter into my function.
|
by: coosa |
last post by:
Dear all,
I tried to replace the GridView Column's HyperLinkField
"DataNavigateUrlFormatString" property with a java script pop up
window, but wehen i preview the page, the link is REMOVED! Does any one
see any thing wrong in the code below?
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="ITEM_ID"
DataSourceID="SqlDataSource1">
<Columns>
|
by: Bill44077 |
last post by:
I am dynamically adding a checkbox in a gridview and I find there are several
things that I cannot figure out how to address.
1. The width of the checkbox column is very wide. I've tried adding
properties and Item Style to the column but it has no effect. Is there
someway to size this column to be smaller? I removed the CssClass property
and it had no effect on the size as well.
2. The gridview is sortable using javascript. Is there...
| |
by: rmgalante |
last post by:
Hi,
I've been experimenting with the ASP.Net GridView and encountered some
interesting issues that I thought I would share. I have a page that
loads a GridView with a generic collection of objects. For the purposes
of this discussion, the objects define a Customer, and have an id and a
name.
I want to sort these customers by id or by name in ascending and
descending order. Here is what I did to make it work.
|
by: =?Utf-8?B?TWlrZSBSYW5k?= |
last post by:
I am trying to get a list of files from a specified directory using the
System.IO namespace classes, and then use that list as the datasource for a
GridView. I have been able to do this successfully.
The problem is when I try to hook up a HyperLinkField it's not working.
Basically, what I want to end up with is to have the file name listed in the
column and have the link point to the full file path, for each file in the
list. I've been...
|
by: bodamithun |
last post by:
Hi all,
For some weird reason my hyperlinkfield does not work.
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
>
<Columns>
<asp:HyperLinkField DataTextField="batchid" DataNavigateUrlFields="batchid" DataNavigateUrlFormatString="ViewUserAccount.aspx?id={0}"/>
|
by: boevermann |
last post by:
I prototyped an html table that has a hyperlink that pops a window
showing a map of the entry from the that table. The link looks like
this:
<a href="authenticate.asp" onClick="window.open('authenticate.asp?
code=COUNTRYSIDEESTATES','gismap','toolbar=no,menubar=no,location=no,directories=no,status=yes,scrollbars=yes,resizable=yes,copyhistory=no,height=600,width=800');return
false">Map</a>
Now that the department has settled on the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |