+1-888-365-2779
Try Now
More in this section

Forums / 3.x Pre-release forums (retired) / to open a page of sitefinity on the click of an image

to open a page of sitefinity on the click of an image

2 posts, 0 answered
  1. puneet
    puneet avatar
    14 posts
    Registered:
    12 Mar 2008
    17 Mar 2008
    Link to this post
    i placed an image in my master page using 

    <asp:ImageButton ID="ImgBtnGo" runat="server" ImageUrl="~/Images/go_blue_btn.gif"

    OnClick="JoinNewsImgBtnSubmit_Click" />

     the above code . I want to open the page developed in sitefinity whose url of sitefintiy is http://localhost:3145/test2/ContactUs/JoinQFFNewsLetter.aspx

    test2 is the name of my website and contactus is one of the menu item in my home page and JoinQffNewsLettre is the page that i want open on the click of the image ......

    I made the menu of mywebsite using the standard way of sitefinity  that is for each main menuitem i made a page and set its as a group page and for each submenuitem i made a page and set it as a normal page....

    Now i want to open the page joinQffnewLettre that is made under the contact menu item on the click of the image. Image is placed using the 
    http://localhost:3145/test2/ContactUs/JoinQFFNewsLetter.aspx.

  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    08 Dec 2016
    17 Mar 2008
    Link to this post
    Hi puneet,

    You should add the following in the master page:

     protected void JoinNewsImgBtnSubmit_Click(object sender, ImageClickEventArgs e) 
        { 
            Response.Redirect(this.ResolveUrl("~/ContactUs/JoinQFFNewsLetter.aspx")); 
        } 

    Hope this helps.

    Sincerely yours,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
2 posts, 0 answered