Aspx front Page Control

1.  How to control <a pref="www.google.co.jp" target="_blank"> in backend asp.net source

     (1)  <a pref=<%= Parameter %> target="_blank"> 

           in aspx.cs file,  course code:

           Parameter = "www.google.co.jp"

     

     (2)  <a pref="www.google.co.jp" target="_blank" onclick=<%= Parameter %>> 

           in aspx.cs file,  course code:

           Parameter = "  ' return false;' ";  or  Parameter = "  ' return true;' "; 

     

     (3)  <a class=<%= Parameter %> pref="www.google.co.jp" target="_blank" > 

           in aspx.cs file,  course code:

           Parameter = " enable" ;  or  Parameter = " disable"; 

           in css file 

           .list a.disable

    {

                    pointer-events:none;            /*link event won't work when click*/

                    cursor:default;                      /*cursor mark won't change when move to the href link*/

                    text-decoration:none;           /*no underline*/

                    color:#000000;                     /*no color*/

    }

猜你喜欢

转载自www.cnblogs.com/tomclock/p/13399743.html