i don't want to do that but there is a problem with my browser so when i click post nothing happen so i think my question not posted :)
mrx100
Posts
-
get row values on datagrid -
get row values on datagridhi all , i use this code to fill datagrid with data from my database
private void btn_by_Click(object sender, EventArgs e)
{DataTable dt = new DataTable(); SqlConnection con = new SqlConnection("Data Source=MS-TOSHIBA;Initial Catalog=dalily system;Integrated Security=True"); SqlCommand cmd = new SqlCommand("select place.name,place.address,place.telephone,place.website,place.email,place.info from place,subcateogry where place.subcat_id=subcateogry.id And subcateogry.name='" + subcat_comboBox.SelectedItem.ToString() + "' ", con); con.Open(); SqlDataReader dr = cmd.ExecuteReader(); dt.Load(dr); dataGridView1.DataSource = dt; dr.Close(); con.Close(); } now i want when i click on row select coordinate_x & coordinate_y from place table where name is in row i clicked on And store coordinate_x & coordinate_y as double thanks in advance
-
embed javascript code in c#thanks ryanb31 for answer but iam already solve this problem using webbrowser control :)
-
rle or huffman c#hi , can anyone help me & give me run length encoding or huffman in c# & thanks
-
send data from google api v3 javascript to c#loyal ginger wrote:
I believe my answer to your previous question (http://www.codeproject.com/Messages/4243389/Re-csharp-windows-form-google-api-v3.aspx[^]) actually contains answer to this question. Check the first half of that answer for more information.
when i use first From JavaScript to C# i have this error in javascript: unable to get property 'report_location' object is null or undefiend see image please : http://www.mediafire.com/?rh2ml2645fajoio[^] do you know why this error appeared i am really appreciate your help thanks in advance
-
send data from google api v3 javascript to c#hi all , i want to sent latitude & longitude on click on map to c# windows form textbox_latitude & textbox_longitude this code send latitude & longitude on click on map but it send it to html input type="text" name="lat" ,input type="text" name="lng" i want to transfer var lat , var lng to c# windows form textbox_latitude & textbox_longitude <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Google Maps JavaScript API v3 Example: Dragable and clickable marker with lat and lang in form</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> var map; function initialize() { var myLatlng = new google.maps.LatLng(30.050077, 31.238594); var myOptions = { zoom: 7, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var infowindow = new google.maps.InfoWindow({ content: "Drag marker to position
or click to place" }); infowindow.open(map); google.maps.event.addListener(map, 'click', function(event) { var clickedLocation = new google.maps.LatLng(event.latLng); var marker = new google.maps.Marker({ position: event.latLng, title:"Marker position", draggable: true, map: map }); infowindow.open(map,marker); map.setCenter(event.latLng); google.maps.event.addListener(map, 'click', function(event) { marker.setMap(null); }); google.maps.event.addListener(marker, 'dragend', function(event) { var point = event.latLng; var lat = point.lat(); var lng = point.lng(); document.getElementById("frmLat").value = lat; document.getElementById("frmLon").value = lng; }); var point = event.latLng; var lat = point.lat(); var lng = point.lng(); document.getElementById("frmLat").value = lat; document.getElementById("frmLon").value = lng; }); } </script> </head> <body onLoad="initialize()">Lat: <input type="text" name="lat" id="frmLat" >
Lng: <input type="text" name="lng -
c# windows form & google api v3when i put this line of code in webbrowser control it works thanks for all for answers :) if (e.Url.Equals(webBrowser1.Url)) { webBrowser1.Document.InvokeScript("initialize", new object[] { latitude, longitude }); }
-
c# windows form & google api v3loyal ginger wrote:
In my example,
wb_map
is theWebBrowser
control on the Form. You need to replace it with theWebBrowser
control in your applicationof course i replace wb_map by webBrowser1 control but i have error i don't know what causes this error object reference not set to an instance of an object ????!!!!!!!!!!!
-
c# windows form & google api v3loyal ginger wrote:
wb_map.Document.InvokeScript( "set_location", new string[]{ "30.050144", "31.240042" } );
thanks for this simple & great answer but when i use this code i have this error object reference not set to an instance of an object
-
c# windows form & google api v3this code i use in html page <%--!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> --%> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } #map_canvas { height: 100% } function initialize() { var myOptions = { center: new google.maps.LatLng(30.04866, 31.23688), zoom: 8, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var myLatlng = new google.maps.LatLng(30.050144, 31.240042); var myOptions = { zoom: 20, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var marker = new google.maps.Marker({ position: myLatlng, map: map, title: "Hello World!" }); }
& this code i have used in c# form StringBuilder queryAddress = new StringBuilder(); queryAddress.Append("file:///C:/Users/mrx1000/documents/visual studio 2010/Projects/testgoogleapi3/testgoogleapi/HTMLPage1.htm"); webBrowser1.Navigate(queryAddress.ToString()); this image for my form in running http://www.mediafire.com/?rqckg28xb4rlahb as you see i didn't enter anything in latitude text box or longitude text box i find away but it's very difficult in this example & when i use it gives me errors // webBrowser1.DocumentText = //"" + //"function test(message) { alert(message); }" + //"" + //""; what i should i do now?
-
c# windows form & google api v3var myLatlng = new google.maps.LatLng(30.050144, 31.240042); this javascript code works but, i want to replace the static values of latitude (30.050144) & longitude (31.240042) in javascript code with any value entered by user in latitude textbox & longitude textbox
-
c# windows form & google api v3hi all, i use c# windows form application & i want to change latitude & longitude in google api v3 JavaScript code var myLatlng = new google.maps.LatLng(30.050144, 31.240042); according to C# form latitude text box & longitude text box entered value I can display the page in webbrowser control but it's static how can i do this??? thanks in advance
-
embed javascript code in c#i want to use google api v3 javascript code i want this javascript code : var myLatlng = new google.maps.LatLng(30.050144, 31.240042); take latitude & longitude from my windows form application i can show page in webbrowser control but it's static
-
embed javascript code in c#please i want to embed javascript code in c# windows form application & i use web browser control to display page what should i do & thanks
-
embed javascript code in c#please i want to embed javascript code in c# windows form application what should i do & thanks
-
send data from c# to htmlhelp,please ????????
-
send data from c# to htmlhi , i have html webpage and contains java script code i want to send data from c# windows form which already have webbrowser control to display the page to html page to change values of java script variables & i can display the html page in webbrowser control but it's static values so i want to know how to transfer data between windows form & html page
-
select in star schemadon't download image just click on preview on medifie
-
select in star schemai have used union select mall.name from mall,places where mall.place_id=places.id UNION select hospital.name from hospital,places where hospital.place_id=places.id UNION select clinic.name from clinic,places where clinic.place_id=places.id UNION select shop.name from shop,places where shop.place_id=places.id but it's very long i should select name from 25 table can you use nested query i think it will solve the problem
-
select in star schemahi ,i want to select name from all around tables & i have near 25 tables such as : select name from pharmacy , hospital , theater ,etc... all of them is linked with place table by id this picture show sample of tables : http://www.mediafire.com/?20rsb4q25kyj14w[^]