How to use Usercontrol
-
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?
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 )
-
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 )
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,