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.
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.
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.
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?
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.
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.
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.
Hope this helps.
Regards,
/Dirk
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.
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.
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
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?
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...
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.
is working on a reply...