Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to use the same variable in c#, in HTML

how to use the same variable in c#, in HTML

Scheduled Pinned Locked Moved C#
csharphtmltutorial
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jug Head
    wrote on last edited by
    #1

    how to use the same variable in c#, in HTML Jug-Head 0:40 2 Nov '04 is there anybody out there, who knows how to use a variable in HTML which was defined in c#. in c# i use the variable EmbedText.Text=this.openFileDialog(); i want to use that same variable in HTML e.g. Jug-Head

    D R 2 Replies Last reply
    0
    • J Jug Head

      how to use the same variable in c#, in HTML Jug-Head 0:40 2 Nov '04 is there anybody out there, who knows how to use a variable in HTML which was defined in c#. in c# i use the variable EmbedText.Text=this.openFileDialog(); i want to use that same variable in HTML e.g. Jug-Head

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Patience! Posting your question over and over will not get it answered any faster... Besides, your question would be better handled in the ASP.NET Forum... The variable is defined to C# only and is never passed to HTML. So, the only way your going to see the value of the variable is if the C# code passes it to some field in your HTML, such as stored the value in a hidden TextBox... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      J 1 Reply Last reply
      0
      • J Jug Head

        how to use the same variable in c#, in HTML Jug-Head 0:40 2 Nov '04 is there anybody out there, who knows how to use a variable in HTML which was defined in c#. in c# i use the variable EmbedText.Text=this.openFileDialog(); i want to use that same variable in HTML e.g. Jug-Head

        R Offline
        R Offline
        R Thomas 0
        wrote on last edited by
        #3

        do you mean that you want to assign a asp.net(C#) variable to a javascript variable or something? "Rejoice always, pray without ceasing, in everything give thanks; for this is the will of God in Christ Jesus for you."1Thess. 5:16-18

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          Patience! Posting your question over and over will not get it answered any faster... Besides, your question would be better handled in the ASP.NET Forum... The variable is defined to C# only and is never passed to HTML. So, the only way your going to see the value of the variable is if the C# code passes it to some field in your HTML, such as stored the value in a hidden TextBox... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          J Offline
          J Offline
          Jug Head
          wrote on last edited by
          #4

          sorry about being so impatient. thanx for replying. is there a possibility that u could show me how what u mean by passing the variable to some field in HTML. i don't have lots of experience with HTML.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups