473,386 Members | 1,674 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,386 software developers and data experts.

AJAX Modal Popup

I am trying to use the AJAX modal popup on a click event from a
gridview. Any ideas on implementing this? The AJAX control is looking
for a TargetControlID that will trigger the popup but the button field
in the grid does not have an ID.

Doug

Sep 10 '07 #1
3 2153
Hi,

why don't you use Button control directly on grid (instead of ButtonField)?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net

"SE.Computerguy" <SE************@gmail.comwrote in message
news:11**********************@50g2000hsm.googlegro ups.com...
>I am trying to use the AJAX modal popup on a click event from a
gridview. Any ideas on implementing this? The AJAX control is looking
for a TargetControlID that will trigger the popup but the button field
in the grid does not have an ID.

Doug

Sep 10 '07 #2
"SE.Computerguy" <SE************@gmail.comschrieb im Newsbeitrag
news:11**********************@50g2000hsm.googlegro ups.com...
>I am trying to use the AJAX modal popup on a click event from a
gridview. Any ideas on implementing this? The AJAX control is looking
for a TargetControlID that will trigger the popup but the button field
in the grid does not have an ID.
Hi,

you can use an invisible button for the TargetControlID. Just place a button
on your form and set "display: none;" in the style of the button (or assign
a CSS class that hides it). After that you can call the "show()" method of
the modal popup from your event.

Note that you cannot use "Button.Visible = false" because that would not
render the button to the output HTML!

Ciao,
Ralf
Sep 11 '07 #3
On Sep 10, 3:09 pm, "Teemu Keiski" <jot...@aspalliance.comwrote:
Hi,

why don't you use Button control directly on grid (instead of ButtonField)?

--
Teemu Keiski
AspInsider, ASP.NET MVPhttp://blogs.aspadvice.com/jotekehttp://teemukeiski.net

"SE.Computerguy" <SE.computer...@gmail.comwrote in message

news:11**********************@50g2000hsm.googlegro ups.com...
I am trying to use the AJAX modal popup on a click event from a
gridview. Any ideas on implementing this? The AJAX control is looking
for a TargetControlID that will trigger the popup but the button field
in the grid does not have an ID.
Doug- Hide quoted text -

- Show quoted text -
I need reference to the row of data that is being selected. If I don't
use the select button I don't get it.

Sep 11 '07 #4

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

Similar topics

3
by: Not Me | last post by:
Hey, I'm using the MS AJAX libraries to achieve a modal popup window. Prior to using the toolkit control, I have a gridview and detailsview objects visible on the page.. when the gridview row...
1
by: Samuel Rhodes | last post by:
hi i am using a ajax modal popup to allow the user to search an item and select the required item from the list. whenever i try to search the item, which causes a post back....the modal popup...
0
by: =?Utf-8?B?QWxCcnVBbg==?= | last post by:
I have a situation in which I need to check for data in either of two fields and display an alert if neither field contains data or if both fields contain data when the user clicks on a View...
16
malav123
by: malav123 | last post by:
Hi, I am using Ajax's modal popup extender to display the information about all the rows of gridview but the problem is when page loads, modal popup extender loads for all the...
10
malav123
by: malav123 | last post by:
Hi, In my master page i have right pannel, in which i am using the user control and collapsiblePanelExtender and in that right panel there is one link button named "Event", so...
3
by: jarremw | last post by:
hello all, what i have is a modal popup control extender, i have an ajax script that saves the value of the two textboxes that are in the popup, what i am needing is a way to insert those values into...
4
by: fran_j_diaz | last post by:
Hi, I have a page with an Ajax modal popup. I would like to know when my Modal popup is opened, my page still able to modify. Is it possible ? (I use Visual Studio 2005, c# )
3
by: Mike Hofer | last post by:
Okay, here's the situation: we want to be able to display ASPX pages in an UpdatePanel. The reasons for this are performance related. The site in development uses *lots* of modal popups from some...
2
by: Alec MacLean | last post by:
Hi, I have a page using AJAX. The page has three modal popups that work fine when I don't have field validators in place. As soon as I put a validator in place, the popup "form" the validator...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.