Search erron.How can I convert Linkbutton into ImageButton?

Last post 10-15-2008 10:02 AM by ranlong. 1 replies.

Sort Posts:

  • Search erron.How can I convert Linkbutton into ImageButton?

    10-08-2008, 10:36 AM
    • Member
      point Member
    • ranlong
    • Member since 10-08-2008, 9:52 AM
    • Posts 4

    Hi Guys,

     I am a  primary programmer.I download CommunityStarterKitVBVS 1.1,setup it ,and modify it as my needs.All this is ok.But recently I found the CSK search (it is a Linkbutton) looks bad.So I convert the Linkbutton into imagebutton. At my homepage,the imagebutton is fine,and it can work.But when I transfer into the other web pages,the imagebutton can work,but it  is not display the image.I want everybody to help me,thanks.

     the source code  I modified as follow,

     1 、 communityDefault.aspx file

    Dim lnkSearch As LinkButton = CType(objPageSkin.FindControl("lnkSearch"), LinkButton)  I modify it as

    Dim lnkSearch As ImageButton = CType(objPageSkin.FindControl("lnkSearch"), ImageButton)

    2、under themes folder file default.aspx

    <asp:LinkButton id="lnkSearch" Text=" Go!" Runat="Server" /> I modify it as

    <asp:imagebutton id="lnkSearch" runat="server" ImageUrl="../../Images/submit_btn.png"></asp:imagebutton>

     

     

     

     

     

  • Re: Search erron.How can I convert Linkbutton into ImageButton?

    10-15-2008, 10:02 AM
    • Member
      point Member
    • ranlong
    • Member since 10-08-2008, 9:52 AM
    • Posts 4
    I have solved the problem.
Page 1 of 1 (2 items)