Click here to Skip to main content
15,914,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: how can i validate a date using validation control Pin
Christian Graus25-Feb-08 20:54
protectorChristian Graus25-Feb-08 20:54 
GeneralRe: how can i validate a date using validation control Pin
koolprasad200326-Feb-08 18:38
professionalkoolprasad200326-Feb-08 18:38 
GeneralASP Membership (Change Application Name) [modified] Pin
AlexeiXX325-Feb-08 14:12
AlexeiXX325-Feb-08 14:12 
AnswerRe: ASP Membership (Change Application Name) [modified] Pin
AlexeiXX325-Feb-08 16:43
AlexeiXX325-Feb-08 16:43 
Questionhow to Pass two parameters using Eval in hyperlink in gridview Pin
$unil Dhiman25-Feb-08 13:38
$unil Dhiman25-Feb-08 13:38 
GeneralRe: how to Pass two parameters using Eval in hyperlink in gridview Pin
Herman<T>.Instance26-Feb-08 2:20
Herman<T>.Instance26-Feb-08 2:20 
GeneralRe: how to Pass two parameters using Eval in hyperlink in gridview Pin
$unil Dhiman27-Feb-08 15:49
$unil Dhiman27-Feb-08 15:49 
QuestionHow do I call a Virtual Earth function from an asp:button control? Pin
rushinge25-Feb-08 12:36
rushinge25-Feb-08 12:36 
I am trying to write a web application using Visual Web Developer 2008 Express edition that uses Virtual Earth and I'm stuck on how to call a certain function from an asp:button event handler.

I'm using the code-behind structure for my webpage. I have one file, cogenmap.aspx, that contains the html for the webpage, and another file, cogenmap.aspx.vb, that contains the Visual Basic code for the webpage.

in my cogenmap.aspx file I have the button declared as follows:

<asp:Button ID="buttonAddUnit" runat="server" Text="Add Unit" />

and in my cogenmap.aspx.vb file I have the event handler written as follows:

Partial Class CogenMap
    Inherits System.Web.UI.Page

    Protected Sub buttonAddUnit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles buttonAddUnit.Click
        Try
            'Dim newCoordinates As New VELatLong(CDec(textLatitude.Text), CDec(textLongitude.Text))
        Catch ex As Exception

        End Try

    End Sub
End Class


textLatitude and textLongitude are asp:textbox components and I can reference them with no problems.
The problem is that it can't find the VELatLong function in this context. In the cogenmap.aspx file the line:

<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>

allows me to use the VELatLong function with no problem from a client side script block in the cogenmap.aspx file. But I don't know how to reference it from the cogenmap.aspx.vb file, using VB code instead of ECMAScript.

How can I control my Virtual Earth map display from other ASP.NET controls I have placed on the page, such as this button?
GeneralRe: How do I call a Virtual Earth function from an asp:button control? Pin
Christian Graus25-Feb-08 18:03
protectorChristian Graus25-Feb-08 18:03 
QuestionHow To Call a Web Service Asynchronous Pin
Member 414996625-Feb-08 11:44
Member 414996625-Feb-08 11:44 
QuestionHow to Avoid Hitting database? Pin
crystal915425-Feb-08 11:04
crystal915425-Feb-08 11:04 
AnswerRe: How to Avoid Hitting database? Pin
Christian Graus25-Feb-08 11:14
protectorChristian Graus25-Feb-08 11:14 
GeneralRe: How to Avoid Hitting database? Pin
crystal915425-Feb-08 11:34
crystal915425-Feb-08 11:34 
GeneralRe: How to Avoid Hitting database? Pin
Christian Graus25-Feb-08 12:36
protectorChristian Graus25-Feb-08 12:36 
GeneralRe: How to Avoid Hitting database? Pin
crystal915425-Feb-08 12:45
crystal915425-Feb-08 12:45 
GeneralRe: How to Avoid Hitting database? Pin
Christian Graus25-Feb-08 18:25
protectorChristian Graus25-Feb-08 18:25 
GeneralRe: How to Avoid Hitting database? Pin
Mark Churchill25-Feb-08 19:25
Mark Churchill25-Feb-08 19:25 
GeneralRe: How to Avoid Hitting database? Pin
Christian Graus25-Feb-08 19:37
protectorChristian Graus25-Feb-08 19:37 
GeneralRe: How to Avoid Hitting database? Pin
Mark Churchill25-Feb-08 21:03
Mark Churchill25-Feb-08 21:03 
GeneralPosting form to Paypal / 3rd party site Pin
munklefish25-Feb-08 5:40
munklefish25-Feb-08 5:40 
GeneralRe: Posting form to Paypal / 3rd party site Pin
Vasudevan Deepak Kumar25-Feb-08 7:04
Vasudevan Deepak Kumar25-Feb-08 7:04 
GeneralRe: Posting form to Paypal / 3rd party site Pin
munklefish25-Feb-08 7:13
munklefish25-Feb-08 7:13 
GeneralRe: Posting form to Paypal / 3rd party site Pin
Guffa25-Feb-08 8:53
Guffa25-Feb-08 8:53 
GeneralRe: Posting form to Paypal / 3rd party site Pin
N a v a n e e t h25-Feb-08 15:28
N a v a n e e t h25-Feb-08 15:28 
GeneralRe: Posting form to Paypal / 3rd party site Pin
Guffa25-Feb-08 21:09
Guffa25-Feb-08 21:09 

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.