Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I am returing a web Form from controller view the the it return successfully but there page load is not executing .So please help me via example.


I am opening a google sit(www.google.com) on page load ofweb form

[edit]SHOUTING removed (the spelling I left alone) - OriginalGriff[/edit]
Posted
Updated 24-Sep-13 1:30am
v4
Comments
OriginalGriff 24-Sep-13 7:17am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Eduard Keilholz 24-Sep-13 7:19am    
Can you do the spelling as well, don't understand the question ;)
siddharth629 24-Sep-13 7:33am    
sir i am returning a we from form controller ek..public ActionResult ActionThatRetrieveAndAspx()
{
return View("WebForm1"); //Aspx file Views/Products/WebForm1.aspx
}

but the problem is that there and i hav written response.redirect("www.google.com) on paget load but it not working

1 solution

You don't have a page load in MVC

You should place your response.redirect in your controller action.

public ActionResult Index(string id)
{
    return Redirect("http://www.google.com");
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900