asp.net - jquery-ui datpicker image not showing when deployed to server -


my jquery datepicker image being displayed correctly when run on local when not being displayed when run on server . // apply mask , attach datepickers

 $("input.masked-input-date")  .not("[readonly='readonly']")   .mask("99/99/9999", { placeholder: "_" })    .datepicker({   buttonimage: "../static/images/calendar.png",   buttonimageonly: true,   showon: "both",   showbuttonpanel: true,   changemonth: true,   changeyear: true             }); 

my folder structure root/static/images/calender.png .but when deployed in server not picked http://xxxxx.xxx.org/static/images/calendar.png. instead should http://xxxxx.xx.org/jost/static/images/calendar.png.i have tried believing there problem in loading image . pointers please?

try using asp.net correct path file. notice made path root relative.

buttonimage: '<%# server.mappath("~/jost/static/images/calendar.png") %>', 

Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -