Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Redirect from a block type

Vote:
 

I have a block (created from a block type) on my page which is created from a pagetype, and there is a Submit button in the block type. When user clicks on the submit button, I want to redirect user to a different page (url) on the website. when i use RedirectToAction or Redirect I get this error.

"child actions are not allowed to perform redirect actions." any body came accross this error.

#88938
Aug 04, 2014 16:31
Vote:
 

You might have the same problem as this person.

http://stackoverflow.com/questions/13896307/how-to-fix-child-actions-are-not-allowed-to-perform-redirect-actions-other-answ

#88940
Aug 04, 2014 16:51
Vote:
 

Oh. Thanks. I understood what I was doing wrong.

#88945
Aug 04, 2014 18:59
Vote:
 

That's great sapna, don't forget to mark my response as answer so others can see that this thread is solved

#88965
Aug 05, 2014 9:25
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.