How do I redirect a user when a button is clicked?

前端 未结 10 799
情话喂你
情话喂你 2020-12-13 05:30

I have a view with a button. When the user clicks the button I want them redirected to a data entry view. How do I accomplish this? I should mention the views are created, t

10条回答
  •  一整个雨季
    2020-12-13 06:32

    You can easily wrap your button tag with tag.Using Url.Action() HTML Helper this will get to navigate to one page to another.

    
        
    
    

    If you want to navigate with javascript onclick() function then use

    
    

提交回复
热议问题