473,395 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

grid view button field

Hi,

how can I set up the javascript for the button field in the grid view, so
that when the user click the button, a pop up window will be opened, I mean
where could I add the "window.open "url" script for the buttion?

Thanks
Jan 30 '06 #1
2 3607
Jasmine add this
javascript:var
w=window.open('mypopwin.aspx?ID={0}','','width=400 ,height=400');
to where you need it..
Try posting what u are trying to do.
Hope that helps
PAtrick
"Jasmine" <Ja*****@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
Hi,

how can I set up the javascript for the button field in the grid view, so
that when the user click the button, a pop up window will be opened, I mean where could I add the "window.open "url" script for the buttion?

Thanks

Jan 31 '06 #2
Hi,

Thank you very much for reply.

I added the script in the gridview hyperlink colomn for "
DataNavigateUrlFormatString = "javascript: var w= ...", but once I added
javascript here instead of " DataNavigateUrlFormatString
='mypopwin.aspx?ID={0}' ", the hyperlink text lost hyperlink, becomes regular
text, which means I can't click on it, how can I fix it?

Thank you .

"Patrick.O.Ige" wrote:
Jasmine add this
javascript:var
w=window.open('mypopwin.aspx?ID={0}','','width=400 ,height=400');
to where you need it..
Try posting what u are trying to do.
Hope that helps
PAtrick
"Jasmine" <Ja*****@discussions.microsoft.com> wrote in message
news:8F**********************************@microsof t.com...
Hi,

how can I set up the javascript for the button field in the grid view, so
that when the user click the button, a pop up window will be opened, I

mean
where could I add the "window.open "url" script for the buttion?

Thanks


Jan 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
5
by: Adam Sandler | last post by:
Hello, Before I begin, here's some background to the problem. I'm working on a web app which deals with maps. Via a browser, the users can zoom in, zoom out, and pan around a map of their...
1
by: =?Utf-8?B?TG95b2xhIHN0YWxpbg==?= | last post by:
Hi, I am using ASP.Net 2.0 version and Windows'XP OS. I am useing the Grid view control to display the user details along with the paging concept provided by the grid view control. When i...
0
by: hellboss | last post by:
Hi ! Im using Asp.net vs05, rite now iam working with a grid view where i map the column values from a database to the Button Field's DataTextfield, example "Empno" , The problem is that !...
0
by: =?Utf-8?B?VGVjaGVlaw==?= | last post by:
I am building one application is VB.NET. I am using a grid, but facing some problems related to it. 1) I am using .Net 1.1. I have used a datagrid.I have added a template column in the...
2
by: rameshgohil | last post by:
I am using grid view and a button column in it using <itemTemplate> but I am not able to rerive cell value of a selected row from grid view. I have tried the following to methods in Row_command...
1
by: 111111222222 | last post by:
Hi All, As of now I am populating grid view using code behind. I want to place a textbox and a button to search the grid view using TIN which is one column in my grid view. I placed the textbox...
1
by: abhi83 | last post by:
Hi , I have a problem hope someone can help. I have created a dynamic view which contains a gridview. This gridview contains a check box column in the Template Field with the help of ITemplate...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
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,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.