Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re:Re: ImageURL Issues!!!!!!!!

Reply
Thread Tools

Re:Re: ImageURL Issues!!!!!!!!

 
 
John Espinosa
Guest
Posts: n/a
 
      10-09-2004
The name should be the same...

Sub Page_Load

UC1.strHomeURL = "image/home.gif"
End Sub

This still does not work!!!
 
Reply With Quote
 
 
 
 
Hermit Dave
Guest
Posts: n/a
 
      10-09-2004
John,

Sorry if i sound a bit rude. Please check your posts. You have made 3 / 4
odd different posts on the same subject.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"John Espinosa" <> wrote in message
news:YgU9d.3584$kz3.3261@fed1read02...
> The name should be the same...
>
> Sub Page_Load
>
> UC1.strHomeURL = "image/home.gif"
> End Sub
>
> This still does not work!!!



 
Reply With Quote
 
 
 
 
John Espinosa
Guest
Posts: n/a
 
      10-09-2004
No worries Hermit!
I have made alot of posts but no one can seem to show me the write code to
achieve what I am looking for.
basically I have a user control. I use properties in that control. But I
cannot access the properties through my code.

Maybe if I showed you the complete code you could see what I mean...

This is the user control I made:

<%@ Control Language="VB" %>
<script runat="server">

Public Property strHomeURL As String
Get
Return strHomeURL
End Get
Set
ibtnHome.ImageURL = Value
End Set
End Property
</script>

<table cellspacing="0" cellpadding="0" width="800" border="0">
<tbody>
<tr>
<td>
<img height="45" src="images/top_logo.gif" width="421"
/></td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" width="800"
border="0">
<tbody>
<tr>
<td width="200" bgcolor="#fda146">
&nbsp;
</td>
<td width="22">
<img height="23"
src="images/color_tranz.gif" width="22" /></td>
<td width="578"
background="images/gradient.gif"><div align="right" class="date"><%=
Now.ToString( "D" )%></div></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td bgcolor="#fda146" height="17">
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td><asp:ImageButton id="ibtnHome"
runat="server" ImageURL="images/home_on.gif" height="17" width="53"
onmouseout="this.src='images/home.gif'"
onmouseover="this.src='images/home_on.gif'" OnClick="ImageButton_Click"
/></td>
<td><asp:ImageButton id="ibtnWho" runat="server"
ImageURL="images/who.gif" height="17" width="109"
onmouseout="this.src='images/who.gif'"
onmouseover="this.src='images/who_on.gif'" OnClick="ImageButton_Click"
/></td>
<td><asp:ImageButton id="ibtnIdea"
runat="server" ImageURL="images/idea.gif" height="17" width="83"
onmouseout="this.src='images/idea.gif'"
onmouseover="this.src='images/idea_on.gif'" OnClick="ImageButton_Click"
/></td>
<td><asp:ImageButton id="ibtnWhat"
runat="server" ImageURL="images/what.gif" height="17" width="117"
onmouseout="this.src='images/what.gif'"
onmouseover="this.src='images/what_on.gif'" OnClick="ImageButton_Click"
/></td>
<td><asp:ImageButton id="ibtnBenefits"
runat="server" ImageURL="images/benefits.gif" height="17" width="63"
onmouseout="this.src='images/benefits.gif'"
onmouseover="this.src='images/benefits_on.gif'" OnClick="ImageButton_Click"
/></td>
<td><asp:ImageButton id="ibtnJobs"
runat="server" ImageURL="images/jobs.gif" height="17" width="87"
onmouseout="this.src='images/jobs.gif'"
onmouseover="this.src='images/jobs_on.gif'" OnClick="ImageButton_Click"
/></td>
<td><asp:ImageButton id="ibtnApply"
runat="server" ImageURL="images/apply.gif" height="17" width="80"
onmouseout="this.src='images/apply.gif'"
onmouseover="this.src='images/apply_on.gif'" OnClick="ImageButton_Click"
/></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td height="5">
<img height="5" src="images/line_dot.gif" width="800"
border="0" /></td>
</tr>
</tbody>
</table>

