ASP.Net 2.0 C#,Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jayakumarit
    New Member
    • Oct 2006
    • 3

    ASP.Net 2.0 C#,Javascript

    Hi guys!

    In my project I fetch the values(one column) from sqlserverdataba se and displyed in asp.net listbox (server control).Now I want send the values to listbox of html control.

    Pls send me the code in C#

    Thanks
    jai
  • vinaykeshav
    New Member
    • Dec 2006
    • 25

    #2
    <SELECT id="one" runat="server" style="Z-INDEX: 102; LEFT: 256px; POSITION: absolute; TOP: 352px"
    size="2">
    <OPTION></OPTION>
    </SELECT>

    give an name say as one to the control and make it a server control and at
    the cs file use one.DataMember and one.DataSource properties
    and bind the control to fill the cotrol.

    hope this will fix ur probs..

    Comment

    Working...