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. parameters for webcontrol

parameters for webcontrol

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • V Offline
    V Offline
    vamsimohan21
    wrote on last edited by
    #1

    Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. vamsi

    ALL THE BEST

    S S 2 Replies Last reply
    0
    • V vamsimohan21

      Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. vamsi

      ALL THE BEST

      S Offline
      S Offline
      Spunky Coder
      wrote on last edited by
      #2

      Hi, a webusercontrol acts as a childpage to the basepage i.e aspx page. So a public method in the webusercontrol can be accessed from the main page. for eg: in the page_load of the main page (.aspx) a call can be made to the public method present in the webusercontrol. webusercontrol1.populate(string name);....where populate is the method present in the webusercontrol Is this the thing u want?

      Koushik

      1 Reply Last reply
      0
      • V vamsimohan21

        Hi all, is it possible to pass parameter inside a web user control from ASPX pages, and how could i do to retrieve this value inside the web user control? Thanks a lot. vamsi

        ALL THE BEST

        S Offline
        S Offline
        Sandeep Akhare
        wrote on last edited by
        #3

        Yes Suppose you have usercontrol name MyControl.ascx which is used in MyPage.aspx then write a method with all paramaters you want to send to use control call this method from your MyPage.aspx.cs as MyControlObject.MethodName(ParameterList)

        Thanks and Regards Sandeep If you want something you never had, do something you have never done!

        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