c# - Calling the HomePage and having it display a PartialView (ie.ResetPassword) from external link -


imagine forgotpassword sent email link recover password. ideally want recoverpassword partialview , has run inside homepage itself.

the external link passes guid.

questions:
1) what's right way tell home page display partial view on specific case?
2) url link like?
3) homepage index controller handle possibility of resetpassword external link request?

you simple have query string. example www.yoururl.com/index?showresetpassword=true

then inside view can add if statement render partial view or not. if need inside of controller suggest have parameter nullable bool.

public actionresult index(bool? showresetpassword) 

make nullable if not inside of url not have isssues.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -