RadTextBox with hiddenvalue

3 posts, 0 answers
  1. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 05 Jan 2012 Link to this post

    hi i want to add hiddenvalue with RadTextbox
    one of my webpage i m using html input text , i use the name property to add hidden value
    mean user couldn't see the value

    but in the RadTextbox i couldn't set name property
    if i set with Attributes.Add("name", something)
    the name property automatcally changed to id

    is there any other way to add hiddenvalue related to that particular RadTextbox
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 05 Jan 2012 Link to this post

    Hello,

    Take a look into the following forum thread.
    RadTextBox Attribute

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 05 Jan 2012 Link to this post

    hi i set the name attribute something but i got the RadTextBox.Id + _text

     

     

    Dim rtb As New RadTextBox
    rtb.Width = New Unit(98, UnitType.Percentage)
    'rtb.ID = row("LField").ToString.Trim & "dmssmd_txt"
    rtb.ID = "cpid" & cpid.ToString
    rtb.MaxLength = row("Length")
    rtb.Attributes.Add("name", row("LField").ToString.Trim & "dmssmd_txt")




    javascript

     




    var tempid = $find(id)._textBoxElement.getAttribute("name");


     

     


Back to Top