Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: 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

  • puneet avatar

    Posted on Mar 17, 2008 (permalink)

    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.

    Reply

  • Pepi Pepi admin's avatar

    Posted on Mar 17, 2008 (permalink)

    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

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: 3.x Pre-release forums (retired) > to open a page of sitefinity on the click of an image