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

Discussion in 'ASP .Net' started by John Espinosa, Oct 9, 2004.

  1. The name should be the same...

    Sub Page_Load

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

    This still does not work!!!
     
    John Espinosa, Oct 9, 2004
    #1
    1. Advertising

  2. John Espinosa

    Hermit Dave Guest

    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!!!
     
    Hermit Dave, Oct 9, 2004
    #2
    1. Advertising

  3. 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!!!

    >
    >
     
    John Espinosa, Oct 9, 2004
    #3
  4. John Espinosa

    Hermit Dave Guest

    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!!!

    > >
    > >

    >
    >
     
    Hermit Dave, Oct 9, 2004
    #4
  5. 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!!!
    >> >
    >> >

    >>
    >>

    >
    >
     
    John Espinosa, Oct 9, 2004
    #5
  6. John Espinosa

    Hermit Dave Guest

    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!!!
    > >> >
    > >> >
    > >>
    > >>

    > >
    > >

    >
    >
     
    Hermit Dave, Oct 9, 2004
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Leigh Kendall

    Hyperlink w/ImageUrl bug?

    Leigh Kendall, Jul 29, 2003, in forum: ASP .Net
    Replies:
    8
    Views:
    509
    John Soulis [MSFT]
    Aug 19, 2003
  2. Christian Pické
    Replies:
    0
    Views:
    429
    Christian Pické
    Nov 6, 2003
  3. Kathy Burke
    Replies:
    0
    Views:
    537
    Kathy Burke
    Nov 14, 2003
  4. Joe
    Replies:
    3
    Views:
    5,126
    Eric Lawrence [MSFT]
    Mar 4, 2004
  5. John Espinosa

    ImageURL issues!!!!!!!!

    John Espinosa, Oct 9, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    499
    Hermit Dave
    Oct 9, 2004
Loading...

Share This Page