how to pass variable value to image control property
-
-
Why did you create a new account and ask this twice ? Your code doesn't work. You create an integer and assign a string to it. VB.NET, being crap, will probably turn your int into a string, but you'd do well not to rely on your language of choice being rubbish. Your code doesn't do anything sensible, but you can assign a variable value to the src property in your code behind, I don't see the issue. Of course, it needs to be a server control.
Christian Graus - Microsoft MVP - C++ "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 )
-
harithadotnet wrote:
dim i as integer i="images/ga.jpg"
Passing string value to integer value ? How this is possible ? I am not sure that I understood your problem, are you trying to assign variable value to
src
of image tag ? That could be something like<image src=<%=i%>
-
:-DUse string type variable and assign it to image control property (it means take i as a string type varible) Nand Kumar Das