Sitefinity ASP.NET CMS - Content Management System

Support Forum Thread

Home >  Support >  Forums home > Sitefinity 3.x > Pre-release forums (retired) > to open a page of sitefinity on the click of an image

Reply
puneet, 3/17/2008 5:09:17 AM
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
, 3/17/2008 9:19:13 AM
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