Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

ajax - Automatic embeded script -


i have free website on 000webhost. problem automatically puts analytics code in files. not show everywhere causes me problem when use ajax calls , display returned data in div, displays data particular code. there type of method avoid or make code invisible. when used google webmaster tools, when crawls robots.txt file code shown crawler on file text file , returns error. please help! here link website: portfolio

your hosting provider seems inject following line @ end of requests:

<!-- www.000webhost.com analytics code --> <script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script> <noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript> <!-- end of analytics code --> 

the injection point of code @ end of request. when checked, meant outside html tag (and broke html syntax validity.

i see 2 possible solutions:

  1. work issue out them.
  2. find work-around (your provider might injecting content on when detect certaint type of requests. if find out inject content on requests urls ending in .html (for example), try changing destination of ajax call towards url)

Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -