如何点击下一个零件编号? [英] how enable to click next part number ?

查看:77
本文介绍了如何点击下一个零件编号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你可以看到我的图像使用这个链接:http://tinypic.com/view.php?pic = 2dkwxhs& s = 5#。Us4u1vQW0Xt

你好,



点击我显示图像和部件号1,2,3等等。你可以看到该图像保存上面的图像。一切正常。但如果我点击一个部件号,我必须关闭该弹出窗口以点击下一个部件号。但我需要当你点击下一个零件编号时,应该关闭,最近点击的零件窗口应该打开。



这里我放了编码。 />


我,aspx.cs页面:

you can see my image using this link : http://tinypic.com/view.php?pic=2dkwxhs&s=5#.Us4u1vQW0Xt
hello,

while clicking i showing image and parts number 1,2,3 and so forth. you can see that image as saving the above image. everything works fine. but if i click one part number , i have to close that pop up window to click next part number. but i need when you click next part number the preveous(which is poped up) should close and recently clicked part window should open.

here i put coding.

I, aspx.cs page:

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()+")";



II,aspx页。




II, aspx page.

<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>





需要帮助。



Help needed.

推荐答案

find( mypartid); // 此零件编号1,2,3,...来
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 id 图像 关闭 按钮 'X'

DropShadow = < span class =code-keyword> true CancelControlID = imcl >
< / ajaxtoolkit:ModalPopupExtender >

< ajaxtoolkit:RoundedCornersExtender 角落 = 所有 半径 = 6 runat = server ID = pop_round TargetControlID = Pan1 > < / ajaxtoolkit:RoundedCornersExtender >

< asp:Panel ID = Pan1 宽度 = 300 runat = server >

< 样式 = width:100%;高度:47px;颜色:#FFFFFF; >

< tr > < td >

< asp:ImageButton ID = imcl runat = server ImageUrl = 〜/ Im / clo1.gif 宽度 =< /秒pan> 28 高度 = 25 / > //此图像中显示的关闭图像'X'。

< / td > < / tr > < / table >

< table > < tr >
< td > ; < asp:标签 ID = labf1 <跨越ss =code-attribute>
runat = 服务器 文字 = 部件号 字体名称 = Sans-Serif 字体大小 = 12px < span class =code-keyword>> < / asp:Label < span class =code-keyword>> :
< asp:Label ID = lblf12 runat = server 字体名称 = Sans-Serif 字体大小 = 12px > ; < / asp:Label > ; < / td > < / tr > < / table >

< / asp:Panel >
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>





需要帮助。



Help needed.


这篇关于如何点击下一个零件编号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