How can I set two values in HtmlInput control

Posted by Homam on Stack Overflow See other posts from Stack Overflow or by Homam
Published on 2011-01-11T14:35:22Z Indexed on 2011/01/11 14:53 UTC
Read the original article Hit count: 193

Filed under:
|
|

Hi,

I have an HtmlInputText in an EditItemTemplate in a DataGrid, This control is bound with a value from the SqlDataSource

I want to set in this control two values the JOB_CODE_ID and the JOB_CODE instead of just JOB_CODE.

I used to use Tag in the WinForms to set values such this, but in I don't know similar way in ASP.Net.

In my situation I can't use a hidden control to save the JOB_CODE_ID there, Is there any way to set two values in a HtmlInputText control ?

The code:

<input type="text" ID="JOB_CODETextBox" runat="server" 
                                        value='<%# Bind("JOB_CODE") %>' />

Thanks in advance.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about binding