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

AJAX Gridview Modal popup

83
Hii experts,

Im tring to display a panel as a modal popup when i click a link button which is placed in the footer template of my Grid view.But its not getting compiled and the error its showing is

"The TargetControlID of 'mpeAddParticipant' is not valid. A control with ID 'ParticipantMeetingID' could not be found"'mpeAddParticipant' is the id of the modal pop up extender and 'ParticipantMeetingID' is the id of the link button which ic placed in the footer template of the grid view.

i tried of giving any other control which is out side of grid view thn its working fine...

Plz suggest me the solution...

Thanks in advance..

Rgds,
BTR>
Jan 7 '09 #1
2 7231
Frinavale
9,735 Expert Mod 8TB
I think this is a limitation on how the Modal Popup control works.
The control can only work with controls that are on the page, not within another control.
Jan 9 '09 #2
liawcv
33
1. Put the ModalPopupExtender in the cell together with your LinkButton.

OR

2. Dynamically assign TargetControlID on Page_Load. E.g.
Expand|Select|Wrap|Line Numbers
  1. if (!Page.IsPostBack)
  2. {
  3.    ModalPopupExtender1.TargetControlID =
  4.       GridView1.FooterRow.FindControl("LinkButton1").UniqueID;
  5. }
  6.  
Jan 9 '09 #3

Sign in to post your reply or Sign up for a free account.

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...
3
by: SE.Computerguy | last post by:
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...
1
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it...
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...
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# )
6
by: SAL | last post by:
hello, I'm using a radiobuttonlist in an updatepanel in an item template in a Gridview control. I'm populating the radiobuttonlist in the RowDataBound event. I have the control toolkit registered...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...

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.