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

Modal Popup Extender Problem

malav123
217 100+
Hi,
I am using ajax's model popup extender and gridview with last column of image, My requirement is the model popup opens when i clicks on the image of particular row, but when i gives "TargetId" of model popup as image id, i am getting error that imgid is not accessible... How to Access model popup by clicking on image of gridview ? and how to access the gridview's control...?
Apr 4 '08 #1
7 2633
acoder
16,027 Expert Mod 8TB
This looks suspiciously like a .NET problem, but even so, no-one can help without some code.

Also, do you mean "modal" as opposed to "model"?
Apr 5 '08 #2
malav123
217 100+
This looks suspiciously like a .NET problem, but even so, no-one can help without some code.

Also, do you mean "modal" as opposed to "model"?

Yes it is Modal Popup Extender... And it is ajaxControllToolkit's control... If i simply want to open modal popup from linkbutton then it works but at the same time if i put the same link button in the gridview then it says linkbutton is not accessible... so tell me which code you want to see then i will post...
Apr 7 '08 #3
acoder
16,027 Expert Mod 8TB
Post the code that causes the problem (the link button in the gridview), but I can only help if you post HTML/JavaScript code. If you're going to post .NET code, I'll move this thread to the .NET forum.
Apr 7 '08 #4
malav123
217 100+
Post the code that causes the problem (the link button in the gridview), but I can only help if you post HTML/JavaScript code. If you're going to post .NET code, I'll move this thread to the .NET forum.


My code is given below which contains the "image tag" in gridview...
Expand|Select|Wrap|Line Numbers
  1.  
  2. <asp:GridView ID="grdOfficerLead" runat="Server" AllowSorting="true" AutoGenerateColumns="false"
  3.             HeaderStyle-CssClass="themeGridHeader" RowStyle-CssClass="gridborder" Width="100%"
  4.              GridLines="Horizontal" HeaderStyle-ForeColor="white" EmptyDataText="No Data Found">
  5.             <Columns>
  6.                 <asp:BoundField DataField="id" Visible="false" />
  7.                 <asp:BoundField DataField="insertDate" HeaderText="Created" SortExpression="insertDate" />
  8.                 <asp:BoundField DataField="FName" HeaderText="FName"  SortExpression="FName" />
  9.                 <asp:BoundField DataField="LName" HeaderText="LName" SortExpression="LName" />
  10.                 <asp:BoundField DataField="WorkPhone" HeaderText="WorkPhone" />
  11.                 <asp:BoundField DataField="PurchasePrice" HeaderText="Amount" />
  12.                 <asp:BoundField DataField="MortgageType" HeaderText="Purpose" SortExpression="MortgageType" />
  13.                 <asp:BoundField DataField="CbStatus" HeaderText="Staus" SortExpression="CbStatus" />
  14.                 <asp:TemplateField HeaderText="Action">
  15.                     <ItemTemplate>
  16.                         <asp:LinkButton ID="lnkOfficerLead"   Text="Details" runat="server" CommandArgument='<%#Eval("id") %>' OnClick="ShowOfficerLead"></asp:LinkButton>
  17.                     </ItemTemplate>
  18.                 </asp:TemplateField>
  19.  
  20.                 <asp:TemplateField>
  21.                     <ItemTemplate>
  22.                      <div> <asp:Image id="imgGrid" runat="Server" ImageUrl="../../images/7.jpg" /></div></ItemTemplate>
  23.                 </asp:TemplateField>
  24.  
  25.        </Columns>
  26.             </asp:GridView>
  27.  
Apr 7 '08 #5
malav123
217 100+
Post the code that causes the problem (the link button in the gridview), but I can only help if you post HTML/JavaScript code. If you're going to post .NET code, I'll move this thread to the .NET forum.


And my ajax's modal popup i am using is given below,
Expand|Select|Wrap|Line Numbers
  1. <cc1:ModalPopupExtender ID="ModalPopupExtender" runat="server"  TargetControlID="imgGrid" PopupControlID="Panel1" BackgroundCssClass="modalBackground" 
  2. OkControlID="OkButton" DropShadow="true" CancelControlID="CancelButton"   />
  3.  
Apr 7 '08 #6
acoder
16,027 Expert Mod 8TB
You'll have better luck in the .NET forum. Moved to .NET.

Moderator.
Apr 7 '08 #7
malav123
217 100+
You'll have better luck in the .NET forum. Moved to .NET.

Moderator.
Thanks for Response....
And i got solution now that i have put modal popup also in the gridview that's why the gridview's controlls are accessible....

Thanks again....
Apr 7 '08 #8

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

Similar topics

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...
1
by: Orit | last post by:
I have a question regarding usage of AJAX Control Toolkit's Popup Control Extender . I am using the Popup Control Extender to display a popup dialog ( panel ) from my asp.net page on click of a...
4
by: Arnab das | last post by:
Below is the javascript code i am using function confirmDelete() { var returnValue = window.confirm("Deleting the current page. Continue?"); return returnValue; // var...
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...
1
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...
24
malav123
by: malav123 | last post by:
Hi, I am using ajax toolkit's modal popup extender which contains few text boxes and two buttons on it... i want to put validation on some of text boxes but my problem is after...
5
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
Hi all Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net, visual studio 2008): I have created a user control (e-mail enquiry form) which is designed to accept text...
0
by: wojski696969 | last post by:
Hi.. I'm using ASP.NET AJAX Control Toolkit. I've got collapsible extender (CE) putted inside of modal popup extender (MPE), and there is a problem if i scroll the page when collapsible area is...
3
by: Andrea Gasperi | last post by:
Hi there not sure if this is the right place but i'm proud to use for the first time the "Managed Newsgroups" feature of my brand new MSDN subscription :-) So here is the problem. I've...
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...

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.