473,581 Members | 2,789 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2167
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.goog legroups.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.comschri eb im Newsbeitrag
news:11******** **************@ 50g2000hsm.goog legroups.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.Vis ible = 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...@aspalli ance.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.goog legroups.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
10552
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 is selected, the detailsview updates (in a seperate updatepanel - no full refresh) Now I've added the modalpopupextender and the result is that...
1
2936
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 disappears/becomes invisible... in general, any postback fired from within the modal popup makes the modal popup disappear.
0
1669
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 button; these two fields are for Member Number and for Social Security Number. I have written a Javascript function to handle that situation. A new...
16
11085
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 rows... but i want to implement the same as when i request for particular row at that time modal popup should be load.... because it's take so much...
10
4320
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 if user clicks on that link button then the modal popup extender will be displayed... all thing is working well but when modal popup extender displays...
3
1954
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 my mysql database using ajax since the server side code will have already been executed, how would i go about doing this, i have read on the...
4
2316
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
3869
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 pages, and we don't want to load all that content until it's requested. So, what we want to do is place an IFRAME inside an UpdatePanel and, in...
2
1810
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 is part of still works, but the click events (postback) of the other popups is stopped. So, I have two data entry forms I want to validate, each...
0
7882
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, 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...
0
7808
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...
0
8157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8181
tracyyun
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...
0
6564
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5366
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...
0
3809
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3835
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2309
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 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.