在一个页面中点击"td1"后需要刷新页面并给自己传值id=company。但我调试了好久都不能获取所传的值。以下是我的代码,请高手帮忙解决:
html代码:<td onmouseover="this.style.background='url(images/m02.gif)'" onmouseout="this.style.background='url(images/m01.gif)'" onclick="window.location.reload('company.aspx?id=Profile');"></td>vb.net代码:If Not Page.IsPostBack Then
If Trim(Request.QueryString.Get("id")) <> "" Then
Call fillContent("id")
End If
End IfPrivate Sub fillContent(type as String)
html代码:<td onmouseover="this.style.background='url(images/m02.gif)'" onmouseout="this.style.background='url(images/m01.gif)'" onclick="window.location.reload('company.aspx?id=Profile');"></td>vb.net代码:If Not Page.IsPostBack Then
If Trim(Request.QueryString.Get("id")) <> "" Then
Call fillContent("id")
End If
End IfPrivate Sub fillContent(type as String)
解决方案 »
- 现有一难题,不知道怎么解决?
- 重新诚心的问,点button,弹出FileUpload选择文件,然后上传的完整思路
- 求.Net在线制作电子书源代码
- 多行数据导入数据库怎么实现?
- 请教在DataGrid标题中加入图标来实现排序的方法??急
- 找到水晶报表10用户指南与在线帮助,下载后解压不了?那位有解压好的吗,谢谢拉
- WebPart右上角的最大化,最小化,关闭等按钮如何用CSS控制
- 为何不能使用ConfigurationSettings.AppSettings?
- 我的路径是不是写错了
- 请问怎么连接DBF数据?(全部分都奉上)
- 下面的这种TAB效果,在asp.net(C#)中如何实现呢(附图说明)?
- asp.net web.config出现问题
建议将IE设置中的“每次访问此页时检查”勾上。或者用<meta>语句解决,具体的写法我忘了,GOOGLE一下。
另外用document.location = 'company.aspx?id=profile';试试