How to change the Target URL of EditForm.aspx, DispForm.aspx and NewForm.aspx

Posted by Jayant Sharma on Geeks with Blogs See other posts from Geeks with Blogs or by Jayant Sharma
Published on Tue, 10 Jul 2012 07:03:32 GMT Indexed on 2012/07/10 15:16 UTC
Read the original article Hit count: 457

Filed under:

Hi All,

To changing the URL of ListForms we have very limited options.

On Inernet if you search you will lots of article about Customization of List Forms using SharePoint Desinger, but the disadvantage of SharePoint Desinger is, you cannot create wsp of the customization means what ever changes you have done in UAT environment you need to repeat the same at Production. This is the main reason I donot like SharePoint Desinger more. I always prefer to create WSP file and Deployment of WSP file will do all of my work.

Now, If you want to change the ListForm URL using Visual Studio, either you have create new List Defintion or Create New Content Type. I found some very good article and want to share..

Whenever you create, either List Defintion or Content type and specify the URL for List Forms it will automatically add ListID and ItemID (No ItemID in case of NewForm.aspx) in the URL as Querystring, so if you want to redirect it or do some logic you can, as you got the ItemID as well as ListID.

 

 

© Geeks with Blogs or respective owner