Datatable dt = (DataTable)Session["parts"]; CircleHotSpot h = new CircleHotSpot(); h.X = Convert.ToInt32(dt.Rows[i]["xpos"]); h.Y = Convert.ToInt32(dt.Rows[i]["ypos"]); h.X = convertxypos(h.X); h.Y = convertxypos(h.Y); h.Radius = 10; h.NavigateUrl="javascript:funname("+dt.Rows.[i]["partnumber"].ToString()+")";
<script type="txt/Javascript"> function funname(partno){ document.getElementById('<%=lblf12.ClientID%>').innerHTML = partno; var mod = $find("mypartid"); // this part number 1,2,3,...comes if (mod != null) { document.getElementById('<%=Pan1.ClientID%>').style.visibility = "visible"; mod.set_X(gx + 5); mod.set_Y(gy); mod.show(); } } </script> <ajaxtoolkit:ModalPopupExtender ID="Modpop1" BehaviorID="mypartid" runat="server" TargetControlID="imcl" PopupControlID="Pan1" CacheDynamicResults="true" // imcl is the id of image close button 'X' DropShadow="true" CancelControlID="imcl"> </ajaxtoolkit:ModalPopupExtender> <ajaxtoolkit:RoundedCornersExtender Corners="All" Radius="6" runat="server" ID="pop_round" TargetControlID="Pan1" ></ajaxtoolkit:RoundedCornersExtender> <asp:Panel ID="Pan1" Width="300" runat="server" > <table style=" width:100%; height:47px; color: #FFFFFF;"> <tr><td> <asp:ImageButton ID="imcl" runat="server" ImageUrl="~/Im/clo1.gif" Width="28" Height="25" /> //this close image 'X' which is showing in image. </td></tr></table> <table><tr> <td><asp:Label ID="labf1" runat="server" Text="part number" Font-Names="Sans-Serif" Font-Size="12px"></asp:Label> : <asp:Label ID="lblf12" runat="server" Font-Names="Sans-Serif" Font-Size="12px" "></asp:Label></td></tr></table> </asp:Panel>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)