R
rcoco
Cool! Now we're getting somewhere - you're finally using relative
addressing - hurrah!
So, is the above source actually correct relative to the folder that the
ASPX is in...?
Yes it is.
Cool! Now we're getting somewhere - you're finally using relative
addressing - hurrah!
So, is the above source actually correct relative to the folder that the
ASPX is in...?
Yes it is.- Hide quoted text -
- Show quoted text -
I was wondering does it matter where I place the folder with the
Images
Of course it does!!!
They are next to the Bin folder hope I'm not doing a mistake!
You are editing \Folder1\File1.aspx and want to include a link to your
logo - do this: ImageUrl="../images/logo.jpg"
However, that wouldn't work for File5.aspx because it is at a different
depth relative to the root. For File5.aspx, you'd need to do:
ImageUrl="../../images/logo.jpg"
On localhost, the code: ImageUrl="/images/logo.jpg" works but when
deployed on server it doesnot work? Why is it so?
Thanks.
I have just realised my stupid mistake, I wasn't deploying the Image
Here again I'm in trouble. I have this datagrid column that is
Supposed to hold both Character and Image. I set RadioButtonlist that
has two radiobutton. One good mood the other one bad mood. In the same
column are two images one imggm the other imgbm. When radiobutton good
mood is selected I want image imggm to be selected automatically. I'm
using this code.
System.Web.UI.WebControls.RadioButtonList st5=new
System.Web.UI.WebControls.RadioButtonList();
st5=(System.Web.UI.WebControls.RadioButtonList)e.Item.Cells[1].FindControl("rblmood");
System.Web.UI.WebControls.Image imgDaily=new
System.Web.UI.WebControls.Image();
imgDaily=(System.Web.UI.WebControls.Image)e.Item.Cells[1].FindControl("imgbm");
myCommand.Parameters.Add(new SqlParameter("@MoodToday",SqlDbType.Char,
45));
if(e.Item.Cells[1].Equals("Bad Mood"))
{
imgDaily.ImageUrl = "imgbm";}
else
{
imgDaily.ImageUrl = "imggm";}
myCommand.Parameters["@MoodToday"].Value=st5.SelectedValue;
My problem is that only goog mood appears but the image imggm does not
does not appear how should I do it.
Thanks
Mood" or not. I'm also confused aboutFrom the code above you cannot see if e.Item.Cells[1] equals the "Bad
Imgbm is a sad img is supposed to equal Bad Mood. And these are two
different images. it's supposed to be small image followed by the word
bad or good mood now e.Item.Cells[1].FindControl("imgbm"); I'm not
sure about it at all. But hope you've managed to get what I want to
do? If you could help me Please.
Thanks
Hi,
have just tryed this but it seems not to work? where is it wrong?
if(st5.SelectedValue=="Bad Mood")
{
st5.SelectedValue="Images/sad.gif";}
else if(st5.SelectedValue=="Good Mood")
{
st5.SelectedValue="Images/laughing.gif";}
And this is the error I'm getting:
Specified argument was out of the range of valid values. Parameter
name: Images/laughing.gif.
Thanks
Hi,
have just tryed this but it seems not to work? where is it wrong?
if(st5.SelectedValue=="Bad Mood")
{
st5.SelectedValue="Images/sad.gif";}else if(st5.SelectedValue=="Good Mood")
{
st5.SelectedValue="Images/laughing.gif";}And this is the error I'm getting:
Specified argument was out of the range of valid values. Parameter
name: Images/laughing.gif.
Thanks
st5 is your RadioButtonList
st5=(System.Web.UI.WebControls.RadioButtonList)e.Item.Cells[1].FindControl("rblmood");
so, what do you want to get using
st5.SelectedValue="Images/laughing.gif";
?
st5 is your RadioButtonListst5=(System.Web.UI.WebControls.RadioButtonList)e.Item.Cells[1].FindControl("rblmood");
so, what do you want to get usingst5.SelectedValue="Images/laughing.gif";
?
Sorry I've been away for some time. Yes st5 is my RadioButtonList. I
want the image laughing to come along when good mood is selected.
that's: st5.SelectedValue="Images/laughing.gif";
Thanks.- Hide quoted text -
- Show quoted text -