Click here to Skip to main content
15,921,028 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: can any one covert this vb code to C# Pin
santoshkumarB20-Aug-07 1:23
santoshkumarB20-Aug-07 1:23 
AnswerRe: can any one covert this vb code to C# Pin
Guffa20-Aug-07 5:25
Guffa20-Aug-07 5:25 
AnswerRe: can any one covert this vb code to C# Pin
Sathesh Sakthivel20-Aug-07 3:44
Sathesh Sakthivel20-Aug-07 3:44 
AnswerRe: can any one covert this vb code to C# Pin
Paddy Boyd20-Aug-07 3:56
Paddy Boyd20-Aug-07 3:56 
AnswerRe: can any one covert this vb code to C# Pin
Michael Sync20-Aug-07 4:04
Michael Sync20-Aug-07 4:04 
AnswerRe: can any one covert this vb code to C# Pin
Dave Doknjas20-Aug-07 15:11
Dave Doknjas20-Aug-07 15:11 
AnswerRe: can any one covert this vb code to C# Pin
duo!@#26-Aug-07 17:57
duo!@#26-Aug-07 17:57 
QuestionUsing Response.Write to read javascript problem Pin
beish120-Aug-07 0:18
beish120-Aug-07 0:18 
I am using Response.write to use google maps javascript to put markers on a map, reading latitude and longitude from a SQL Server database. I read the values from the database creating values Lat and Lng and use these in the javascript. However the values of Lat and Lng are not recognised in the javascript. If I hard-code values eg GLatLng(50.953,-4.123) and 1 for userID, a marker is set OK. Can anyone help? I've tried using ClientScript.RegisterClientScriptBlock but got nothing.

<% Dim conn As SqlConnection
conn = New SqlConnection("Data Source=beish2;Initial Catalog=HA4;Integrated Security=True")
conn.Open()
Dim sqlComm As New SqlCommand("SELECT PlaceID,PlaceName, PlaceLat, PlaceLng FROM Places ORDER BY PlaceName", conn)
Dim r As SqlDataReader = sqlComm.ExecuteReader()
While r.Read()
Dim username As String = CStr(r("PlaceName"))
Dim userID As Integer = CInt(r("PlaceID"))
Dim Lat As Double = CDbl(r("PlaceLat"))
Dim Lng As Double = CDbl(r("PlaceLng"))
Response.Write("" & vbCrLf)
Response.Write("//<![CDATA[" & vbCrLf)
Response.Write("map.addControl(new GScaleControl());" & vbCrLf)

Response.Write("var point = new GLatLng(Lat,Lng);" & vbCrLf)
Response.Write("var marker = createMarker(point, userID);" & vbCrLf)
Response.Write("map.addOverlay(marker);" & vbCrLf)
Response.Write("//]]>" & vbCrLf)
Response.Write("" & vbCrLf)
Response.Write(userID)

End While
r.Close()%>
AnswerRe: Using Response.Write to read javascript problem Pin
Guffa20-Aug-07 1:00
Guffa20-Aug-07 1:00 
GeneralRe: Using Response.Write to read javascript problem Pin
beish120-Aug-07 1:22
beish120-Aug-07 1:22 
GeneralRe: Using Response.Write to read javascript problem Pin
Guffa20-Aug-07 5:35
Guffa20-Aug-07 5:35 
GeneralRe: Using Response.Write to read javascript problem Pin
beish120-Aug-07 6:06
beish120-Aug-07 6:06 
AnswerRe: Using Response.Write to read javascript problem Pin
Guffa20-Aug-07 10:04
Guffa20-Aug-07 10:04 
QuestionCould not copy temporary files to the output directory. Pin
avinol20-Aug-07 0:14
avinol20-Aug-07 0:14 
QuestionConsuming RSS Feeds Pin
DarynRoberts19-Aug-07 23:50
DarynRoberts19-Aug-07 23:50 
AnswerRe: Consuming RSS Feeds Pin
Eduard Keilholz20-Aug-07 2:54
Eduard Keilholz20-Aug-07 2:54 
Questionhow to manage aspx page for the mozilla firefox Pin
Piyush Vardhan Singh19-Aug-07 23:34
Piyush Vardhan Singh19-Aug-07 23:34 
AnswerRe: how to manage aspx page for the mozilla firefox Pin
Christian Graus20-Aug-07 0:03
protectorChristian Graus20-Aug-07 0:03 
QuestionEmbedding Media Player Pin
.NET- India 19-Aug-07 23:15
.NET- India 19-Aug-07 23:15 
AnswerRe: Embedding Media Player Pin
Michael Sync19-Aug-07 23:27
Michael Sync19-Aug-07 23:27 
QuestionJava script in asp.net Pin
suryany7219-Aug-07 22:44
suryany7219-Aug-07 22:44 
AnswerRe: Java script in asp.net Pin
Imran Khan Pathan19-Aug-07 23:12
Imran Khan Pathan19-Aug-07 23:12 
AnswerRe: Java script in asp.net Pin
Michael Sync19-Aug-07 23:19
Michael Sync19-Aug-07 23:19 
AnswerRe: Java script in asp.net Pin
koolprasad200320-Aug-07 0:13
professionalkoolprasad200320-Aug-07 0:13 
Questioncodebehind and javascript file Pin
TheEagle19-Aug-07 21:38
TheEagle19-Aug-07 21:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.