Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • Where in C# do I place this code 'btnSubmit.NavigateUrl = String' Do I place it within protected void btnSubmit_Click(object sender, EventArgs e)? Commented Jun 2, 2016 at 21:08
  • It depends on which approach you want to use. The first approach would be placed within your Page_Load method of your ASPX page and the second approach (client-side) would be all within your ASPX page. Commented Jun 2, 2016 at 21:09
  • For the first approach I am not getting .NavigateURL as a method. (Sorry if wrong terminology) Commented Jun 2, 2016 at 21:12
  • Also, which approach would you suggest? Commented Jun 2, 2016 at 21:19
  • I've revised this to use a HyperLink Control instead, which is going to be more appropriate for this type of scenario. If you explicitly need it to be a Button, I'll be glad to provide that approach as well. Commented Jun 2, 2016 at 21:19