Click here to Skip to main content
15,898,931 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sys.WebForms.PostBackAction is not a constructor <--- in the navigator :/ Pin
Christian Graus3-Dec-08 9:05
protectorChristian Graus3-Dec-08 9:05 
QuestionProblems with FormView in ASP.NET 3.5 Pin
Mr programboy3-Dec-08 3:42
Mr programboy3-Dec-08 3:42 
AnswerRe: Problems with FormView in ASP.NET 3.5 Pin
ToddHileHoffer3-Dec-08 10:09
ToddHileHoffer3-Dec-08 10:09 
Questionasp:Chart - background color help Pin
bonkers1233-Dec-08 2:47
bonkers1233-Dec-08 2:47 
QuestionRe: asp:Chart - background color help Pin
Abhijit Jana3-Dec-08 3:13
professionalAbhijit Jana3-Dec-08 3:13 
AnswerRe: asp:Chart - background color help Pin
bonkers1234-Dec-08 2:45
bonkers1234-Dec-08 2:45 
Questioncall c# script from an ASP vb page Pin
baranils3-Dec-08 2:27
baranils3-Dec-08 2:27 
Questionload value from textbox to javascript Pin
benjamin yap3-Dec-08 2:18
benjamin yap3-Dec-08 2:18 
Hi, i am using virtual earth.

<asp:content id="Content1" contentplaceholderid="head" runat="Server" xmlns:asp="#unknown">
      <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"></script>
      <script type="text/javascript">
         var map = null;
         var tampines1 = new VELatLong(1.3765917840991528,103.94714355468751, 0, VEAltitudeMode. RelativeToGround);
         
         var tampvalue = document.getElementById('TextBox1');
         function GetMap()
         {
            map = new VEMap('myMap');
            map.LoadMap(new VELatLong(1.3608034433485081,103.86062622070314),11, VEMapStyle.Road, false);
         var tampines = new VEShape(VEShapeType.Pushpin, tampines1);
         map.AddShape(tampines);
         tampines.SetTitle("Tampines");
         tampines.SetDescription(tampvalue.value);   
}</script></asp:content>


as u can see in my code "var tampvalue = document.getElementById('TextBox1');"

i am storing a value from a textbox which is extracted from the database.

This is my .cs file for the Page_Load method

protected void Page_Load(object sender, EventArgs e)
{
    CasesDetails detail = CalculateCasesAccess.CountCases();
    TextBox1.Text = detail.number.ToString();
}


When the page loaded, it will extract the value from database and store it to textbox1. After that the javascript will get the value and set the description "tampines.SetDescription(tampvalue.value);"

But this method issint working. When i open the page, i can see the value in the textbox but it does not set it in my javascript
AnswerRe: load value from textbox to javascript Pin
Nishant Singh3-Dec-08 2:54
Nishant Singh3-Dec-08 2:54 
GeneralRe: load value from textbox to javascript Pin
Abhijit Jana3-Dec-08 3:12
professionalAbhijit Jana3-Dec-08 3:12 
AnswerRe: load value from textbox to javascript Pin
Abhijit Jana3-Dec-08 3:08
professionalAbhijit Jana3-Dec-08 3:08 
GeneralRe: load value from textbox to javascript Pin
benjamin yap3-Dec-08 3:19
benjamin yap3-Dec-08 3:19 
QuestionGirdview Pin
shanthi jothi3-Dec-08 1:55
shanthi jothi3-Dec-08 1:55 
AnswerRe: Girdview Pin
Nishant Singh3-Dec-08 3:07
Nishant Singh3-Dec-08 3:07 
AnswerRe: Girdview Pin
Abhijit Jana3-Dec-08 3:10
professionalAbhijit Jana3-Dec-08 3:10 
QuestionGridView Paging problem while taking input . Pin
vkumar093-Dec-08 1:36
vkumar093-Dec-08 1:36 
QuestionDisplay Changes with Screen Resolution Pin
Anand Desai3-Dec-08 1:01
Anand Desai3-Dec-08 1:01 
Questionlarge image on mouseover Pin
meghamaharshi3-Dec-08 0:44
meghamaharshi3-Dec-08 0:44 
AnswerRe: large image on mouseover Pin
Abhijit Jana3-Dec-08 2:52
professionalAbhijit Jana3-Dec-08 2:52 
GeneralRe: large image on mouseover Pin
meghamaharshi3-Dec-08 18:15
meghamaharshi3-Dec-08 18:15 
GeneralRe: large image on mouseover Pin
Abhijit Jana3-Dec-08 18:27
professionalAbhijit Jana3-Dec-08 18:27 
GeneralRe: large image on mouseover Pin
meghamaharshi3-Dec-08 19:16
meghamaharshi3-Dec-08 19:16 
GeneralRe: large image on mouseover Pin
Abhijit Jana3-Dec-08 20:42
professionalAbhijit Jana3-Dec-08 20:42 
GeneralRe: large image on mouseover Pin
meghamaharshi3-Dec-08 21:27
meghamaharshi3-Dec-08 21:27 
QuestionProblem with redirecting pages on click of images. Pin
SPanicker*3-Dec-08 0:33
SPanicker*3-Dec-08 0:33 

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.