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.

asp.net - geocoder.getLatLng() method not showing all the addresses on google map? -


i have latitude , longitude values in database columns(more 20), grabing values , passing them geocoder.getlatlng() method display them markers. method not pretty fast, kept method inside loop run through values database, not addresses showing everytime refresh page missing addresses.here code, please give me suggestions , tell how set time out.

        script += " var location = \"\"+ latitude +\", \"+ longitude +\"\";\n";          script += " geocoder.getlatlng( \n";         script += " location,function(point) \n";         script += " {if (point) { \n";         //script += "       alert(point);\n";         script += "     var icon = new gicon(baseicon);\n";         script += "     icon.image = \"_gfx/gmap/marker\" + (iconnum) + \".png\";\n";         script += "     var locimage = new image();\n";         script += "     locimage.src =\"modules/showimage.aspx?imageid=\"+ imageid +\"\";\n";         script += "     var marker = new gmarker(point, icon);\n";         script += "     map.addoverlay(marker); \n";         script += "     gevent.addlistener(marker, \"click\", function() {\n";         script += "         marker.openinfowindowhtml(\"<div class='facility_map'><a href='\" +detaillink[index]+ \"' class='facility_name'>\" + name + \"</a><br />\" +((imageid!= \"0\")?\"<img src='\" +locimage.src + \"' class='markerimg' width='170' height='180' />\":\"\")+ \"<br /><a href=\"+ link[index] +\" target='_blank'>\" + displayaddress + \"</a><br />\" +((phonenum != \"\")?\"<b>phone:</b>\"+phonenum+\"\":\"\")+ \"<br />\" + allamenities + \"<b>capacity:</b>\" + capacities + \"</div>\");\n";         script += " })\n";         script += "     return marker;\n";         script += " }\n"; 


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 -