Img at run time (Asp.net 2.0)
-
Hi, I've given my img in master page. I can see the img at design time in master page itself. I'm using this master page in my Login.aspx. I've given the proper path for image also. But I could not get this image at run time and design time of my login page. What the problem, which I did? Anybody help me. this is my master page code
<html>
<body>
<div id = "div1" runat ="server" >
<table width=100% height=4 bgcolor=eeeeee>
<tr valign ="middle"><td width = "20%" height ="15%">
<img src="../Images/Currency2.jpg" border="0"/></td>
<%--<asp:Image runat="server" ImageUrl ="~/Images/Currency2.jpg" BorderStyle = "None" />--%>
<td width = "80%" align ="center"><I><B>BULLET - Receipt And Payment Module</B></I></td>
</tr>
</table>
</div>Balasubramanian K.
-
Hi, I've given my img in master page. I can see the img at design time in master page itself. I'm using this master page in my Login.aspx. I've given the proper path for image also. But I could not get this image at run time and design time of my login page. What the problem, which I did? Anybody help me. this is my master page code
<html>
<body>
<div id = "div1" runat ="server" >
<table width=100% height=4 bgcolor=eeeeee>
<tr valign ="middle"><td width = "20%" height ="15%">
<img src="../Images/Currency2.jpg" border="0"/></td>
<%--<asp:Image runat="server" ImageUrl ="~/Images/Currency2.jpg" BorderStyle = "None" />--%>
<td width = "80%" align ="center"><I><B>BULLET - Receipt And Payment Module</B></I></td>
</tr>
</table>
</div>Balasubramanian K.
Try
<img src="~/Images/Currency2.jpg" border="0" runat="server"/>
Navaneeth How to use google | Ask smart questions
-
Try
<img src="~/Images/Currency2.jpg" border="0" runat="server"/>
Navaneeth How to use google | Ask smart questions
Already I'd tried with this symbol. If I use this, I could not see at design time also. Anyother soln. Thanks
Balasubramanian K.
-
Already I'd tried with this symbol. If I use this, I could not see at design time also. Anyother soln. Thanks
Balasubramanian K.
BalasubramanianK wrote:
Already I'd tried with this symbol.
Made it
runat=server
? It will work only ifrunat=server
is set. Could you post your directory structure? Where is this Login page resides? If you come out of the directory where login page exists, can you see the images directory? Problem is the image path. ../Images/Currency2.jpg not found from the login page. :)Navaneeth How to use google | Ask smart questions
-
BalasubramanianK wrote:
Already I'd tried with this symbol.
Made it
runat=server
? It will work only ifrunat=server
is set. Could you post your directory structure? Where is this Login page resides? If you come out of the directory where login page exists, can you see the images directory? Problem is the image path. ../Images/Currency2.jpg not found from the login page. :)Navaneeth How to use google | Ask smart questions
In my solution, I've two folders such as Images and MasterPages. Currency2.jpg contains in Images folder. Common.master conains in MasterPages folder. My page name is login.aspx, which does not contained in any folder. I've given my runat = server at my division itself. If I move my image from image folder to masterPage folder, It is working properly. I could not find the problem of path of the image. Because, I never typed the path directly. Using the pick up in visual studio, option I selected the file name.
Balasubramanian K.
-
In my solution, I've two folders such as Images and MasterPages. Currency2.jpg contains in Images folder. Common.master conains in MasterPages folder. My page name is login.aspx, which does not contained in any folder. I've given my runat = server at my division itself. If I move my image from image folder to masterPage folder, It is working properly. I could not find the problem of path of the image. Because, I never typed the path directly. Using the pick up in visual studio, option I selected the file name.
Balasubramanian K.
BalasubramanianK wrote:
My page name is login.aspx, which does not contained in any folder.
Then the image path should be
Images/Currency2.jpg
. Try that.Navaneeth How to use google | Ask smart questions
-
BalasubramanianK wrote:
My page name is login.aspx, which does not contained in any folder.
Then the image path should be
Images/Currency2.jpg
. Try that.Navaneeth How to use google | Ask smart questions
If I remove ../ I cld not see at design time itself of the master page. So, basically it will not come at run time. I think that ../ should be there. I think that ../ takes me to come back one step to my project folder from the currency2.jpg.
Balasubramanian K.
-
Hi, I've given my img in master page. I can see the img at design time in master page itself. I'm using this master page in my Login.aspx. I've given the proper path for image also. But I could not get this image at run time and design time of my login page. What the problem, which I did? Anybody help me. this is my master page code
<html>
<body>
<div id = "div1" runat ="server" >
<table width=100% height=4 bgcolor=eeeeee>
<tr valign ="middle"><td width = "20%" height ="15%">
<img src="../Images/Currency2.jpg" border="0"/></td>
<%--<asp:Image runat="server" ImageUrl ="~/Images/Currency2.jpg" BorderStyle = "None" />--%>
<td width = "80%" align ="center"><I><B>BULLET - Receipt And Payment Module</B></I></td>
</tr>
</table>
</div>Balasubramanian K.