书没见过 多靠平时积累
最简单的用 Response.write();基本上都可以把javascript写到页面执行
最简单的用 Response.write();基本上都可以把javascript写到页面执行
解决方案 »
- Epson TM-U220 打印机 ESC/POS指令 无法改变中文字符大小(在线等)
- 请教一下,如何从DEV控件GridControl中获取一列的数据?
- 求正则表达式 (大于0% 小于100%)
- 删除语句的问题,这样用为什么会出错呢?
- BUTTON的初始化代码不能自动生成吗?
- 求助一个网页的问题,请大神们进来看看!
- 大神们,如何向已有的程序系统里面添加记录日志?
- 怎么在C#开发里指定 <a> 标签中的 rel 属性值
- asp.net 获取值问题
- 我是个C盲,谁能帮我解释一下到底什么是C#?(回答有分)
- 不能调试,断点提示信息:“No symbols have been loaded for this document.”
- 怎么把一个文本以二进制流的形式全部读出来???
C#做WEB开发时能不能不使用javascript?最好是不用它!
{
if(e.Item.ItemType==ListItemType.Item||e.Item.ItemType==ListItemType.AlternatingItem)
{
if(sCommadType.ToLower() == "add") //定制添加项目信息的datagride的样式
{
//邦定连接字段
string NavigaterUrl = PargetUrl+"?id="+e.Item.Cells[3].Text+"&zyid="+e.Item.Cells[11].Text+"&MainProID="+e.Item.Cells[9].Text+
"&MainProjectName="+Server.UrlEncode(e.Item.Cells[8].Text)+"&MainBulidUnit"+Server.UrlEncode(e.Item.Cells[1].Text);
//定制客户端属性
e.Item.ToolTip = "时间:"+e.Item.Cells[5].Text+"名称:"+e.Item.Cells[6].Text+"内容:"+e.Item.Cells[9].Text;
e.Item.Attributes.Add("onmouseover","this.bgColor='#ffefe5'");
e.Item.Attributes.Add("onmouseout","this.bgColor='#ffffff'");
e.Item.Cells[0].Attributes.Add("onclick","javascript:show1()");
e.Item.Attributes.Add("onclick","javascript:window.open('"+NavigaterUrl+"','MainFrameSetMain'),this.bgColor='#C1D2EE'");
//不换行显示
e.Item.Cells[0].Text = "<nobr> <a href='"+NavigaterUrl+"' target='MainFrameSetMain'><img src='../images/folder.small.png' border=0 height='16px'></img>"+e.Item.Cells[0].Text + "</a></nobr>";
for(int i=1;i<e.Item.Cells.Count;i++)
{
e.Item.Cells[i].Text = "<nobr> "+e.Item.Cells[i].Text+"</nobr>";
}
//添加美感图象
}
}
}