Hello All,
I am new in sharepoint. i created a sharepoint solution with own definition. below code is for setting welcome page on feature activation.
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
SPWeb web = properties.Feature.Parent as SPWeb;
web.RootFolder.WelcomePage = "Home/Home.aspx";
web.RootFolder.Update();
}
problem here is on site creation when i browse the link http://XXXXXX/sites/myAppDev/ it never redirect to http://dehensv095vm45/sites/myAppDev/Home/Home.aspx.
every time i need to type manually after http://dehensv095vm45/sites/myAppDev/
please suggest.