Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 1 page, and on that I have 1 gridview.
In the gridview there is 1 linkbutton and on the click of that I want to show that panel.

In modalpopupextender I gave the id of that panel in popupcontrolid.
But if I'm giving the id of that linkbutton which is in gridview in targetcontrolid it's showing error that its not searching this id.

Help me please.
Posted
Updated 20-Oct-11 21:42pm
v2
Comments
uspatel 21-Oct-11 3:16am    
share your design code.
pallavi ajin 21-Oct-11 3:35am    
sir i want to show panel on the click of linkbutton, that linkbutton is used in the gridview.
pallavi ajin 21-Oct-11 3:36am    
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MakePayment.aspx.cs" Inherits="Salary_MakePayment" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
.modalBackground
{
background-color: Gray;
filter: alpha(opacity=70);
opacity: 0.7;
cursor: wait;
}
.modalPopup
{
background-color: #EEEEEE;
border-width: 3px;
border-style: solid;
border-color: Gray;
font-family: Verdana;
font-size: medium;
padding: 3px;
width: 595px;
}
.parentDisable
{
z-index: 999;
width: 100%;
height: 100%;
display: none;
position: absolute;
top: 0;
left: 0;
background-color: #000;
color: #aaa;
opacity: .9;
filter: alpha(opacity=50);
}
#popup
{
width: 300;
height: 300;
position: relative;
color: #000;
background-color: #fff;
top: 25%;
background-image: url(catbg-1.gif);
}
</style>

<script type="text/javascript" language="javascript">
function pop(div) {
document.getElementById(div).style.display = 'block';
//return false
}

function hide(div) {
document.getElementById(div).style.display = 'none';
//return true
}
</script>



<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">

<table>
<tr>
<td>
From Date
</td>
<td>
<asp:TextBox ID="txtFromDate" runat="server">

<asp:CalendarExtender ID="txtFromDate_CalendarExtender" runat="server"
Enabled="True" TargetControlID="txtFromDate">


</td>
<td>
To Date
</td>
<td>
<asp:TextBox ID="txtToDate" runat="server">
<asp:CalendarExtender ID="txtToDate_CalendarExtender" runat="server"
Enabled="True" TargetControlID="txtToDate">

</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
<td>
</td>
<td>
<asp:Button ID="btnSearch" runat="server" Text="Search"
onclick="btnSearch_Click"/>
</td>
</tr>
</table>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<asp:GridView ID="gv_Result" runat="server" AutoGenerateColumns="False">

<columns>
<asp:TemplateField HeaderText="Employee Code">
<itemtemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("emp_code") %>'>

<edititemtemplate>
<asp:Tex

1 solution

Modal Popup Extender Basics[^] from the Archive may help.
 
Share this answer
 
Comments
pallavi ajin 21-Oct-11 3:54am    
its not the proper solution i knw how to use it but plz read my prob cmpltly
Dalek Dave 21-Oct-11 4:02am    
Knw?
plz?
cmpltly?

I had to edit your question to make it legible.
Stop using txtspk.
And look at your own code.
That is why I directed you to the basic page. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900