Dim myTCell As TableCell
dim strID as string
myTCell = e.Item.Cells(8)
Dim myDeleteButton As LinkButton
myDeleteButton = myTCell .Controls(0)
strID = dtblCollect.DefaultView.Item(e.Item.DataSetIndex).Item("ID")
myDeleteButton = myTCell .Controls(0)
strURL = "xxx.aspx?id=" strID myDeleteButton.Attributes.Add("onclick", "return window.open('" & strURL & "','','left=0,top=0,width=800,height=600');")
dim strID as string
myTCell = e.Item.Cells(8)
Dim myDeleteButton As LinkButton
myDeleteButton = myTCell .Controls(0)
strID = dtblCollect.DefaultView.Item(e.Item.DataSetIndex).Item("ID")
myDeleteButton = myTCell .Controls(0)
strURL = "xxx.aspx?id=" strID myDeleteButton.Attributes.Add("onclick", "return window.open('" & strURL & "','','left=0,top=0,width=800,height=600');")
解决方案 »
- js中用encodeURIComponent编码过的数据 在后台解码
- ASP.NET 有个问题,过不去,大师帮忙下
- 我装了Adobe的Reader 8.0,我现在想使用它提供的AxtiveX控件在html页面显示pdf文件,是哪个控件?怎么使用?我用的是vs2008。
- 方法没有采用 0 个参数的重载
- 求助!急!急!急!急!
- 关于向数据库输入数据时输入数据类型与数据库数据类型匹配的问题
- 关于论坛的问题
- 为什么DropDownList绑定不上数据?高手们看看!
- datagrid结合checkbox批量删除XML中的数据
- 是否大家也遇到过这种情况?
- 我怎么搞不懂ASP.net等网页数据库编程什么入门?原来我只会VB的编程。参与给分
- 窗口显示的大小如何控制???
设置datagrid的itemcommand事件
if (e.Item.Cells[0].Text!="")
{
int intSystemID=Convert.ToInt16(e.Item.Cells[0].Text);
Session["WorkDetailModifySystemID"]=intSystemID;
Session["ComeFrom"]="WorkDetailList";
Response.Redirect("http://wj-1057/whjl/WorkDetail.aspx");
}