Now here is the aspx page that calls the user control:


<%@ Page Language="VB" Debug="True" %>
<%@ Register TagPrefix="Sunterra" TagName="HR_Header" Src="TestHeader.ascx"
%>
<%@ Register TagPrefix="Sunterra" TagName="HR_Footer" Src="Footer.ascx" %>
<script runat="server" >
Sub Page_Load
Protected myHeader As HR_Header
myHeader.strHomeURL = "image/who.gif"
End Sub

</script>
<html>
<head>
<Title>Sunterra Human Resources</Title>
<LINK REL=StyleSheet HREF="HR_Style.css" TYPE="text/css">
</head>
<body>
<form runat="server">
<Sunterra:HR_Header id="ctlHeader" runat="server"
HomeURL="images/who.gif" />
Middle of the page
<Sunterra:HR_Footer id="ctlFooter" runat="server" />
</form>
</body>
</html>



I cannot get the ImageURL to change. Do you know a solution?

Thanks!

"Hermit Dave" <> wrote in message
news:...
> John,
>
> Sorry if i sound a bit rude. Please check your posts. You have made 3 / 4
> odd different posts on the same subject.
>
> --
>
> Regards,
>
> Hermit Dave
> (http://hdave.blogspot.com)
> "John Espinosa" <> wrote in message
> news:YgU9d.3584$kz3.3261@fed1read02...
>> The name should be the same...
>>
>> Sub Page_Load
>>
>> UC1.strHomeURL = "image/home.gif"
>> End Sub
>>
>> This still does not work!!!

>
>



 
Reply With Quote
 
Hermit Dave
Guest
Posts: n/a
 
      10-09-2004
use this

the reason it was not working was that the link i gave to you earlier used
codebehind.

have fun

<%@ Page Language="VB" Debug="True" %>
<%@ Register TagPrefix="Sunterra" TagName="HR_Header" Src="TestHeader.ascx"
%>
<%@ Register TagPrefix="Sunterra" TagName="HR_Footer" Src="Footer.ascx" %>
<script runat="server" >
Sub Page_Load
ctlHeader.strHomeURL = "image/who.gif"
End Sub

</script>
<html>
<head>
<Title>Sunterra Human Resources</Title>
<LINK REL=StyleSheet HREF="HR_Style.css" TYPE="text/css">
</head>
<body>
<form runat="server">
<Sunterra:HR_Header id="ctlHeader" runat="server"
HomeURL="images/who.gif" />
Middle of the page
<Sunterra:HR_Footer id="ctlFooter" runat="server" />
</form>
</body>
</html>


--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"John Espinosa" <> wrote in message
news:5cW9d.1721$6P5.768@okepread02...
> No worries Hermit!
> I have made alot of posts but no one can seem to show me the write code to
> achieve what I am looking for.
> basically I have a user control. I use properties in that control. But I
> cannot access the properties through my code.
>
> Maybe if I showed you the complete code you could see what I mean...
>
> This is the user control I made:
>
> <%@ Control Language="VB" %>
> <script runat="server">
>
> Public Property strHomeURL As String
> Get
> Return strHomeURL
> End Get
> Set
> ibtnHome.ImageURL = Value
> End Set
> End Property
> </script>
>
> <table cellspacing="0" cellpadding="0" width="800" border="0">
> <tbody>
> <tr>
> <td>
> <img height="45" src="images/top_logo.gif" width="421"
> /></td>
> </tr>
> <tr>
> <td>
> <table cellspacing="0" cellpadding="0" width="800"
> border="0">
> <tbody>
> <tr>
> <td width="200" bgcolor="#fda146">
> &nbsp;
> </td>
> <td width="22">
> <img height="23"
> src="images/color_tranz.gif" width="22" /></td>
> <td width="578"
> background="images/gradient.gif"><div align="right" class="date"><%=
> Now.ToString( "D" )%></div></td>
> </tr>
> </tbody>
> </table>
> </td>
> </tr>
> <tr>
> <td bgcolor="#fda146" height="17">
> <table cellspacing="0" cellpadding="0" border="0">
> <tbody>
> <tr>
> <td><asp:ImageButton id="ibtnHome"
> runat="server" ImageURL="images/home_on.gif" height="17" width="53"
> onmouseout="this.src='images/home.gif'"
> onmouseover="this.src='images/home_on.gif'" OnClick="ImageButton_Click"
> /></td>
> <td><asp:ImageButton id="ibtnWho"

runat="server"
> ImageURL="images/who.gif" height="17" width="109"
> onmouseout="this.src='images/who.gif'"
> onmouseover="this.src='images/who_on.gif'" OnClick="ImageButton_Click"
> /></td>
> <td><asp:ImageButton id="ibtnIdea"
> runat="server" ImageURL="images/idea.gif" height="17" width="83"
> onmouseout="this.src='images/idea.gif'"
> onmouseover="this.src='images/idea_on.gif'" OnClick="ImageButton_Click"
> /></td>
> <td><asp:ImageButton id="ibtnWhat"
> runat="server" ImageURL="images/what.gif" height="17" width="117"
> onmouseout="this.src='images/what.gif'"
> onmouseover="this.src='images/what_on.gif'" OnClick="ImageButton_Click"
> /></td>
> <td><asp:ImageButton id="ibtnBenefits"
> runat="server" ImageURL="images/benefits.gif" height="17" width="63"
> onmouseout="this.src='images/benefits.gif'"
> onmouseover="this.src='images/benefits_on.gif'"

OnClick="ImageButton_Click"
> /></td>
> <td><asp:ImageButton id="ibtnJobs"
> runat="server" ImageURL="images/jobs.gif" height="17" width="87"
> onmouseout="this.src='images/jobs.gif'"
> onmouseover="this.src='images/jobs_on.gif'" OnClick="ImageButton_Click"
> /></td>
> <td><asp:ImageButton id="ibtnApply"
> runat="server" ImageURL="images/apply.gif" height="17" width="80"
> onmouseout="this.src='images/apply.gif'"
> onmouseover="this.src='images/apply_on.gif'" OnClick="ImageButton_Click"
> /></td>
> </tr>
> </tbody>
> </table>
> </td>
> </tr>
> <tr>
> <td height="5">
> <img height="5" src="images/line_dot.gif" width="800"
> border="0" /></td>
> </tr>
> </tbody>
> </table>
>
> Now here is the aspx page that calls the user control:
>
>
> <%@ Page Language="VB" Debug="True" %>
> <%@ Register TagPrefix="Sunterra" TagName="HR_Header"

Src="TestHeader.ascx"
> %>
> <%@ Register TagPrefix="Sunterra" TagName="HR_Footer" Src="Footer.ascx" %>
> <script runat="server" >
> Sub Page_Load
> Protected myHeader As HR_Header
> myHeader.strHomeURL = "image/who.gif"
> End Sub
>
> </script>
> <html>
> <head>
> <Title>Sunterra Human Resources</Title>
> <LINK REL=StyleSheet HREF="HR_Style.css" TYPE="text/css">
> </head>
> <body>
> <form runat="server">
> <Sunterra:HR_Header id="ctlHeader" runat="server"
> HomeURL="images/who.gif" />
> Middle of the page
> <Sunterra:HR_Footer id="ctlFooter" runat="server" />
> </form>
> </body>
> </html>
>
>
>
> I cannot get the ImageURL to change. Do you know a solution?
>
> Thanks!
>
> "Hermit Dave" <> wrote in message
> news:...
> > John,
> >
> > Sorry if i sound a bit rude. Please check your posts. You have made 3 /

4
> > odd different posts on the same subject.
> >
> > --
> >
> > Regards,
> >
> > Hermit Dave
> > (http://hdave.blogspot.com)
> > "John Espinosa" <> wrote in message
> > news:YgU9d.3584$kz3.3261@fed1read02...
> >> The name should be the same...
> >>
> >> Sub Page_Load
> >>
> >> UC1.strHomeURL = "image/home.gif"
> >> End Sub
> >>
> >> This still does not work!!!

> >
> >

>
>



 
Reply With Quote
 
John Espinosa
Guest
Posts: n/a
 
      10-09-2004
It works!
Thank you very much I appreciate it!


"Hermit Dave" <> wrote in message
news:%...
> use this
>
> the reason it was not working was that the link i gave to you earlier used
> codebehind.
>
> have fun
>
> <%@ Page Language="VB" Debug="True" %>
> <%@ Register TagPrefix="Sunterra" TagName="HR_Header"
> Src="TestHeader.ascx"
> %>
> <%@ Register TagPrefix="Sunterra" TagName="HR_Footer" Src="Footer.ascx" %>
> <script runat="server" >
> Sub Page_Load
> ctlHeader.strHomeURL = "image/who.gif"
> End Sub
>
> </script>
> <html>
> <head>
> <Title>Sunterra Human Resources</Title>
> <LINK REL=StyleSheet HREF="HR_Style.css" TYPE="text/css">
> </head>
> <body>
> <form runat="server">
> <Sunterra:HR_Header id="ctlHeader" runat="server"
> HomeURL="images/who.gif" />
> Middle of the page
> <Sunterra:HR_Footer id="ctlFooter" runat="server" />
> </form>
> </body>
> </html>
>
>
> --
>
> Regards,
>
> Hermit Dave
> (http://hdave.blogspot.com)
> "John Espinosa" <> wrote in message
> news:5cW9d.1721$6P5.768@okepread02...
>> No worries Hermit!
>> I have made alot of posts but no one can seem to show me the write code
>> to
>> achieve what I am looking for.
>> basically I have a user control. I use properties in that control. But I
>> cannot access the properties through my code.
>>
>> Maybe if I showed you the complete code you could see what I mean...
>>
>> This is the user control I made:
>>
>> <%@ Control Language="VB" %>
>> <script runat="server">
>>
>> Public Property strHomeURL As String
>> Get
>> Return strHomeURL
>> End Get
>> Set
>> ibtnHome.ImageURL = Value
>> End Set
>> End Property
>> </script>
>>
>> <table cellspacing="0" cellpadding="0" width="800" border="0">
>> <tbody>
>> <tr>
>> <td>
>> <img height="45" src="images/top_logo.gif" width="421"
>> /></td>
>> </tr>
>> <tr>
>> <td>
>> <table cellspacing="0" cellpadding="0" width="800"
>> border="0">
>> <tbody>
>> <tr>
>> <td width="200" bgcolor="#fda146">
>> &nbsp;
>> </td>
>> <td width="22">
>> <img height="23"
>> src="images/color_tranz.gif" width="22" /></td>
>> <td width="578"
>> background="images/gradient.gif"><div align="right" class="date"><%=
>> Now.ToString( "D" )%></div></td>
>> </tr>
>> </tbody>
>> </table>
>> </td>
>> </tr>
>> <tr>
>> <td bgcolor="#fda146" height="17">
>> <table cellspacing="0" cellpadding="0" border="0">
>> <tbody>
>> <tr>
>> <td><asp:ImageButton id="ibtnHome"
>> runat="server" ImageURL="images/home_on.gif" height="17" width="53"
>> onmouseout="this.src='images/home.gif'"
>> onmouseover="this.src='images/home_on.gif'" OnClick="ImageButton_Click"
>> /></td>
>> <td><asp:ImageButton id="ibtnWho"

> runat="server"
>> ImageURL="images/who.gif" height="17" width="109"
>> onmouseout="this.src='images/who.gif'"
>> onmouseover="this.src='images/who_on.gif'" OnClick="ImageButton_Click"
>> /></td>
>> <td><asp:ImageButton id="ibtnIdea"
>> runat="server" ImageURL="images/idea.gif" height="17" width="83"
>> onmouseout="this.src='images/idea.gif'"
>> onmouseover="this.src='images/idea_on.gif'" OnClick="ImageButton_Click"
>> /></td>
>> <td><asp:ImageButton id="ibtnWhat"
>> runat="server" ImageURL="images/what.gif" height="17" width="117"
>> onmouseout="this.src='images/what.gif'"
>> onmouseover="this.src='images/what_on.gif'" OnClick="ImageButton_Click"
>> /></td>
>> <td><asp:ImageButton id="ibtnBenefits"
>> runat="server" ImageURL="images/benefits.gif" height="17" width="63"
>> onmouseout="this.src='images/benefits.gif'"
>> onmouseover="this.src='images/benefits_on.gif'"

> OnClick="ImageButton_Click"
>> /></td>
>> <td><asp:ImageButton id="ibtnJobs"
>> runat="server" ImageURL="images/jobs.gif" height="17" width="87"
>> onmouseout="this.src='images/jobs.gif'"
>> onmouseover="this.src='images/jobs_on.gif'" OnClick="ImageButton_Click"
>> /></td>
>> <td><asp:ImageButton id="ibtnApply"
>> runat="server" ImageURL="images/apply.gif" height="17" width="80"
>> onmouseout="this.src='images/apply.gif'"
>> onmouseover="this.src='images/apply_on.gif'" OnClick="ImageButton_Click"
>> /></td>
>> </tr>
>> </tbody>
>> </table>
>> </td>
>> </tr>
>> <tr>
>> <td height="5">
>> <img height="5" src="images/line_dot.gif" width="800"
>> border="0" /></td>
>> </tr>
>> </tbody>
>> </table>
>>
>> Now here is the aspx page that calls the user control:
>>
>>
>> <%@ Page Language="VB" Debug="True" %>
>> <%@ Register TagPrefix="Sunterra" TagName="HR_Header"

> Src="TestHeader.ascx"
>> %>
>> <%@ Register TagPrefix="Sunterra" TagName="HR_Footer" Src="Footer.ascx"
>> %>
>> <script runat="server" >
>> Sub Page_Load
>> Protected myHeader As HR_Header
>> myHeader.strHomeURL = "image/who.gif"
>> End Sub
>>
>> </script>
>> <html>
>> <head>
>> <Title>Sunterra Human Resources</Title>
>> <LINK REL=StyleSheet HREF="HR_Style.css" TYPE="text/css">
>> </head>
>> <body>
>> <form runat="server">
>> <Sunterra:HR_Header id="ctlHeader" runat="server"
>> HomeURL="images/who.gif" />
>> Middle of the page
>> <Sunterra:HR_Footer id="ctlFooter" runat="server" />
>> </form>
>> </body>
>> </html>
>>
>>
>>
>> I cannot get the ImageURL to change. Do you know a solution?
>>
>> Thanks!
>>
>> "Hermit Dave" <> wrote in message
>> news:...
>> > John,
>> >
>> > Sorry if i sound a bit rude. Please check your posts. You have made 3 /

> 4
>> > odd different posts on the same subject.
>> >
>> > --
>> >
>> > Regards,
>> >
>> > Hermit Dave
>> > (http://hdave.blogspot.com)
>> > "John Espinosa" <> wrote in message
>> > news:YgU9d.3584$kz3.3261@fed1read02...
>> >> The name should be the same...
>> >>
>> >> Sub Page_Load
>> >>
>> >> UC1.strHomeURL = "image/home.gif"
>> >> End Sub
>> >>
>> >> This still does not work!!!
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
Hermit Dave
Guest
Posts: n/a
 
      10-09-2004
glad you got it sorted

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"John Espinosa" <> wrote in message
news:JJW9d.1722$6P5.300@okepread02...
> It works!
> Thank you very much I appreciate it!
>
>
> "Hermit Dave" <> wrote in message
> news:%...
> > use this
> >
> > the reason it was not working was that the link i gave to you earlier

used
> > codebehind.
> >
> > have fun
> >
> > <%@ Page Language="VB" Debug="True" %>
> > <%@ Register TagPrefix="Sunterra" TagName="HR_Header"
> > Src="TestHeader.ascx"
> > %>
> > <%@ Register TagPrefix="Sunterra" TagName="HR_Footer" Src="Footer.ascx"

%>
> > <script runat="server" >
> > Sub Page_Load
> > ctlHeader.strHomeURL = "image/who.gif"
> > End Sub
> >
> > </script>
> > <html>
> > <head>
> > <Title>Sunterra Human Resources</Title>
> > <LINK REL=StyleSheet HREF="HR_Style.css" TYPE="text/css">
> > </head>
> > <body>
> > <form runat="server">
> > <Sunterra:HR_Header id="ctlHeader" runat="server"
> > HomeURL="images/who.gif" />
> > Middle of the page
> > <Sunterra:HR_Footer id="ctlFooter" runat="server" />
> > </form>
> > </body>
> > </html>
> >
> >
> > --
> >
> > Regards,
> >
> > Hermit Dave
> > (http://hdave.blogspot.com)
> > "John Espinosa" <> wrote in message
> > news:5cW9d.1721$6P5.768@okepread02...
> >> No worries Hermit!
> >> I have made alot of posts but no one can seem to show me the write code
> >> to
> >> achieve what I am looking for.
> >> basically I have a user control. I use properties in that control. But

I
> >> cannot access the properties through my code.
> >>
> >> Maybe if I showed you the complete code you could see what I mean...
> >>
> >> This is the user control I made:
> >>
> >> <%@ Control Language="VB" %>
> >> <script runat="server">
> >>
> >> Public Property strHomeURL As String
> >> Get
> >> Return strHomeURL
> >> End Get
> >> Set
> >> ibtnHome.ImageURL = Value
> >> End Set
> >> End Property
> >> </script>
> >>
> >> <table cellspacing="0" cellpadding="0" width="800" border="0">
> >> <tbody>
> >> <tr>
> >> <td>
> >> <img height="45" src="images/top_logo.gif" width="421"
> >> /></td>
> >> </tr>
> >> <tr>
> >> <td>
> >> <table cellspacing="0" cellpadding="0" width="800"
> >> border="0">
> >> <tbody>
> >> <tr>
> >> <td width="200" bgcolor="#fda146">
> >> &nbsp;
> >> </td>
> >> <td width="22">
> >> <img height="23"
> >> src="images/color_tranz.gif" width="22" /></td>
> >> <td width="578"
> >> background="images/gradient.gif"><div align="right" class="date"><%=
> >> Now.ToString( "D" )%></div></td>
> >> </tr>
> >> </tbody>
> >> </table>
> >> </td>
> >> </tr>
> >> <tr>
> >> <td bgcolor="#fda146" height="17">
> >> <table cellspacing="0" cellpadding="0" border="0">
> >> <tbody>
> >> <tr>
> >> <td><asp:ImageButton id="ibtnHome"
> >> runat="server" ImageURL="images/home_on.gif" height="17" width="53"
> >> onmouseout="this.src='images/home.gif'"
> >> onmouseover="this.src='images/home_on.gif'" OnClick="ImageButton_Click"
> >> /></td>
> >> <td><asp:ImageButton id="ibtnWho"

> > runat="server"
> >> ImageURL="images/who.gif" height="17" width="109"
> >> onmouseout="this.src='images/who.gif'"
> >> onmouseover="this.src='images/who_on.gif'" OnClick="ImageButton_Click"
> >> /></td>
> >> <td><asp:ImageButton id="ibtnIdea"
> >> runat="server" ImageURL="images/idea.gif" height="17" width="83"
> >> onmouseout="this.src='images/idea.gif'"
> >> onmouseover="this.src='images/idea_on.gif'" OnClick="ImageButton_Click"
> >> /></td>
> >> <td><asp:ImageButton id="ibtnWhat"
> >> runat="server" ImageURL="images/what.gif" height="17" width="117"
> >> onmouseout="this.src='images/what.gif'"
> >> onmouseover="this.src='images/what_on.gif'" OnClick="ImageButton_Click"
> >> /></td>
> >> <td><asp:ImageButton id="ibtnBenefits"
> >> runat="server" ImageURL="images/benefits.gif" height="17" width="63"
> >> onmouseout="this.src='images/benefits.gif'"
> >> onmouseover="this.src='images/benefits_on.gif'"

> > OnClick="ImageButton_Click"
> >> /></td>
> >> <td><asp:ImageButton id="ibtnJobs"
> >> runat="server" ImageURL="images/jobs.gif" height="17" width="87"
> >> onmouseout="this.src='images/jobs.gif'"
> >> onmouseover="this.src='images/jobs_on.gif'" OnClick="ImageButton_Click"
> >> /></td>
> >> <td><asp:ImageButton id="ibtnApply"
> >> runat="server" ImageURL="images/apply.gif" height="17" width="80"
> >> onmouseout="this.src='images/apply.gif'"
> >> onmouseover="this.src='images/apply_on.gif'"

OnClick="ImageButton_Click"
> >> /></td>
> >> </tr>
> >> </tbody>
> >> </table>
> >> </td>
> >> </tr>
> >> <tr>
> >> <td height="5">
> >> <img height="5" src="images/line_dot.gif" width="800"
> >> border="0" /></td>
> >> </tr>
> >> </tbody>
> >> </table>
> >>
> >> Now here is the aspx page that calls the user control:
> >>
> >>
> >> <%@ Page Language="VB" Debug="True" %>
> >> <%@ Register TagPrefix="Sunterra" TagName="HR_Header"

> > Src="TestHeader.ascx"
> >> %>
> >> <%@ Register TagPrefix="Sunterra" TagName="HR_Footer" Src="Footer.ascx"
> >> %>
> >> <script runat="server" >
> >> Sub Page_Load
> >> Protected myHeader As HR_Header
> >> myHeader.strHomeURL = "image/who.gif"
> >> End Sub
> >>
> >> </script>
> >> <html>
> >> <head>
> >> <Title>Sunterra Human Resources</Title>
> >> <LINK REL=StyleSheet HREF="HR_Style.css" TYPE="text/css">
> >> </head>
> >> <body>
> >> <form runat="server">
> >> <Sunterra:HR_Header id="ctlHeader" runat="server"
> >> HomeURL="images/who.gif" />
> >> Middle of the page
> >> <Sunterra:HR_Footer id="ctlFooter" runat="server" />
> >> </form>
> >> </body>
> >> </html>
> >>
> >>
> >>
> >> I cannot get the ImageURL to change. Do you know a solution?
> >>
> >> Thanks!
> >>
> >> "Hermit Dave" <> wrote in

message
> >> news:...
> >> > John,
> >> >
> >> > Sorry if i sound a bit rude. Please check your posts. You have made 3

/
> > 4
> >> > odd different posts on the same subject.
> >> >
> >> > --
> >> >
> >> > Regards,
> >> >
> >> > Hermit Dave
> >> > (http://hdave.blogspot.com)
> >> > "John Espinosa" <> wrote in message
> >> > news:YgU9d.3584$kz3.3261@fed1read02...
> >> >> The name should be the same...
> >> >>
> >> >> Sub Page_Load
> >> >>
> >> >> UC1.strHomeURL = "image/home.gif"
> >> >> End Sub
> >> >>
> >> >> This still does not work!!!
> >> >
> >> >
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What does ~ stand for in ImageUrl? Edward Yang ASP .Net 2 07-22-2004 01:18 PM
Geeting ImageUrl when changed by javascript Joe ASP .Net 3 03-04-2004 08:55 PM
ImageURL not accepting/working relative paths??? Kathy Burke ASP .Net 0 11-14-2003 03:22 PM
Hyperlink with ImageUrl: problem with width and height Christian Pické ASP .Net 0 11-06-2003 01:08 PM
Hyperlink w/ImageUrl bug? Leigh Kendall ASP .Net 8 08-19-2003 01:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57