Calling string written in abc.aspx.cs file and then using that info in html page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jay123
    New Member
    • Sep 2008
    • 121

    Calling string written in abc.aspx.cs file and then using that info in html page

    hello everyone,
    i have a object 'job' with some properties as address1, addr2......., address4. now when i load this page this address does get displayed on page and i have cretaed a string 'googlestring' , which stores this address1 etc as a single string. now this is sorted

    my requirement is as i m using google map in my application, i want to call this googlestring, which has address in my html file as i am passing the address in html.

    or my problem can be i dont know how to call this string in html,
    please note this googlestring has to be assigned to var as

    Code:
    var address = "<%= googlestring%>;
    any help with code will be appreciated.
    Regards
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Have you declared your googlestring variable as public?

    Nathan

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Originally posted by nateraaaa
      Have you declared your googlestring variable as public?

      Nathan
      I don't know if that will help....
      I was thinking that they may need to store that string in a database or file...and write an ASP (or ASPX) page that simply returns this string (no HTML). It seems like over kill for what they are trying to do but that's all I can think of.

      -Frinny

      Comment

      Working...