请教一个简单问题,对我来说很难,怎样隐藏客户端控件? 网页 不是 写vb程序要这么写document.all.imgForChange.style.visibility="visible"或者"hidde" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 document.all.imgForChange.style.visibility="visible"或者"hidde"应该是正确的。 <div style="display=<%=变量%>">你的控件</div> if(Session()!="show") { Response.Write("<script>document.all.imgForChange.style.visible='false';</script>"); Response.Write("<script>document.all.imgForChange.style.display='none';</script>"); Response.Write("<script>document.all.imgForChange.style.visibility=''hidden'';</script>");} Response.write改为Page.RegisterStartupScript("right","<script>document.all.imgForChange.style.visible='false';</script>") 按我以前的写法,网页上有错误,没有达到效果,按fly_miss(思念)的改法,网页上没有错误了,错误指的是在最下面的状态条上 可以用<Panel>控件,把控件写在板里面,这样就可以隐藏板来实现隐藏控件的功能了! if(Session()!="show") { Response.Write("<script>document.all.imgForChange.style.visibility='hidden';</script>");....} private void Page_Load(object sender, System.EventArgs e){Page.RegisterStartupScript("_key","<script>function window.onload() {document.all('imgForChange').style.visibility='hidden';}</script>"); } 把每一个操作提交回服务器,使用相应的代码[vb.net]处理即可. ZXYSOSO(我很想飛)的答案可以,其他的都不行,结贴了 VS2003 智能提示的问题 未能使用提供程序 "RsaProtectedConfigurationProvider" 进行解密。急救! 关于分页的问题 看了好多分页的帖子 都未讲到 求助 高分请教网业技巧??? 俩DropDownList联动问题? VS2005在生成网站时,如何给特定的aspx的.cs文件进行编译成DLL文件??? 小弟初学asp.net,大虾们给点学习意见 能不能向Web服务传递图像,文件之类的数据? 类似火车头 根据条件截取代码。。如何实现? [求助]请问用DataReader如何实现分页显示? 怎样才能有效地完成这个功能呢?(初学者问题)
<div style="display=<%=变量%>">你的控件</div>
{ Response.Write("<script>document.all.imgForChange.style.visible='false';</script>"); Response.Write("<script>document.all.imgForChange.style.display='none';</script>"); Response.Write("<script>document.all.imgForChange.style.visibility=''hidden'';</script>");
}
Response.write改为Page.RegisterStartupScript("right","<script>document.all.imgForChange.style.visible='false';</script>")
{ Response.Write("<script>document.all.imgForChange.style.visibility='hidden';</script>");
....
}
{
Page.RegisterStartupScript("_key","<script>function window.onload() {document.all('imgForChange').style.visibility='hidden';}</script>");
}