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.

c# - Anyone know how to put a .net control in a google maps InfoWindow? -


i looking @ basic google maps stuff , found following code on 1 of google's intro pages.

i used poc , created .net project concept. have markers , infowindows being populated database pretty cool.

my problem want add infowindows in slick way (not map, save db). instead of having .net controls outside of map window want able add info map directly. if user clicks in map able add marker , infowindow asp controls in window (textbox , button).

anyone know how this?

<html>     <head>         <title>             title here         </title>         <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>         <script type="text/javascript">             function mapparamsinitialize()              {                 var latlng = new google.maps.latlng(-34.397, 150.644);                 var myoptions = {                     zoom: 8,                     center: latlng,                     maptypeid: google.maps.maptypeid.satellite                 };                  var map = new google.maps.map(document.getelementbyid("map"), myoptions);                 var contentstring = '<div id="content"> here text display in infowindow, or \'bubble\' </div>';                  var infowindow = new google.maps.infowindow({ content: contentstring });                  var marker = new google.maps.marker({ position: latlng, map: map, title: "custom window here" });                  google.maps.event.addlistener(marker, 'click', function () { infowindow.open(map, marker); });             }         </script>     </head>      <body onload="mapparamsinitialize()">         <div id="map" style="width:100%; height:100%"></div>     </body> 

create div tag , set z-index dynamically or if possible try use asp.net pop control can call client side. had similar requirement , able manage devexpress aspxpopup control. popup control had iframe within load information database.


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 -