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. Asp:HyperLink

Asp:HyperLink

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 2 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.
  • D Offline
    D Offline
    danasegaranea
    wrote on last edited by
    #1

    Hi all, I am trying to set the text property to the asp:hyperlink control using frmHourRegistration.hlProject.Text="Test" But I am gettting the error as "Method not supported" What I am doing wrong here ?

    S 1 Reply Last reply
    0
    • D danasegaranea

      Hi all, I am trying to set the text property to the asp:hyperlink control using frmHourRegistration.hlProject.Text="Test" But I am gettting the error as "Method not supported" What I am doing wrong here ?

      S Offline
      S Offline
      Sylvester george
      wrote on last edited by
      #2

      try hlProject.Text="Test"; in your codebehind if hlProject is the id of the hyperlink

      Regards, Sylvester G If we don't succeed, we run the risk of failure

      D 1 Reply Last reply
      0
      • S Sylvester george

        try hlProject.Text="Test"; in your codebehind if hlProject is the id of the hyperlink

        Regards, Sylvester G If we don't succeed, we run the risk of failure

        D Offline
        D Offline
        danasegaranea
        wrote on last edited by
        #3

        Thanks for the reply Sylvester george , It works well in the code behind. But i want to populate from VBScript function. How can I ?

        S 1 Reply Last reply
        0
        • D danasegaranea

          Thanks for the reply Sylvester george , It works well in the code behind. But i want to populate from VBScript function. How can I ?

          S Offline
          S Offline
          Sylvester george
          wrote on last edited by
          #4

          Anyway that you have not mentioned in the question. this is the code for you <script type="text/vbscript"> HyperLink1.innerText = "abc" </script>

          Regards, Sylvester G If we don't succeed, we run the risk of failure

          D 1 Reply Last reply
          0
          • S Sylvester george

            Anyway that you have not mentioned in the question. this is the code for you <script type="text/vbscript"> HyperLink1.innerText = "abc" </script>

            Regards, Sylvester G If we don't succeed, we run the risk of failure

            D Offline
            D Offline
            danasegaranea
            wrote on last edited by
            #5

            This is my code Sub btnProjects_Click Dim retValue If frmHourRegistration.chkShowAll.checked=true then retValue= window.showModalDialog("test.aspx",window, "dialogWidth:550px;resizable:yes") If IsNull(retValue) Then frmHourRegistration.txtProject.Value=Empty frmHourRegistration.hlProject.Value=Empty **//Error** Else frmHourRegistration.txtProject.Value=retValue(0) frmHourRegistration.hlProject.Text=retValue(1) End If End If End Sub

            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