---
title: "How to give the id to the html textbox?"  
description: "How to give the id to the html textbox?"  
author: "Anonymous User"  
published: 2015-02-24  
updated: 2015-02-24  
canonical: https://www.mindstick.com/forum/12976/how-to-give-the-id-to-the-html-textbox  
category: "asp.net"  
tags: [".net", "asp.net", "html"]  
reading_time: 1 minute  

---

# How to give the id to the html textbox?

My [html tag](https://www.mindstick.com/forum/78/how-avoid-the-html-tag-and-remove-the-formating-of-copy-in-ajax-editor) looks like this\

```
<%=Html.TextBox("username")%>Any suggestions?
```

\

## Replies

### Reply by Anonymous User

```
<%= Html.TextBox("username",new { ID ="<put id here>"}) %>
```


---

Original Source: https://www.mindstick.com/forum/12976/how-to-give-the-id-to-the-html-textbox

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
