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. problem with

problem with

Scheduled Pinned Locked Moved ASP.NET
designhelpquestion
4 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.
  • R Offline
    R Offline
    rajmani
    wrote on last edited by
    #1

    hi, I created one ascx, and then I called programmatically Using this code Dim c1 As Control = LoadControl("Web.ascx") Page.Controls.Add(c1) Dim lnk As System.Web.UI.HtmlControls.HtmlAnchor lnk = c1.FindControl("link") But this code not working, How is work, how call is dynamically? Anybody know please tell me, Thanks, urs

    A 1 Reply Last reply
    0
    • R rajmani

      hi, I created one ascx, and then I called programmatically Using this code Dim c1 As Control = LoadControl("Web.ascx") Page.Controls.Add(c1) Dim lnk As System.Web.UI.HtmlControls.HtmlAnchor lnk = c1.FindControl("link") But this code not working, How is work, how call is dynamically? Anybody know please tell me, Thanks, urs

      A Offline
      A Offline
      AhsanS
      wrote on last edited by
      #2

      For that you got to read few articles relating to view state.because it is not possible without it. view state is a property which is set to true problem is that when the page is reloaded the dynamic controls loose there state. and to keep their state you got to use view state. It will work than. Ahsan Ullah

      R 2 Replies Last reply
      0
      • A AhsanS

        For that you got to read few articles relating to view state.because it is not possible without it. view state is a property which is set to true problem is that when the page is reloaded the dynamic controls loose there state. and to keep their state you got to use view state. It will work than. Ahsan Ullah

        R Offline
        R Offline
        rajmani
        wrote on last edited by
        #3

        hi, thanks,:) its working fine in html anchor but using button control some error showed means Specified cast is not valid. thanks cheers

        1 Reply Last reply
        0
        • A AhsanS

          For that you got to read few articles relating to view state.because it is not possible without it. view state is a property which is set to true problem is that when the page is reloaded the dynamic controls loose there state. and to keep their state you got to use view state. It will work than. Ahsan Ullah

          R Offline
          R Offline
          rajmani
          wrote on last edited by
          #4

          thanks Ahsan But button controls not coming, urs

          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