User Profile

Collapse

Profile Sidebar

Collapse
AGOL
AGOL
Last Activity: Mar 11 '10, 12:52 PM
Joined: Feb 18 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Getting dynamic elements' properties in C# - similar to getElementById in JS

    I have a page where fields are added dynamically by a JS running at the page load. So in the page I have html code like this
    Code:
    <TR id='TR_A1' style='display:block'>
       <TD id='A1Name' name='A1Name' >A1</TD>
       <TD> <textarea  ID='A1Value' name='A1Value' rows='6' cols='45'></textarea></TD>
    </TR>
    How can I access this element in c# when a button...
    See more | Go to post
    Last edited by AGOL; Mar 10 '10, 09:48 AM. Reason: typo

  • AGOL
    started a topic Accesing Dynamic created form fields at run time

    Accesing Dynamic created form fields at run time

    I have a aspx page where in the html code there is a label
    Code:
    <asp:Label ID="lbl1">
    in the cs file the code get filled in runtime
    Code:
    lbl1 = CreateDynamicForm();
    and the function return HTML code such as:
    Code:
    <Table>
    <TR>
    <TD class='Q1'>School</TD>
    <TD class='Q1R'> <input ID='SchoolName' name='SchoolName'></TD>
    </TR>
    <TR>
    ...
    See more | Go to post
No activity results to display
Show More
Working...