asp.net - How to get a c# variable (string) value in the .aspx page -


so code.

public partial class sitemaster : system.web.ui.masterpage     {          public string feedbackpostback = "false";          protected void page_load(object sender, eventargs e)         {          }     } } 

how access feebackpostback from:

<script type="text/javascript">     $(function () {         $('.slide-out-div').tabslideout({             tabhandle: '.handle',                     //class of element become tab             pathtotabimage: 'images/feedback.gif',    //path image tab //optionally can set using css             imageheight: '122px',                     //height of tab image           //optionally can set using css             imagewidth: '40px',                       //width of tab image            //optionally can set using css             tablocation: 'right',                     //side of screen tab lives, top, right, bottom, or left             speed: 300,                               //speed of animation             action: 'click',                          //options: 'click' or 'hover', action trigger animation             toppos: '150px',                          //position top/ use if tablocation left or right             leftpos: '20px',                          //position left/ use if tablocation bottom or top             fixedposition: false,                      //options: true makes stick(fixed position) on scroll             onloadslideout: <%= this.feebackpostback %>         });      }); </script> 

currently trying <%= this.feebackpostback %> , returns error: cs1061: 'asp.site_master' not contain definition 'feebackpostback' , no extension method 'feebackpostback' accepting first argument of type 'asp.site_master' found (are missing using directive or assembly reference?)

you misspelled feedbackpostback—you forgot d.


Comments