Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Akruti 30 posts 50 karma points
    Jan 18, 2010 @ 12:12
    Akruti
    0

    Redirect link to an external page

    Hey I am working on an umbraco website where i have a Login link on the page. I want it to link with the external page which is with http://www extension. I have tried several options like umbraco redirect, giving umbraco alias name but none of them worked out. I am not able to change the default link available with the content pages. So can you please help me with this so that i am able to connect my page with an external page. Please help me as soon as possible.

     

    Akruti.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 18, 2010 @ 12:46
    Dirk De Grave
    0

    umbraco redirect and umbraco alias name only redirects to internal pages... just add a new property to your document type, and check if that property has a value, if so, create the link using that info.

    <xsl:if test="string(./data [@alias = 'propertyAlias') != ''">
      <a href="{./data [@alias = 'propertyAlias')}">...</a>
    </xls:if>

    Hope this helps.

    Regards,

    /Dirk

  • vijay 129 posts 152 karma points
    Jan 18, 2010 @ 13:39
    vijay
    0

    Hi Akruti,

    I m creating user control and checking like this

    hope this helps u to get some idea

      if (txt_UserName.Text != "" && txt_Password.Text != "")
            {
                Member m = Member.GetMemberFromLoginNameAndPassword(txt_UserName.Text, txt_Password.Text);

                Member.AddMemberToCache(m);

                Response.Redirect("Your External URL", true);
            }
            else
            {
                Response.Redirect("Other URL", true);
            }

    cheers,

    vijay.

  • Akruti 30 posts 50 karma points
    Jan 19, 2010 @ 04:46
    Akruti
    0

    Hi Dirk,

    Thanks for your reply. I tried this but it didnt help it still goes to the default linked page. It doesnt redirect to the page i want. Please give me some other solution to proceed with this.

     

    Thanks,

    Akruti.

  • jigar 170 posts 233 karma points
    Jan 19, 2010 @ 07:28
    jigar
    0

    Hi Akruti,

    This is jigar from gujrat. (Where you working in gujrat using umbraco?)

    Anyways i just wanted to say that the above code should work properly for you.

    I am doing this in one of my website that's why.

    Please let me know if you still have problem i can give you code snippets.

    Regards,

    Jigar

     

     

     

  • Akruti 30 posts 50 karma points
    Jan 19, 2010 @ 07:52
    Akruti
    0

    Jigar I used the code given by Dirk but still it didnt redirect to the external page. Can you just paste your code snippet here and which datatype did you use for that property in the document type?

     

  • jigar 170 posts 233 karma points
    Jan 20, 2010 @ 06:42
    jigar
    0

    Hi are you able to print it using macro? Cause what i feel is that you have not configured the properties for that doc type...

  • Akruti 30 posts 50 karma points
    Jan 20, 2010 @ 12:32
    Akruti
    0

    Hey I have configured properties for the document type and i have taken the property datatype as textstring. Please let me know whether i have to take a different datatype.

     

    Or please give me some other solution so that i can proceed with this.

     

    Thanks,

    Akruti.

Please Sign in or register to post replies

Write your reply to:

Draft