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

Forums / Developing with Sitefinity / To open a page of sitefinty on the click of an image

To open a page of sitefinty on the click of an image

4 posts, 0 answered
  1. puneet
    puneet avatar
    14 posts
    Registered:
    12 Mar 2008
    15 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. bnye
    bnye avatar
    332 posts
    Registered:
    22 Sep 2005
    16 Mar 2008
    Link to this post
    Maybe I don't understand your question. But can't you just use the Hyperlink like this:

    <asp:HyperLink ID="ImgBtnGo" runat="server" ImageUrl="~/Images/go_blue_btn.gif" NavigateUrl="~/ContactUs/JoinQFFNewsLetter.aspx"></asp:HyperLink> 

    I appologize if this is not what you're looking for. Please let me know and I can try something else.

    Sincerely,

    Ben
  3. puneet
    puneet avatar
    14 posts
    Registered:
    12 Mar 2008
    17 Mar 2008
    Link to this post
    Infact sir in sitefinity every page is made by executing page.aspx page.if oyu are requesting for any pages for that page .aspx gets xecuted and it made the req page ...

    So now i need to execute the page .aspx page and have to force page.aspx page to made joinQffnewslettre page .By forcing the page.aspx page i mean to say that i have to set all the object and its properties to such value so that page.aspx made joinQffnewslettre.aspx... 
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Mar 2008
    Link to this post
    Hi Puneet,

    You should have no problems with the code that Ben Nye supplied. By the way, the difference between "Normal Page" and "Page Group" is only that if the page is set as "Page Group", it redirects to its first subpage when you try to access it.
    You could try adding this line in your JoinNewsImgBtnSubmit_Click event : I don't think that it is necessary to execute additional pages to access your page.

    Best wishes,
    Georgi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered