zoukankan      html  css  js  c++  java
  • 郁闷,母版页为什么会这样?怎么在使用了母版页的情况下使用js?大家帮忙

    1 楼lasker()回复于 2006-09-03 09:12:09 得分 0

    我也遇到过这问题   解决方案是     允许这个文件之后查看源文件!  
       
      你会发现button的名称变了     你要用那个名称才行!!  
       
      我的建议是不要用模版       直接把需要重用的东西写成控件更好一些       些成控件还可以做到局部缓存Top

    2 楼lw7210(风中邪神)回复于 2006-09-03 10:19:01 得分 0

    可用两种方法:第一种使用FindControl,例如:Label1.Text   =(Master.FindControl("Button1")   as   button).Text,第二种使用MasterType指令获取母版页控件的引用.Top

    3 楼lw7210(风中邪神)回复于 2006-09-03 10:20:25 得分 0

    Label1.Text   =(Master.FindControl("Button1")   as   button).Text要放在Page_LoadComplete事件中.为Top

    4 楼jianyi0115(随意)回复于 2006-09-03 11:00:46 得分 0

    document.all.<%   =   button1.ClientID   %>.value=="tt";

  • 相关阅读:
    Car HDU
    Defeat the Enemy UVALive
    Alice and Bob HDU
    Gone Fishing POJ
    Radar Installation POJ
    Supermarket POJ
    Moo Volume POJ
    Text Document Analysis CodeForces
    checkbox全选与反选

  • 原文地址:https://www.cnblogs.com/hateyoucode/p/1360657.html
Copyright © 2011-2022 走看看