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 to use Usercontrol

How to use Usercontrol

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

    I have to design a usercontrol in asp.net, which will display image in table. how do i place the image in usercontrol? how will i use it in html, and display in browser?

    C 1 Reply Last reply
    0
    • V vidya_rpl

      I have to design a usercontrol in asp.net, which will display image in table. how do i place the image in usercontrol? how will i use it in html, and display in browser?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You import it into your aspx, and use it the same as you would any server control. You would put the images on your server, and put the path to them in your user control, in the markup. <%@ Register TagPrefix="anyPrefix" Src="~/pathtoascx" TagName="thecontrolname" %> Then with create the control. This stuff is covered in any book on ASP.NET, I recommend buying one and working through it. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      V 1 Reply Last reply
      0
      • C Christian Graus

        You import it into your aspx, and use it the same as you would any server control. You would put the images on your server, and put the path to them in your user control, in the markup. <%@ Register TagPrefix="anyPrefix" Src="~/pathtoascx" TagName="thecontrolname" %> Then with create the control. This stuff is covered in any book on ASP.NET, I recommend buying one and working through it. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        V Offline
        V Offline
        vidya_rpl
        wrote on last edited by
        #3

        Thanks for the update,but my problem is different.. i have a usercontrol which displays student name school name link to different page i want to write a code which would show this information one below the other like within table, and image in the background,

        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