---
title: "HTML button in MasterPage"  
description: "HTML button in MasterPage"  
author: "Anonymous User"  
published: 2014-08-25  
updated: 2014-08-25  
canonical: https://www.mindstick.com/forum/2118/html-button-in-masterpage  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# HTML button in MasterPage

I have the following HTML in my MasterPage:

```
<input class="button" type="button" value="Select User" onclick='<%#
string.Format(@"location.href={0}", ResolveUrl("~/SelectUser.aspx"))
%>' />
```

I'm [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to [figure](https://yourviews.mindstick.com/view/87536/what-are-ghosts-jobs-and-how-to-figure-out-them) out how to get ResolveUrl to work with an [HTML input](https://www.mindstick.com/forum/157343/how-to-prevent-a-user-from-adding-same-character-over-and-over-in-html-input-box-using-javascript) [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net), I could use an [ASP.NET](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) Button, but then I'd have to chang my [CSS](https://www.mindstick.com/forum/514/background-gradient-ie7-css-problem) and I really don't want to spend the time doing that.

Any help on how to go about doing this would be greatly appreciated. \

Thanks!

## Replies

### Reply by Sumit Kesarwani

Hi Chintoo, \

I use href like below and make sure that there is no runat="server" tag.

href = "<%=this.ResolveUrl("~/abc.aspx")%>"


---

Original Source: https://www.mindstick.com/forum/2118/html-button-in-masterpage

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
