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. Web Development
  3. ASP.NET
  4. How do you.......

How do you.......

Scheduled Pinned Locked Moved ASP.NET
htmlhelptutorialquestion
3 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.
  • C Offline
    C Offline
    cisco2103
    wrote on last edited by
    #1

    I need to grab a variable from my Load event and use it my html

    tag? Example: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load myHeight = unit.pixel(sdr.Item('height') End Sub

    Any kind of help would be great... Thanks in advance. Cisco2103

    N W 2 Replies Last reply
    0
    • C cisco2103

      I need to grab a variable from my Load event and use it my html

      tag? Example: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load myHeight = unit.pixel(sdr.Item('height') End Sub

      Any kind of help would be great... Thanks in advance. Cisco2103

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Where is sdr.Item('height') coming from? What is it you are trying to do? If you are trying to place a javascript variable on the page you do that using ClientScriptManager.RegisterClientScriptBlock


      only two letters away from being an asset

      1 Reply Last reply
      0
      • C cisco2103

        I need to grab a variable from my Load event and use it my html

        tag? Example: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load myHeight = unit.pixel(sdr.Item('height') End Sub

        Any kind of help would be great... Thanks in advance. Cisco2103

        W Offline
        W Offline
        wEb GuRu
        wrote on last edited by
        #3

        If you want to show asp.net variable in HTML Code then u can use viewstate for this. like... viewstate("myHeight") = unit.pixel(sdr.Item('height') then in html code simply... <% response.write(viewstate("myHeight")) %>

        Lets work it Out.........!

        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