本文介绍了网格视图拖动面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有图像的网格,并具有下载链接按钮
如果会话不可用,我想在用户单击下载链接时显示登录的拖动面板

请告诉我解决方案,因为我无法通过javascript
获取网格的控件ID.
在此先感谢

I have a grid with image and download link button
I want to show a drag panel of login when user clicks on download link if session is not available

please tell me solution, because I am not able to get control''s id of grid by javascript

thanks in advance

推荐答案

linkbutton.attributes.Add("onclick","shadowbox.open(
{content:'../myLoginPage.aspx"', player:'iframe',  width:500, height:500}

);");


如果会话不可用.

您必须在gridview的onRowDataBound事件中执行此操作


在页面的页眉部分,您必须初始化Shadowbox:


if the session is not available.

You have to do that in the onRowDataBound Event of the gridview


In header section of the Page, you have to initialize the Shadowbox:



}


这篇关于网格视图拖动面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-03 23:30
查看更多